C# Class SpiderDriver.DataService

Inheritance: SocketServer2
Mostra file Open project: cdy816/mars

Public Methods

Method Description
AsyncCallback ( string clientId, ByteBuffer data ) : void

AsyncCallback ( string clientId, byte fun, Array value, int len ) : void

AsyncCallback ( string clientId, byte fun, IntPtr value, int len ) : void

DataService ( ) : Cdy.Tag

NotifyDatabaseChangd ( bool isRealChanged, bool isHisChanged ) : void

OnClientConnected ( string id, bool isConnected ) : void
PushRealDatatoClient ( string clientId, Array value ) : void

PushRealDatatoClient ( string clientId, ByteBuffer value ) : void

Start ( int port ) : void

Stop ( ) : void

Private Methods

Method Description
HisDataRequest ( string clientid, ByteBuffer memory ) : ByteBuffer

RealDataRequest ( string clientId, ByteBuffer memory ) : ByteBuffer

RegistorInit ( ) : void

TagInfoRequest ( string clientId, ByteBuffer memory ) : ByteBuffer

Method Details

AsyncCallback() public method

public AsyncCallback ( string clientId, ByteBuffer data ) : void
clientId string
data ByteBuffer
return void

AsyncCallback() public method

public AsyncCallback ( string clientId, byte fun, Array value, int len ) : void
clientId string
fun byte
value Array
len int
return void

AsyncCallback() public method

public AsyncCallback ( string clientId, byte fun, IntPtr value, int len ) : void
clientId string
fun byte
value IntPtr
len int
return void

DataService() public method

public DataService ( ) : Cdy.Tag
return Cdy.Tag

NotifyDatabaseChangd() public method

public NotifyDatabaseChangd ( bool isRealChanged, bool isHisChanged ) : void
isRealChanged bool
isHisChanged bool
return void

OnClientConnected() public method

public OnClientConnected ( string id, bool isConnected ) : void
id string
isConnected bool
return void

PushRealDatatoClient() public method

public PushRealDatatoClient ( string clientId, Array value ) : void
clientId string
value Array
return void

PushRealDatatoClient() public method

public PushRealDatatoClient ( string clientId, ByteBuffer value ) : void
clientId string
value ByteBuffer
return void

Start() public method

public Start ( int port ) : void
port int
return void

Stop() public method

public Stop ( ) : void
return void