C# Class FileFind.Meshwork.Network

Inheritance: Object
Exibir arquivo Open project: codebutler/meshwork Class Usage Examples

Public Properties

Property Type Description
AllowUploading bool
BroadcastNodeID string
MaxSimltaniousUploads int
MaxSimltaniousUploadsPerUser int
NoConnectionChecking bool

Private Properties

Property Type Description
AddChatRoom void
AddConnection void
AddMemo void
AddNode void
AddOrUpdateMemo void
AddTrustedNode void
AppendNetworkState void
CheckForRoute bool
Cleanup void
CreateMessageID string
ForwardMessage void
FromNetworkInfo Network
GetMemo Memo
HasChatRoom bool
HasMemo bool
Network System
Network System
NewSessionKeyReady void
ProcessMessage void
ProcessNewConnection void
RaiseChatMessage void
RaiseDebugWrite void
RaiseJoinedChat void
RaiseLeftChat void
RaisePrivateMessage void
RaiseReceivedAvatar void
RaiseReceivedChatInvite void
RaiseReceivedDirListing void
RaiseReceivedFileDetails void
RaiseReceivedKey bool
RaiseReceivedKey bool
RaiseReceivedNonCriticalError void
RaiseReceivedSearchResult void
RaiseUpdateNodeInfo void
RemoveChatRoom void
RemoveConnection void
RemoveMemo void
RemoveNode void
RequestDirectoryListing void
RequestFileDetails void
SearchNode bool
SendAuthReply void
SendBroadcast void
SendCriticalError void
SendFileDetails void
SendNonCriticalError void
SendSearchReply void
UpdateTrustedNodes void

Public Methods

Method Description
AddPublicKey ( PublicKey key ) : void
ConnectTo ( ITransport transport ) : void
ConnectTo ( ITransport transport, TransportCallback callback ) : void
CountTotalSharedBytes ( ) : long
CountTotalSharedFiles ( ) : long
DeleteMemo ( Memo m ) : void
DownloadFile ( Node node, RemoteFile file ) : IFileTransfer
FileSearch ( FileSearch search ) : void
FindConnection ( string firstNodeID, string secondNodeID ) : INodeConnection
GetChatRoom ( string id ) : ChatRoom
GetNode ( string nodeId ) : Node
JoinChat ( ChatRoom room ) : void
JoinChat ( ChatRoom room, string password ) : void
JoinOrCreateChat ( string name, string password ) : void
LeaveChat ( ChatRoom room ) : void
PostMemo ( Memo memo ) : void
RequestAvatar ( Node node ) : void
RequestPublicKey ( Node node ) : void
SendAvatar ( Node node ) : void
SendBroadcast ( Message message ) : void
SendChatInvitation ( Node node, ChatRoom room, string message, string password ) : void
SendChatMessage ( ChatRoom room, string messageText ) : void
SendFile ( Node node, string filePath ) : void
SendInfoToTrustedNode ( Node node ) : void
SendInfoToTrustedNodes ( ) : void
SendMyKey ( Node sendTo ) : void
SendPong ( Node node, ulong timestamp ) : void
SendPrivateMessage ( Node SendTo, string MessageText ) : Message
SendRoutedMessage ( Message message ) : void
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
OnJoinedChat ( ChatEventArgs args ) : void
OnLeftChat ( ChatEventArgs args ) : void
OnMemoAdded ( Memo memo ) : void
OnMemoDeleted ( Memo memo ) : void
OnMemoUpdated ( Memo memo ) : void
OnReceivedKey ( ReceivedKeyEventArgs args ) : bool

Private Methods

Method Description
AddChatRoom ( ChatRoom room ) : void
AddConnection ( INodeConnection connection ) : void
AddMemo ( Memo memo ) : void
AddNode ( Node node ) : void
AddOrUpdateMemo ( Memo memo ) : void
AddTrustedNode ( TrustedNodeInfo info ) : void
AppendNetworkState ( NetworkState stateObject ) : void
CheckForRoute ( Node FirstNode, Node SecondNode ) : bool
Cleanup ( ) : void
CreateMessageID ( ) : string
ForwardMessage ( Message m, LocalNodeConnection connection ) : void
FromNetworkInfo ( NetworkInfo networkInfo ) : Network
GetMemo ( string id ) : Memo
HasChatRoom ( string id ) : bool
HasMemo ( string id ) : bool
Network ( ) : System
Network ( string networkName ) : System
NewSessionKeyReady ( System.DateTime timeReceived, object args ) : void
ProcessMessage ( object state ) : void
ProcessNewConnection ( ConnectionInfo connection ) : void
RaiseChatMessage ( ChatRoom room, Node messageFrom, string messageText ) : void
RaiseDebugWrite ( DebugInfo d ) : void
RaiseJoinedChat ( Node node, ChatRoom room ) : void
RaiseLeftChat ( Node node, ChatRoom room ) : void
RaisePrivateMessage ( Node messageFrom, string messageText ) : void
RaiseReceivedAvatar ( Node node, byte avatarData ) : void
RaiseReceivedChatInvite ( Node from, ChatInviteInfo invitation ) : void
RaiseReceivedDirListing ( Node node, RemoteDirectory directory ) : void
RaiseReceivedFileDetails ( RemoteFile file ) : void
RaiseReceivedKey ( LocalNodeConnection connection, KeyInfo key ) : bool
RaiseReceivedKey ( Node node, KeyInfo key ) : bool
RaiseReceivedNonCriticalError ( Node from, MeshworkError error ) : void
RaiseReceivedSearchResult ( Node node, SearchResultInfo result ) : void
RaiseUpdateNodeInfo ( string oldNickname, Node node ) : void
RemoveChatRoom ( ChatRoom room ) : void
RemoveConnection ( INodeConnection connection ) : void
RemoveMemo ( Memo memo ) : void
RemoveNode ( Node node ) : void
RequestDirectoryListing ( string path ) : void
RequestFileDetails ( string path ) : void
SearchNode ( Node NodeToSearch, Node NodeToFind ) : bool
SendAuthReply ( INodeConnection connection, Node node ) : void
SendBroadcast ( Message message, Node nodeFrom ) : void
SendCriticalError ( Node node, MeshworkError error ) : void
SendFileDetails ( Node to, LocalFile file ) : void
SendNonCriticalError ( Node node, MeshworkError error ) : void
SendSearchReply ( Node node, SearchResultInfo reply ) : void
UpdateTrustedNodes ( TrustedNodeInfo>.IDictionary newNodes ) : void

