C# Class Spinach.SwarmConnection

Afficher le fichier Open project: shranjan/pinac Class Usage Examples

Méthodes publiques

Méthode Description
Create_Swarm ( string SrcIP, string SrcPort, string Username ) : bool
Disconnect ( ) : void
GetIPtoPeer ( ) : Hashtable
InsertProgtoSC ( SwarmMemory sm ) : void
Join_Swarm ( string DstIP, string DstPort, string SrcIP, string SrcPort, string Username ) : bool
ListenChan ( bool x ) : void
Send_ChatMsg ( string chatMsg, string Username ) : void
SwarmConnection ( ) : System
getSocket ( ) : AsynchronousSocketListener

Private Methods

Méthode Description
AddPrevChanged ( string strTemp ) : void
ChangPermission ( string strTemp ) : void
Chat_Changed ( string Username, string ChatMessage ) : void
Error_Changed ( int errorcode, string ErrorMsg ) : void
List_Changed ( Hashtable Displist ) : void
TransferOwnership ( string strTemp ) : void

Method Details

Create_Swarm() public méthode

public Create_Swarm ( string SrcIP, string SrcPort, string Username ) : bool
SrcIP string
SrcPort string
Username string
Résultat bool

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

GetIPtoPeer() public méthode

public GetIPtoPeer ( ) : Hashtable
Résultat System.Collections.Hashtable

InsertProgtoSC() public méthode

public InsertProgtoSC ( SwarmMemory sm ) : void
sm SwarmMemory
Résultat void

Join_Swarm() public méthode

public Join_Swarm ( string DstIP, string DstPort, string SrcIP, string SrcPort, string Username ) : bool
DstIP string
DstPort string
SrcIP string
SrcPort string
Username string
Résultat bool

ListenChan() public méthode

public ListenChan ( bool x ) : void
x bool
Résultat void

Send_ChatMsg() public méthode

public Send_ChatMsg ( string chatMsg, string Username ) : void
chatMsg string
Username string
Résultat void

SwarmConnection() public méthode

public SwarmConnection ( ) : System
Résultat System

getSocket() public méthode

public getSocket ( ) : AsynchronousSocketListener
Résultat AsynchronousSocketListener