C# Class Spinach.AsynchronousSocketListener

Datei anzeigen Open project: shranjan/pinac

Public Properties

Property Type Description
allDone System.Threading.ManualResetEvent

Public Methods

Method Description
AsynchronousSocketListener ( ) : System
Clear ( ) : void
CloseSocket ( ) : void
Disconnect ( ) : void
GetBackup ( ) : String
GetCPU ( ) : String
GetIP ( ) : String
GetIPtoPeer ( ) : Hashtable
GetMaster ( ) : String
GetName ( ) : String
GetNametoIP ( ) : Hashtable
GetPidtoProgram ( ) : Hashtable
GetPort ( ) : String
GetProg ( String pid ) : SwarmMemory
InsertPeer ( String ip, String port, String name, String cpu ) : int
InsertProg ( String pid, SwarmMemory prog ) : void
InsertReceiveTime ( String ipport, String time ) : void
InsertSendTime ( String ipport, String time ) : void
RemovePeer ( String ipport ) : int
SetBackup ( String str ) : void
SetCPU ( String str ) : void
SetIP ( String str ) : void
SetMaster ( String str ) : void
SetName ( String str ) : void
SetPort ( String str ) : void
ShutDown ( string ExcepErr ) : void
StarHeartBeat ( ) : void
StartListening ( ) : void
getRunFailMsg ( String msg ) : void
getRunMsg ( String msg ) : void
getRunSuccessMsg ( String msg ) : void

Private Methods

Method Description
AcceptCallback ( IAsyncResult ar ) : void
GetTimeDifference ( string SendTime, string RecevTime ) : int
InsertDelay ( String ipport, String Delay ) : void
ReadCallback ( IAsyncResult ar ) : void
getBackupMsg ( String msg ) : void
getChatMsg ( String msg ) : void
getConnectionRequestMsg ( String msg ) : void
getDisconnectMsg ( String msg ) : void
getErrorMsg ( String msg ) : void
getHeartBeatReplyMsg ( String msg ) : void
getHeartBeatRequestMsg ( String msg ) : void
getIPtoPeerMsg ( String msg ) : void
getMasterMsg ( String msg ) : void
getPrallelSet ( String msg ) : void
getResultSet ( String msg ) : void
parseMsg ( String msg ) : void
preProcess ( String msg ) : void
selectbackup ( ) : String
setMasterBackup ( String ipport ) : void
showHeartBeat ( String ipport ) : void
showTable ( ) : void

Method Details

AsynchronousSocketListener() public method

public AsynchronousSocketListener ( ) : System
return System

Clear() public method

public Clear ( ) : void
return void

CloseSocket() public method

public CloseSocket ( ) : void
return void

Disconnect() public method

public Disconnect ( ) : void
return void

GetBackup() public method

public GetBackup ( ) : String
return String

GetCPU() public method

public GetCPU ( ) : String
return String

GetIP() public method

public GetIP ( ) : String
return String

GetIPtoPeer() public method

public GetIPtoPeer ( ) : Hashtable
return System.Collections.Hashtable

GetMaster() public method

public GetMaster ( ) : String
return String

GetName() public method

public GetName ( ) : String
return String

GetNametoIP() public method

public GetNametoIP ( ) : Hashtable
return System.Collections.Hashtable

GetPidtoProgram() public method

public GetPidtoProgram ( ) : Hashtable
return System.Collections.Hashtable

GetPort() public method

public GetPort ( ) : String
return String

GetProg() public method

public GetProg ( String pid ) : SwarmMemory
pid String
return SwarmMemory

InsertPeer() public method

public InsertPeer ( String ip, String port, String name, String cpu ) : int
ip String
port String
name String
cpu String
return int

InsertProg() public method

public InsertProg ( String pid, SwarmMemory prog ) : void
pid String
prog SwarmMemory
return void

InsertReceiveTime() public method

public InsertReceiveTime ( String ipport, String time ) : void
ipport String
time String
return void

InsertSendTime() public method

public InsertSendTime ( String ipport, String time ) : void
ipport String
time String
return void

RemovePeer() public method

public RemovePeer ( String ipport ) : int
ipport String
return int

SetBackup() public method

public SetBackup ( String str ) : void
str String
return void

SetCPU() public method

public SetCPU ( String str ) : void
str String
return void

SetIP() public method

public SetIP ( String str ) : void
str String
return void

SetMaster() public method

public SetMaster ( String str ) : void
str String
return void

SetName() public method

public SetName ( String str ) : void
str String
return void

SetPort() public method

public SetPort ( String str ) : void
str String
return void

ShutDown() public method

public ShutDown ( string ExcepErr ) : void
ExcepErr string
return void

StarHeartBeat() public method

public StarHeartBeat ( ) : void
return void

StartListening() public method

public StartListening ( ) : void
return void

getRunFailMsg() public method

public getRunFailMsg ( String msg ) : void
msg String
return void

getRunMsg() public method

public getRunMsg ( String msg ) : void
msg String
return void

getRunSuccessMsg() public method

public getRunSuccessMsg ( String msg ) : void
msg String
return void

Property Details

allDone public_oe property

public ManualResetEvent,System.Threading allDone
return System.Threading.ManualResetEvent