C# Class PackageSocket, UnityUtils

Mostrar archivo Open project: dpull/UnityUtils

Public Properties

Property Type Description
AutoSendPingSetting int
ConnectTimeoutSetting int
OnConnect ConnectCallback
OnDisconnect DisconnectCallback
OnRecvive RecviveCallback
ReceiveTimeoutSetting int

Public Methods

Method Description
Close ( ) : void
Connect ( string ip, int port ) : void
MemmoveRecvBuffer ( ) : void
PackageSocket ( ) : System
ProcessConnect ( ) : void
ProcessPackage ( ) : void
ProcessReceive ( ) : void
ProcessSend ( ) : void
Reset ( ) : void
Send ( Byte buffer, int start, int length ) : void
SendPing ( ) : void
SetError ( SocketError, socketError, PackageSocketError packageSocketError ) : void
ToString ( ) : string
Update ( ) : void

Protected Methods

Method Description
DecodeHeader ( byte buffer, int start, int length, int &dataLength ) : int
EncodeHeader ( int length, byte buffer, int start ) : void
GetHeaderLength ( ) : int

Method Details

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( string ip, int port ) : void
ip string
port int
return void

DecodeHeader() protected method

protected DecodeHeader ( byte buffer, int start, int length, int &dataLength ) : int
buffer byte
start int
length int
dataLength int
return int

EncodeHeader() protected method

protected EncodeHeader ( int length, byte buffer, int start ) : void
length int
buffer byte
start int
return void

GetHeaderLength() protected method

protected GetHeaderLength ( ) : int
return int

MemmoveRecvBuffer() public method

public MemmoveRecvBuffer ( ) : void
return void

PackageSocket() public method

public PackageSocket ( ) : System
return System

ProcessConnect() public method

public ProcessConnect ( ) : void
return void

ProcessPackage() public method

public ProcessPackage ( ) : void
return void

ProcessReceive() public method

public ProcessReceive ( ) : void
return void

ProcessSend() public method

public ProcessSend ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Send() public method

public Send ( Byte buffer, int start, int length ) : void
buffer Byte
start int
length int
return void

SendPing() public method

public SendPing ( ) : void
return void

SetError() public method

public SetError ( SocketError, socketError, PackageSocketError packageSocketError ) : void
socketError SocketError,
packageSocketError PackageSocketError
return void

ToString() public method

public ToString ( ) : string
return string

Update() public method

public Update ( ) : void
return void

Property Details

AutoSendPingSetting public_oe property

public int AutoSendPingSetting
return int

ConnectTimeoutSetting public_oe property

public int ConnectTimeoutSetting
return int

OnConnect public_oe property

public ConnectCallback OnConnect
return ConnectCallback

OnDisconnect public_oe property

public DisconnectCallback OnDisconnect
return DisconnectCallback

OnRecvive public_oe property

public RecviveCallback OnRecvive
return RecviveCallback

ReceiveTimeoutSetting public_oe property

public int ReceiveTimeoutSetting
return int