C# Class DeOps.Implementation.Transport.TcpConnect

Inheritance: DhtSource
Show file Open project: swax/DeOps Class Usage Examples

Public Properties

Property Type Description
Age int
Bandwidth BandwidthLog
ByeMessage string
BytesReceivedinSec int
BytesSentinSec int
CheckedFirewall bool
Core OpCore
FinalRecvBuffSize int
FinalRecvBuffer byte[]
Network DeOps.Implementation.Dht.DhtNetwork
Outbound bool
Proxy ProxyType
RecvBuffSize int
RecvBuffer byte[]
RemoteIP System.Net.IPAddress
State TcpState
TcpControl DeOps.Implementation.Transport.TcpHandler
TcpSocket Socket

Public Methods

Method Description
CleanClose ( string reason ) : void
CleanClose ( string reason, bool reconnect ) : void
Disconnect ( ) : void
GetContact ( ) : DeOps.Implementation.Dht.DhtContact
GetHashCode ( ) : int
LogException ( string where, string message ) : void
OnConnect ( ) : void
OnReceive ( int length ) : void
ReceivePackets ( ) : void
SecondTimer ( ) : void
SendPacket ( DeOps.Implementation.Protocol.G2Packet packet ) : int
SetConnected ( ) : void
Socket_Connect ( IAsyncResult asyncResult ) : void
Socket_Receive ( IAsyncResult asyncResult ) : void
TcpConnect ( DeOps.Implementation.Transport.TcpHandler control ) : System
TcpConnect ( DeOps.Implementation.Transport.TcpHandler control, DhtAddress address, ushort tcpPort ) : System
ToString ( ) : string
TrySend ( ) : void

Private Methods

Method Description
CreateEncryptor ( ) : 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

GetContact() public method

public GetContact ( ) : DeOps.Implementation.Dht.DhtContact
return DeOps.Implementation.Dht.DhtContact

GetHashCode() public method

public GetHashCode ( ) : int
return int

LogException() public method

public LogException ( 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 ( DeOps.Implementation.Protocol.G2Packet packet ) : int
packet DeOps.Implementation.Protocol.G2Packet
return int

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

TcpConnect() public method

public TcpConnect ( DeOps.Implementation.Transport.TcpHandler control ) : System
control DeOps.Implementation.Transport.TcpHandler
return System

TcpConnect() public method

public TcpConnect ( DeOps.Implementation.Transport.TcpHandler control, DhtAddress address, ushort tcpPort ) : System
control DeOps.Implementation.Transport.TcpHandler
address DhtAddress
tcpPort ushort
return System

ToString() public method

public ToString ( ) : string
return string

TrySend() public method

public TrySend ( ) : void
return void

Property Details

Age public property

public int Age
return int

Bandwidth public property

public BandwidthLog 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

CheckedFirewall public property

public bool CheckedFirewall
return bool

Core public property

public OpCore Core
return OpCore

FinalRecvBuffSize public property

public int FinalRecvBuffSize
return int

FinalRecvBuffer public property

public byte[] FinalRecvBuffer
return byte[]

Network public property

public DhtNetwork,DeOps.Implementation.Dht Network
return DeOps.Implementation.Dht.DhtNetwork

Outbound public property

public bool Outbound
return bool

Proxy public property

public ProxyType Proxy
return ProxyType

RecvBuffSize public property

public int RecvBuffSize
return int

RecvBuffer public property

public byte[] RecvBuffer
return byte[]

RemoteIP public property

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

State public property

public TcpState State
return TcpState

TcpControl public property

public TcpHandler,DeOps.Implementation.Transport TcpControl
return DeOps.Implementation.Transport.TcpHandler

TcpSocket public property

public Socket TcpSocket
return Socket