C# 클래스 PackageSocket, UnityUtils

파일 보기 프로젝트 열기: dpull/UnityUtils

공개 프로퍼티들

프로퍼티 타입 설명
AutoSendPingSetting int
ConnectTimeoutSetting int
OnConnect ConnectCallback
OnDisconnect DisconnectCallback
OnRecvive RecviveCallback
ReceiveTimeoutSetting int

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
DecodeHeader ( byte buffer, int start, int length, int &dataLength ) : int
EncodeHeader ( int length, byte buffer, int start ) : void
GetHeaderLength ( ) : int

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

Connect() 공개 메소드

public Connect ( string ip, int port ) : void
ip string
port int
리턴 void

DecodeHeader() 보호된 메소드

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

EncodeHeader() 보호된 메소드

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

GetHeaderLength() 보호된 메소드

protected GetHeaderLength ( ) : int
리턴 int

MemmoveRecvBuffer() 공개 메소드

public MemmoveRecvBuffer ( ) : void
리턴 void

PackageSocket() 공개 메소드

public PackageSocket ( ) : System
리턴 System

ProcessConnect() 공개 메소드

public ProcessConnect ( ) : void
리턴 void

ProcessPackage() 공개 메소드

public ProcessPackage ( ) : void
리턴 void

ProcessReceive() 공개 메소드

public ProcessReceive ( ) : void
리턴 void

ProcessSend() 공개 메소드

public ProcessSend ( ) : void
리턴 void

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Send() 공개 메소드

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

SendPing() 공개 메소드

public SendPing ( ) : void
리턴 void

SetError() 공개 메소드

public SetError ( SocketError, socketError, PackageSocketError packageSocketError ) : void
socketError SocketError,
packageSocketError PackageSocketError
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Update() 공개 메소드

public Update ( ) : void
리턴 void

프로퍼티 상세

AutoSendPingSetting 공개적으로 프로퍼티

public int AutoSendPingSetting
리턴 int

ConnectTimeoutSetting 공개적으로 프로퍼티

public int ConnectTimeoutSetting
리턴 int

OnConnect 공개적으로 프로퍼티

public ConnectCallback OnConnect
리턴 ConnectCallback

OnDisconnect 공개적으로 프로퍼티

public DisconnectCallback OnDisconnect
리턴 DisconnectCallback

OnRecvive 공개적으로 프로퍼티

public RecviveCallback OnRecvive
리턴 RecviveCallback

ReceiveTimeoutSetting 공개적으로 프로퍼티

public int ReceiveTimeoutSetting
리턴 int