C# Class NSocket.SocketLib.NSocketRebot

Datei anzeigen Open project: ODotNet/NSocket

Public Methods

Method Description
NSocketRebot ( IPAddress serverAddress, int port, int messageBuffer ) : System
Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
AutoRun ( ) : void

每隔1秒发送一条消息

IsServerConnectRequired ( ) : bool
TryConnect ( ) : void
client_DataSendedEvent ( byte data, int offSet, int length ) : void
client_DateReceivedEvent ( byte data, int offSet, int length ) : void
client_OnSended ( bool successorfalse ) : void
client_ServerEvent ( System obj ) : void
client_ServerStop ( ) : void

Method Details

NSocketRebot() public method

public NSocketRebot ( IPAddress serverAddress, int port, int messageBuffer ) : System
serverAddress System.Net.IPAddress
port int
messageBuffer int
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void