C# Class HumbleNetwork.Streams.FixedLengthStream

Inheritance: HumbleStreamBase
Mostra file Open project: joaofx/HumbleNetwork

Public Methods

Method Description
FixedLengthStream ( TcpClient client ) : System.Net.Sockets
Receive ( ) : string

Protected Methods

Method Description
CustomSend ( byte data ) : void

Private Methods

Method Description
ReceiveLength ( ) : int
ReceiveMessage ( int length ) : string
SendLength ( byte message ) : void

Method Details

CustomSend() protected method

protected CustomSend ( byte data ) : void
data byte
return void

FixedLengthStream() public method

public FixedLengthStream ( TcpClient client ) : System.Net.Sockets
client System.Net.Sockets.TcpClient
return System.Net.Sockets

Receive() public method

public Receive ( ) : string
return string