C# 클래스 LiteNetLib.NetClient

상속: NetBase
파일 보기 프로젝트 열기: RevenantX/LiteNetLib 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MaxConnectAttempts int
PeerToPeerMode bool
ReconnectDelay int

공개 메소드들

메소드 설명
Connect ( NetEndPoint target ) : void
Connect ( string address, int port ) : void

Connect to NetServer or NetClient with PeerToPeerMode

Disconnect ( ) : void

Disconnect from NetServer

NetClient ( INetEventListener listener, string connectKey ) : System
Stop ( ) : void

Force closes connection and stop all threads.

보호된 메소드들

메소드 설명
PostProcessEvent ( int deltaTime ) : void
ProcessReceiveError ( int socketErrorCode ) : void
ReceiveFromSocket ( byte reusableBuffer, int count, NetEndPoint remoteEndPoint ) : void

비공개 메소드들

메소드 설명
CloseConnection ( bool force, DisconnectReason reason, int socketErrorCode ) : void
ProcessConnectAccept ( ) : void
ProcessSendError ( NetEndPoint remoteEndPoint, int socketErrorCode ) : void
ReceiveFromPeer ( NetPacket packet, NetEndPoint remoteEndPoint ) : void
SendConnectRequest ( ) : void

메소드 상세

Connect() 공개 메소드

public Connect ( NetEndPoint target ) : void
target NetEndPoint
리턴 void

Connect() 공개 메소드

Connect to NetServer or NetClient with PeerToPeerMode
public Connect ( string address, int port ) : void
address string Server IP or hostname
port int Server Port
리턴 void

Disconnect() 공개 메소드

Disconnect from NetServer
public Disconnect ( ) : void
리턴 void

NetClient() 공개 메소드

public NetClient ( INetEventListener listener, string connectKey ) : System
listener INetEventListener
connectKey string
리턴 System

PostProcessEvent() 보호된 메소드

protected PostProcessEvent ( int deltaTime ) : void
deltaTime int
리턴 void

ProcessReceiveError() 보호된 메소드

protected ProcessReceiveError ( int socketErrorCode ) : void
socketErrorCode int
리턴 void

ReceiveFromSocket() 보호된 메소드

protected ReceiveFromSocket ( byte reusableBuffer, int count, NetEndPoint remoteEndPoint ) : void
reusableBuffer byte
count int
remoteEndPoint NetEndPoint
리턴 void

Stop() 공개 메소드

Force closes connection and stop all threads.
public Stop ( ) : void
리턴 void

프로퍼티 상세

MaxConnectAttempts 공개적으로 프로퍼티

public int MaxConnectAttempts
리턴 int

PeerToPeerMode 공개적으로 프로퍼티

public bool PeerToPeerMode
리턴 bool

ReconnectDelay 공개적으로 프로퍼티

public int ReconnectDelay
리턴 int