C# Class ChordUnity, AllJoyn

Inheritance: MonoBehaviour
Exibir arquivo Open project: pubnub/AllJoyn Class Usage Examples

Public Methods

Method Description
acceptFile ( String fromChannel, String exchangeId, int chunkTimeoutMsec, int chunkRetries, long chunkSize ) : bool
acceptMultiFiles ( String fromChannel, String taskId, int chunkTimeout, int chunkRetries, long chunkSize ) : bool
browseFiles ( ) : void
cancelFile ( String toChannel, String exchangeId ) : bool
cancelMultiFiles ( String toChannel, String taskId ) : bool
close ( ) : void
getAvailableInterfaceTypes ( ) : List
getIp ( ) : String
getJoinedChannelList ( ) : List
getJoinedNodeList ( String channelName ) : List
getLastError ( ) : int
getNICList ( int handle ) : String[]
getName ( ) : String
getNodeIpAddress ( String channelName, String nodeName ) : String
getObject ( ) : ChordUnity,
getVersionCode ( ) : int
getVersionName ( ) : String
init ( ) : void
isSmartDiscoveryEnabled ( ) : bool
joinChannel ( String channelName ) : bool
leaveChannel ( String channelName ) : void
onBrowseResult ( String fileName ) : void
onStopped ( int reason ) : void
rejectFile ( String toChannel, String exchangeId ) : bool
rejectMultiFiles ( String toChannel, String taskId ) : bool
resetSmartDiscoveryPeriod ( ) : void
sendData ( String toChannel, String nodeName, String payloadType, byte payload ) : void
sendDataToAll ( String toChannel, String payloadType, byte payload ) : void
sendFile ( String toChannel, String toNode, String fileType, String strFilePath, int timeoutMsec ) : String
sendMultiFiles ( String toChannel, String toNode, String fileType, List listFilePath, int timeout ) : String
sendUdpData ( String toChannel, String toNode, int reliableTime, bool respFlag, String payloadType, byte payload, String sessionName ) : String
sendUdpDataToAll ( String toChannel, int reliableTime, bool respFlag, String payloadType, byte payload, String sessionName ) : String
setNetworkListener ( ChordUnityNetworkListener listener ) : void
setNodeKeepAliveTimeout ( int timeoutMsec ) : void
setSecureModeEnabled ( bool enabled ) : void
setSendMultiFilesLimitCount ( int count ) : void
setSmartDiscoveryEnabled ( bool enabled ) : void
setTempDirectory ( String tmpDirPath ) : void
start ( int interfaceType, ChordUnityChannelListener cListener, ChordUnityStatusListener sListener ) : int
stop ( ) : void
viewLicense ( ) : void

Private Methods

Method Description
ChordUnity ( ) : System
Start ( ) : void
isSecureChannel ( String channelName ) : bool
onConnected ( String interfaceType ) : void
onDataReceiveEvent ( String hkey ) : void
onDataReceived ( String fromNode, String fromChannel, String payloadType, byte payload ) : void
onDisconnected ( String interfaceType ) : void
onFileChunkReceived ( String hkey ) : void
onFileChunkSent ( String hkey ) : void
onFileFailed ( String hkey ) : void
onFileReceived ( String hkey ) : void
onFileSent ( String hkey ) : void
onFileWillReceive ( String hkey ) : void
onMultiFilesChunkReceived ( String hkey ) : void
onMultiFilesChunkSent ( String hkey ) : void
onMultiFilesFailed ( String hkey ) : void
onMultiFilesFinished ( String hkey ) : void
onMultiFilesReceived ( String hkey ) : void
onMultiFilesSent ( String hkey ) : void
onMultiFilesWillReceive ( String hkey ) : void
onNodeJoined ( String fromNode, String fromChannel ) : void
onNodeJoinedEvent ( String hkey ) : void
onNodeLeft ( String fromNode, String fromChannel ) : void
onNodeLeftEvent ( String hkey ) : void
onStarted ( String nodeName, int reason ) : void
onStartedEvent ( String hkey ) : void
onStoppedEvent ( String hkey ) : void
onUdpDataDelivered ( string toNode, string toChannel, string reqId ) : void
onUdpDataDeliveredEvent ( String hkey ) : void
onUdpDataReceived ( string fromNode, string fromChannel, string payloadType, byte payload, string sessionName ) : void
onUdpDataReceivedEvent ( String hkey ) : void

Method Details

acceptFile() public method

public acceptFile ( String fromChannel, String exchangeId, int chunkTimeoutMsec, int chunkRetries, long chunkSize ) : bool
fromChannel String
exchangeId String
chunkTimeoutMsec int
chunkRetries int
chunkSize long
return bool

acceptMultiFiles() public method

