C# Class Tce.RpcConnectionSocket

Inheritance: RpcConnection
Mostrar archivo Open project: adoggie/TCE

Protected Properties

Property Type Description
_ep RpcEndpointSocket
_sent_num long
_sock Socket
_ssl bool
_thread Thread
_token string

Public Methods

Method Description
RpcConnectionSocket ( RpcEndpointSocket ep ) : System
RpcConnectionSocket ( string host, int port, bool ssl ) : System
close ( ) : void
open ( ) : void

Protected Methods

Method Description
connect ( ) : bool
createMetaPacketHeader ( int msg_size ) : byte[]
createMsgBody ( RpcMessage m ) : MemoryStream
newSocket ( ) : Socket
onDisconnected ( ) : void
parsePacket ( MemoryStream stream ) : ReturnValue
run ( ) : void
sendDetail ( RpcMessage m ) : bool

Method Details

RpcConnectionSocket() public method

public RpcConnectionSocket ( RpcEndpointSocket ep ) : System
ep RpcEndpointSocket
return System

RpcConnectionSocket() public method

public RpcConnectionSocket ( string host, int port, bool ssl ) : System
host string
port int
ssl bool
return System

close() public method

public close ( ) : void
return void

connect() protected method

protected connect ( ) : bool
return bool

createMetaPacketHeader() protected method

protected createMetaPacketHeader ( int msg_size ) : byte[]
msg_size int
return byte[]

createMsgBody() protected method

protected createMsgBody ( RpcMessage m ) : MemoryStream
m RpcMessage
return System.IO.MemoryStream

newSocket() protected method

protected newSocket ( ) : Socket
return Socket

onDisconnected() protected method

protected onDisconnected ( ) : void
return void

open() public method

public open ( ) : void
return void

parsePacket() protected method

protected parsePacket ( MemoryStream stream ) : ReturnValue
stream System.IO.MemoryStream
return ReturnValue

run() protected method

protected run ( ) : void
return void

sendDetail() protected method

protected sendDetail ( RpcMessage m ) : bool
m RpcMessage
return bool

Property Details

_ep protected_oe property

protected RpcEndpointSocket,Tce _ep
return RpcEndpointSocket

_sent_num protected_oe property

protected long _sent_num
return long

_sock protected_oe property

protected Socket _sock
return Socket

_ssl protected_oe property

protected bool _ssl
return bool

_thread protected_oe property

protected Thread _thread
return Thread

_token protected_oe property

protected string _token
return string