C# Class Yodiwo.YPChannel.Transport.Sockets.CommonSocketChannel

Inheritance: Channel, IDisposable
ファイルを表示 Open project: yodiwo/plegma

Public Properties

Property Type Description
LocalHost string
LocalPort string
RemoteHost string
RemotePort string

Protected Properties

Property Type Description
_sock Windows.Networking.Sockets.StreamSocket
netstream Stream
streamIn StatisticsStream
streamOut StatisticsStream

Public Methods

Method Description
CommonSocketChannel ( Protocol Protocols, ChannelRole ChannelRole, ChannelSerializationMode SupportedChannelSerializationModes, ChannelSerializationMode PreferredChannelSerializationModes ) : System
Dispose ( ) : void

Protected Methods

Method Description
SetupStream ( ) : void
SetupStream ( Stream baseStream ) : void
_flush ( int Timeout ) : void
_readPackedMessage ( ) : YPMessagePacked
_sendPackedMessage ( YPMessagePacked msg ) : bool
onClose ( string Message ) : void

Private Methods

Method Description
_reader ( byte buffer, int offset, int count ) : bool

Method Details

CommonSocketChannel() public method

public CommonSocketChannel ( Protocol Protocols, ChannelRole ChannelRole, ChannelSerializationMode SupportedChannelSerializationModes, ChannelSerializationMode PreferredChannelSerializationModes ) : System
Protocols Protocol
ChannelRole ChannelRole
SupportedChannelSerializationModes ChannelSerializationMode
PreferredChannelSerializationModes ChannelSerializationMode
return System

Dispose() public method

public Dispose ( ) : void
return void

SetupStream() protected method

protected SetupStream ( ) : void
return void

SetupStream() protected method

protected SetupStream ( Stream baseStream ) : void
baseStream Stream
return void

_flush() protected method

protected _flush ( int Timeout ) : void
Timeout int
return void

_readPackedMessage() protected method

protected _readPackedMessage ( ) : YPMessagePacked
return YPMessagePacked

_sendPackedMessage() protected method

protected _sendPackedMessage ( YPMessagePacked msg ) : bool
msg YPMessagePacked
return bool

onClose() protected method

protected onClose ( string Message ) : void
Message string
return void

Property Details

LocalHost public_oe property

public string LocalHost
return string

LocalPort public_oe property

public string LocalPort
return string

RemoteHost public_oe property

public string RemoteHost
return string

RemotePort public_oe property

public string RemotePort
return string

_sock protected_oe property

protected StreamSocket,Windows.Networking.Sockets _sock
return Windows.Networking.Sockets.StreamSocket

netstream protected_oe property

protected Stream netstream
return Stream

streamIn protected_oe property

protected StatisticsStream streamIn
return StatisticsStream

streamOut protected_oe property

protected StatisticsStream streamOut
return StatisticsStream