public acceptMultiFiles ( String fromChannel, String taskId, int chunkTimeout, int chunkRetries, long chunkSize ) : bool
fromChannel String
taskId String
chunkTimeout int
chunkRetries int
chunkSize long
return bool

browseFiles() public method

public browseFiles ( ) : void
return void

cancelFile() public method

public cancelFile ( String toChannel, String exchangeId ) : bool
toChannel String
exchangeId String
return bool

cancelMultiFiles() public method

public cancelMultiFiles ( String toChannel, String taskId ) : bool
toChannel String
taskId String
return bool

close() public method

public close ( ) : void
return void

getAvailableInterfaceTypes() public method

public getAvailableInterfaceTypes ( ) : List
return List

getIp() public method

public getIp ( ) : String
return String

getJoinedChannelList() public method

public getJoinedChannelList ( ) : List
return List

getJoinedNodeList() public method

public getJoinedNodeList ( String channelName ) : List
channelName String
return List

getLastError() public method

public getLastError ( ) : int
return int

getNICList() public method

public getNICList ( int handle ) : String[]
handle int
return String[]

getName() public method

public getName ( ) : String
return String

getNodeIpAddress() public method

public getNodeIpAddress ( String channelName, String nodeName ) : String
channelName String
nodeName String
return String

getObject() public static method

public static getObject ( ) : ChordUnity,
return ChordUnity,

getVersionCode() public method

public getVersionCode ( ) : int
return int

getVersionName() public method

public getVersionName ( ) : String
return String

init() public method

public init ( ) : void
return void

isSmartDiscoveryEnabled() public method

public isSmartDiscoveryEnabled ( ) : bool
return bool

joinChannel() public method

public joinChannel ( String channelName ) : bool
channelName String
return bool

leaveChannel() public method

public leaveChannel ( String channelName ) : void
channelName String
return void

onBrowseResult() public method

public onBrowseResult ( String fileName ) : void
fileName String
return void

onStopped() public method

public onStopped ( int reason ) : void
reason int
return void

rejectFile() public method

public rejectFile ( String toChannel, String exchangeId ) : bool
toChannel String
exchangeId String
return bool

rejectMultiFiles() public method

public rejectMultiFiles ( String toChannel, String taskId ) : bool
toChannel String
taskId String
return bool

resetSmartDiscoveryPeriod() public method

public resetSmartDiscoveryPeriod ( ) : void
return void

sendData() public method

public sendData ( String toChannel, String nodeName, String payloadType, byte payload ) : void
toChannel String
nodeName String
payloadType String
payload byte
return void

sendDataToAll() public method

public sendDataToAll ( String toChannel, String payloadType, byte payload ) : void
toChannel String
payloadType String
payload byte
return void

sendFile() public method

public sendFile ( String toChannel, String toNode, String fileType, String strFilePath, int timeoutMsec ) : String
toChannel String
toNode String
fileType String
strFilePath String
timeoutMsec int
return String

sendMultiFiles() public method

public sendMultiFiles ( String toChannel, String toNode, String fileType, List listFilePath, int timeout ) : String
toChannel String
toNode String
fileType String
listFilePath List
timeout int
return String

sendUdpData() public method

public sendUdpData ( String toChannel, String toNode, int reliableTime, bool respFlag, String payloadType, byte payload, String sessionName ) : String
toChannel String
toNode String
reliableTime int
respFlag bool
payloadType String
payload byte
sessionName String
return String

sendUdpDataToAll() public method

public sendUdpDataToAll ( String toChannel, int reliableTime, bool respFlag, String payloadType, byte payload, String sessionName ) : String
toChannel String
reliableTime int
respFlag bool
payloadType String
payload byte
sessionName String
return String

setNetworkListener() public method

public setNetworkListener ( ChordUnityNetworkListener listener ) : void
listener ChordUnityNetworkListener
return void

setNodeKeepAliveTimeout() public method

public setNodeKeepAliveTimeout ( int timeoutMsec ) : void
timeoutMsec int
return void

setSecureModeEnabled() public method

public setSecureModeEnabled ( bool enabled ) : void
enabled bool
return void

setSendMultiFilesLimitCount() public method

public setSendMultiFilesLimitCount ( int count ) : void
count int
return void

setSmartDiscoveryEnabled() public method

public setSmartDiscoveryEnabled ( bool enabled ) : void
enabled bool
return void

setTempDirectory() public method

public setTempDirectory ( String tmpDirPath ) : void
tmpDirPath String
return void

start() public method

public start ( int interfaceType, ChordUnityChannelListener cListener, ChordUnityStatusListener sListener ) : int
interfaceType int
cListener ChordUnityChannelListener
sListener ChordUnityStatusListener
return int

stop() public method

public stop ( ) : void
return void

viewLicense() public method

public viewLicense ( ) : void
return void