C# Class Gwupe.Communication.P2P.RUDP.Tunnel.Transport.TCPTransport

Inheritance: ITCPTransport
Mostrar archivo Open project: gwupe/Gwupe Class Usage Examples

Public Methods

Method Description
Close ( ) : void
CloseConnection ( byte connectionId ) : void
Listen ( string endPoint, bool>.Func callback ) : void
OpenConnection ( String endPoint, byte protocolId ) : ITcpOverUdptSocket
OpenConnection ( string endPoint ) : ITcpOverUdptSocket
ProcessPacket ( byte packetData ) : void
SendData ( ITcpPacket packet ) : void
StopListen ( string endPoint ) : void
TCPTransport ( ITransportManager transportManager ) : System

Private Methods

Method Description
CloseConnections ( ) : void
ConnectionOnConnectionClose ( object sender, EventArgs eventArgs ) : void
GetNextConnectionId ( ) : byte
ProcessAckPacket ( StandardAckPacket packet ) : void
ProcessConnectRsAck ( StandardConnectRsAckPacket packet ) : void
ProcessDataPacket ( StandardTcpDataPacket packet ) : void
ProcessDisconnectPacket ( StandardDisconnectPacket packet ) : void
ProcessNamedConnectionRequest ( StandardNamedConnectRqPacket packet ) : void

Method Details

Close() public method

public Close ( ) : void
return void

CloseConnection() public method

public CloseConnection ( byte connectionId ) : void
connectionId byte
return void

Listen() public method

public Listen ( string endPoint, bool>.Func callback ) : void
endPoint string
callback bool>.Func
return void

OpenConnection() public method

public OpenConnection ( String endPoint, byte protocolId ) : ITcpOverUdptSocket
endPoint String
protocolId byte
return ITcpOverUdptSocket

OpenConnection() public method

public OpenConnection ( string endPoint ) : ITcpOverUdptSocket
endPoint string
return ITcpOverUdptSocket

ProcessPacket() public method

public ProcessPacket ( byte packetData ) : void
packetData byte
return void

SendData() public method

public SendData ( ITcpPacket packet ) : void
packet ITcpPacket
return void

StopListen() public method

public StopListen ( string endPoint ) : void
endPoint string
return void

TCPTransport() public method

public TCPTransport ( ITransportManager transportManager ) : System
transportManager ITransportManager
return System