C# 클래스 LiteNetLib.NetServer

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

공개 메소드들

메소드 설명
DisconnectPeer ( NetPeer peer ) : void

Disconnect peer from server

GetPeers ( ) : LiteNetLib.NetPeer[]

Get copy of current connected peers

NetServer ( INetEventListener listener, int maxClients, string key ) : System

Creates server object

SendToClients ( NetDataWriter writer, SendOptions options ) : void
SendToClients ( NetDataWriter writer, SendOptions options, NetPeer excludePeer ) : void
SendToClients ( byte data, SendOptions options ) : void
SendToClients ( byte data, SendOptions options, NetPeer excludePeer ) : void
SendToClients ( byte data, int start, int length, SendOptions options ) : void
SendToClients ( byte data, int start, int length, SendOptions options, NetPeer excludePeer ) : void
Stop ( ) : void

보호된 메소드들

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

비공개 메소드들

메소드 설명
ClearPeers ( ) : void
ProcessSendError ( NetEndPoint remoteEndPoint, int socketErrorCode ) : void
ReceiveFromPeer ( NetPacket packet, NetEndPoint remoteEndPoint ) : void
RemovePeer ( NetPeer peer ) : void
SendConnectAccept ( NetPeer peer, ulong id ) : void

메소드 상세

DisconnectPeer() 공개 메소드

Disconnect peer from server
public DisconnectPeer ( NetPeer peer ) : void
peer NetPeer peer to disconnect
리턴 void

GetPeers() 공개 메소드

Get copy of current connected peers
public GetPeers ( ) : LiteNetLib.NetPeer[]
리턴 LiteNetLib.NetPeer[]

NetServer() 공개 메소드

Creates server object
public NetServer ( INetEventListener listener, int maxClients, string key ) : System
listener INetEventListener Listener of server events
maxClients int Maximum clients
key string Application key to identify connecting clients
리턴 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

SendToClients() 공개 메소드

public SendToClients ( NetDataWriter writer, SendOptions options ) : void
writer LiteNetLib.Utils.NetDataWriter
options SendOptions
리턴 void

SendToClients() 공개 메소드

public SendToClients ( NetDataWriter writer, SendOptions options, NetPeer excludePeer ) : void
writer LiteNetLib.Utils.NetDataWriter
options SendOptions
excludePeer NetPeer
리턴 void

SendToClients() 공개 메소드

public SendToClients ( byte data, SendOptions options ) : void
data byte
options SendOptions
리턴 void

SendToClients() 공개 메소드

public SendToClients ( byte data, SendOptions options, NetPeer excludePeer ) : void
data byte
options SendOptions
excludePeer NetPeer
리턴 void

SendToClients() 공개 메소드

public SendToClients ( byte data, int start, int length, SendOptions options ) : void
data byte
start int
length int
options SendOptions
리턴 void

SendToClients() 공개 메소드

public SendToClients ( byte data, int start, int length, SendOptions options, NetPeer excludePeer ) : void
data byte
start int
length int
options SendOptions
excludePeer NetPeer
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void