C# Class FileFind.Meshwork.Transport.TransportBase

Inheritance: ITransport
Show file Open project: codebutler/meshwork

Protected Properties

Property Type Description
connectionType ulong
incoming bool
transportState TransportState

Public Methods

Method Description
BeginReceive ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
BeginReceiveMessage ( AsyncCallback callback, object state ) : IAsyncResult
BeginSend ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
BeginSendMessage ( byte buffer, AsyncCallback callback, object state ) : IAsyncResult
Connect ( TransportCallback callback ) : void
Disconnect ( ) : void
Disconnect ( Exception ex ) : void
EndReceive ( IAsyncResult asyncResult ) : int
EndReceiveMessage ( IAsyncResult asyncResult ) : byte[]
EndSend ( IAsyncResult asyncResult ) : int
EndSendMessage ( IAsyncResult asyncResult ) : void
Receive ( byte buffer ) : int
Receive ( byte buffer, int offset, int size ) : int
ReceiveMessage ( ) : byte[]
Send ( byte buffer ) : int
Send ( byte buffer, int offset, int size ) : int
SendMessage ( byte buffer ) : void

Protected Methods

Method Description
RaiseConnected ( ) : void
RaiseDisconnected ( Exception ex ) : void

Method Details

BeginReceive() public method

public BeginReceive ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
callback AsyncCallback
state object
return IAsyncResult

BeginReceiveMessage() public method

public BeginReceiveMessage ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( byte buffer, int offset, int size, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
size int
callback AsyncCallback
state object
return IAsyncResult

BeginSendMessage() public method

public BeginSendMessage ( byte buffer, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
callback AsyncCallback
state object
return IAsyncResult

Connect() public abstract method

public abstract Connect ( TransportCallback callback ) : void
callback TransportCallback
return void

Disconnect() public abstract method

public abstract Disconnect ( ) : void
return void

Disconnect() public abstract method

public abstract Disconnect ( Exception ex ) : void
ex System.Exception
return void

EndReceive() public method

public EndReceive ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndReceiveMessage() public method

public EndReceiveMessage ( IAsyncResult asyncResult ) : byte[]
asyncResult IAsyncResult
return byte[]

EndSend() public method

public EndSend ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndSendMessage() public method

public EndSendMessage ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

RaiseConnected() protected method

protected RaiseConnected ( ) : void
return void

RaiseDisconnected() protected method

protected RaiseDisconnected ( Exception ex ) : void
ex System.Exception
return void

Receive() public method

public Receive ( byte buffer ) : int
buffer byte
return int

Receive() public abstract method

public abstract Receive ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size int
return int

ReceiveMessage() public method

public ReceiveMessage ( ) : byte[]
return byte[]

Send() public method

public Send ( byte buffer ) : int
buffer byte
return int

Send() public abstract method

public abstract Send ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size int
return int

SendMessage() public method

public SendMessage ( byte buffer ) : void
buffer byte
return void

Property Details

connectionType protected property

protected ulong connectionType
return ulong

incoming protected property

protected bool incoming
return bool

transportState protected property

protected TransportState transportState
return TransportState