Method Details

AddPublicKey() public method

public AddPublicKey ( PublicKey key ) : void
key PublicKey
return void

ConnectTo() public method

public ConnectTo ( ITransport transport ) : void
transport ITransport
return void

ConnectTo() public method

public ConnectTo ( ITransport transport, TransportCallback callback ) : void
transport ITransport
callback TransportCallback
return void

CountTotalSharedBytes() public method

public CountTotalSharedBytes ( ) : long
return long

CountTotalSharedFiles() public method

public CountTotalSharedFiles ( ) : long
return long

DeleteMemo() public method

public DeleteMemo ( Memo m ) : void
m Memo
return void

DownloadFile() public method

public DownloadFile ( Node node, RemoteFile file ) : IFileTransfer
node Node
file FileFind.Meshwork.Filesystem.RemoteFile
return IFileTransfer

FileSearch() public method

public FileSearch ( FileSearch search ) : void
search FileFind.Meshwork.Search.FileSearch
return void

FindConnection() public method

public FindConnection ( string firstNodeID, string secondNodeID ) : INodeConnection
firstNodeID string
secondNodeID string
return INodeConnection

GetChatRoom() public method

public GetChatRoom ( string id ) : ChatRoom
id string
return ChatRoom

GetNode() public method

public GetNode ( string nodeId ) : Node
nodeId string
return Node

JoinChat() public method

public JoinChat ( ChatRoom room ) : void
room ChatRoom
return void

JoinChat() public method

public JoinChat ( ChatRoom room, string password ) : void
room ChatRoom
password string
return void

JoinOrCreateChat() public method

public JoinOrCreateChat ( string name, string password ) : void
name string
password string
return void

LeaveChat() public method

public LeaveChat ( ChatRoom room ) : void
room ChatRoom
return void

OnJoinedChat() protected method

protected OnJoinedChat ( ChatEventArgs args ) : void
args ChatEventArgs
return void

OnLeftChat() protected method

protected OnLeftChat ( ChatEventArgs args ) : void
args ChatEventArgs
return void

OnMemoAdded() protected method

protected OnMemoAdded ( Memo memo ) : void
memo Memo
return void

OnMemoDeleted() protected method

protected OnMemoDeleted ( Memo memo ) : void
memo Memo
return void

OnMemoUpdated() protected method

protected OnMemoUpdated ( Memo memo ) : void
memo Memo
return void

OnReceivedKey() protected method

protected OnReceivedKey ( ReceivedKeyEventArgs args ) : bool
args ReceivedKeyEventArgs
return bool

PostMemo() public method

public PostMemo ( Memo memo ) : void
memo Memo
return void

RequestAvatar() public method

public RequestAvatar ( Node node ) : void
node Node
return void

RequestPublicKey() public method

public RequestPublicKey ( Node node ) : void
node Node
return void

SendAvatar() public method

public SendAvatar ( Node node ) : void
node Node
return void

SendBroadcast() public method

public SendBroadcast ( Message message ) : void
message Message
return void

SendChatInvitation() public method

public SendChatInvitation ( Node node, ChatRoom room, string message, string password ) : void
node Node
room ChatRoom
message string
password string
return void

SendChatMessage() public method

public SendChatMessage ( ChatRoom room, string messageText ) : void
room ChatRoom
messageText string
return void

SendFile() public method

public SendFile ( Node node, string filePath ) : void
node Node
filePath string
return void

SendInfoToTrustedNode() public method

public SendInfoToTrustedNode ( Node node ) : void
node Node
return void

SendInfoToTrustedNodes() public method

public SendInfoToTrustedNodes ( ) : void
return void

SendMyKey() public method

public SendMyKey ( Node sendTo ) : void
sendTo Node
return void

SendPong() public method

public SendPong ( Node node, ulong timestamp ) : void
node Node
timestamp ulong
return void

SendPrivateMessage() public method

public SendPrivateMessage ( Node SendTo, string MessageText ) : Message
SendTo Node
MessageText string
return Message

SendRoutedMessage() public method

public SendRoutedMessage ( Message message ) : void
message Message
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

AllowUploading public_oe property

public bool AllowUploading
return bool

BroadcastNodeID public_oe static_oe property

public static string BroadcastNodeID
return string

MaxSimltaniousUploads public_oe property

public int MaxSimltaniousUploads
return int

MaxSimltaniousUploadsPerUser public_oe property

public int MaxSimltaniousUploadsPerUser
return int

NoConnectionChecking public_oe property

public bool NoConnectionChecking
return bool