C# Class XLibrary.Remote.XConnection

Show file Open project: swax/CodePerspective Class Usage Examples

Public Properties

Property Type Description
Age int
Bandwidth BandwidthLog
ByeMessage string
BytesReceivedinSec int
BytesSentinSec int
FinalRecvBuffSize int
FinalRecvBuffer byte[]
LastSyncSize int
Outbound bool
RecvBuffSize int
RecvBuffer byte[]
Remote XRemote
RemoteIP System.Net.IPAddress
State TcpState
SyncCount int
SyncsPerSecond int
TcpPort ushort
TcpSocket Socket

Public Methods

Method Description
CleanClose ( string reason ) : void
CleanClose ( string reason, bool reconnect ) : void
Disconnect ( ) : void
Log ( string where, string message ) : void
OnConnect ( ) : void
OnReceive ( int length ) : void
ReceivePackets ( ) : void
SecondTimer ( ) : void
SendPacket ( G2Packet packet ) : int
SendSyncPacket ( SyncPacket packet ) : void
SetConnected ( ) : void
Socket_Connect ( IAsyncResult asyncResult ) : void
Socket_Receive ( IAsyncResult asyncResult ) : void
Socket_Send ( IAsyncResult asyncResult ) : void
ToString ( ) : string
TrySend ( ) : void
XConnection ( XRemote remote ) : System
XConnection ( XRemote remote, IPAddress ip, ushort tcpPort ) : System

Private Methods

Method Description
CreateEncryptor ( ) : void
LogPacket ( PacketLogEntry logEntry ) : void

Method Details

CleanClose() public method

public CleanClose ( string reason ) : void
reason string
return void

CleanClose() public method

public CleanClose ( string reason, bool reconnect ) : void
reason string
reconnect bool
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Log() public method

public Log ( string where, string message ) : void
where string
message string
return void

OnConnect() public method

public OnConnect ( ) : void
return void

OnReceive() public method

public OnReceive ( int length ) : void
length int
return void

ReceivePackets() public method

public ReceivePackets ( ) : void
return void

SecondTimer() public method

public SecondTimer ( ) : void
return void

SendPacket() public method

public SendPacket ( G2Packet packet ) : int
packet G2Packet
return int

SendSyncPacket() public method

public SendSyncPacket ( SyncPacket packet ) : void
packet SyncPacket
return void

SetConnected() public method

public SetConnected ( ) : void
return void

Socket_Connect() public method

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

Socket_Receive() public method

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

Socket_Send() public method

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

ToString() public method

public ToString ( ) : string
return string

TrySend() public method

public TrySend ( ) : void
return void

XConnection() public method

public XConnection ( XRemote remote ) : System
remote XRemote
return System

XConnection() public method

public XConnection ( XRemote remote, IPAddress ip, ushort tcpPort ) : System
remote XRemote
ip System.Net.IPAddress
tcpPort ushort
return System

Property Details

Age public property

public int Age
return int

Bandwidth public property

public BandwidthLog,XLibrary.Remote Bandwidth
return BandwidthLog

ByeMessage public property

public string ByeMessage
return string

BytesReceivedinSec public property

public int BytesReceivedinSec
return int

BytesSentinSec public property

public int BytesSentinSec
return int

FinalRecvBuffSize public property

public int FinalRecvBuffSize
return int

FinalRecvBuffer public property

public byte[] FinalRecvBuffer
return byte[]

LastSyncSize public property

public int LastSyncSize
return int

Outbound public property

public bool Outbound
return bool

RecvBuffSize public property

public int RecvBuffSize
return int

RecvBuffer public property

public byte[] RecvBuffer
return byte[]

Remote public property

public XRemote,XLibrary.Remote Remote
return XRemote

RemoteIP public property

public IPAddress,System.Net RemoteIP
return System.Net.IPAddress

State public property

public TcpState State
return TcpState

SyncCount public property

public int SyncCount
return int

SyncsPerSecond public property

public int SyncsPerSecond
return int

TcpPort public property

public ushort TcpPort
return ushort

TcpSocket public property

public Socket TcpSocket
return Socket