C# Class HumbleNetwork.Streams.HumbleStreamBase

Inheritance: IHumbleStream
Mostra file Open project: joaofx/HumbleNetwork

Protected Properties

Property Type Description
stream System.Net.Sockets.NetworkStream

Public Methods

Method Description
Close ( ) : void
Receive ( ) : string
Receive ( int length ) : string
Send ( string message ) : void

Protected Methods

Method Description
AppendBuffer ( string data ) : void
CustomSend ( byte data ) : void
GetFromBuffer ( int length ) : string
HumbleStreamBase ( TcpClient client ) : System.Net.Sockets
SendMessage ( byte message ) : void

Method Details

AppendBuffer() protected method

protected AppendBuffer ( string data ) : void
data string
return void

Close() public method

public Close ( ) : void
return void

CustomSend() protected abstract method

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

GetFromBuffer() protected method

protected GetFromBuffer ( int length ) : string
length int
return string

HumbleStreamBase() protected method

protected HumbleStreamBase ( TcpClient client ) : System.Net.Sockets
client System.Net.Sockets.TcpClient
return System.Net.Sockets

Receive() public abstract method

public abstract Receive ( ) : string
return string

Receive() public method

public Receive ( int length ) : string
length int
return string

Send() public method

public Send ( string message ) : void
message string
return void

SendMessage() protected method

protected SendMessage ( byte message ) : void
message byte
return void

Property Details

stream protected_oe property

protected NetworkStream,System.Net.Sockets stream
return System.Net.Sockets.NetworkStream