C# 클래스 SharpQuake.Net

파일 보기 프로젝트 열기: Memorix101/SharpQuake 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ActiveConnections int
HostCacheCount int
HostPort int
LanDriverLevel int
Message MsgWriter
Reader MsgReader
SlistLocal bool
SlistSilent bool

공개 메소드들

메소드 설명
CanSendMessage ( qsocket_t sock ) : bool

NET_CanSendMessage Returns true or false if the given qsocket can currently accept a message to be transmitted.

CheckNewConnections ( ) : qsocket_t

NET_CheckNewConnections

Close ( qsocket_t sock ) : void

NET_Close

Connect ( string host ) : qsocket_t

NET_Connect called by client to connect to a host. Returns -1 if not able to connect

FreeSocket ( qsocket_t sock ) : void

NET_FreeQSocket

GetMessage ( qsocket_t sock ) : int

NET_GetMessage returns data in net_message sizebuf returns 0 if no data is waiting returns 1 if a message was received returns 2 if an unreliable message was received returns -1 if the connection died

Init ( ) : void
NewSocket ( ) : qsocket_t

NET_NewQSocket Called by drivers when a new communications endpoint is required The sequence and buffer fields will be filled in properly

Poll ( ) : void

NET_Poll

SendMessage ( qsocket_t sock, MsgWriter data ) : int

NET_SendMessage Try to send a complete length+message unit over the reliable stream. returns 0 if the message cannot be delivered reliably, but the connection is still considered valid returns 1 if the message was sent properly returns -1 if the connection died

SendToAll ( MsgWriter data, int blocktime ) : int

NET_SendToAll This is a reliable *blocking* send to all attached clients.

SendUnreliableMessage ( qsocket_t sock, MsgWriter data ) : int

NET_SendUnreliableMessage returns 0 if the message connot be delivered reliably, but the connection is still considered valid returns 1 if the message was sent properly returns -1 if the connection died

SetNetTime ( ) : double
Shutdown ( ) : void

NET_Shutdown

Slist_f ( ) : void

NET_Slist_f

비공개 메소드들

메소드 설명
Listen_f ( ) : void
MaxPlayers_f ( ) : void
Port_f ( ) : void
PrintSlist ( ) : void
PrintSlistHeader ( ) : void
PrintSlistTrailer ( ) : void
SchedulePollProcedure ( PollProcedure proc, double timeOffset ) : void

SchedulePollProcedure

SlistPoll ( object arg ) : void

Slist_Poll

SlistSend ( object arg ) : void

Slist_Send

메소드 상세

CanSendMessage() 공개 정적인 메소드

NET_CanSendMessage Returns true or false if the given qsocket can currently accept a message to be transmitted.
public static CanSendMessage ( qsocket_t sock ) : bool
sock qsocket_t
리턴 bool

CheckNewConnections() 공개 정적인 메소드

NET_CheckNewConnections
public static CheckNewConnections ( ) : qsocket_t
리턴 qsocket_t

Close() 공개 정적인 메소드

NET_Close
public static Close ( qsocket_t sock ) : void
sock qsocket_t
리턴 void

Connect() 공개 정적인 메소드

NET_Connect called by client to connect to a host. Returns -1 if not able to connect
public static Connect ( string host ) : qsocket_t
host string
리턴 qsocket_t

FreeSocket() 공개 정적인 메소드

NET_FreeQSocket
public static FreeSocket ( qsocket_t sock ) : void
sock qsocket_t
리턴 void

GetMessage() 공개 정적인 메소드

NET_GetMessage returns data in net_message sizebuf returns 0 if no data is waiting returns 1 if a message was received returns 2 if an unreliable message was received returns -1 if the connection died
public static GetMessage ( qsocket_t sock ) : int
sock qsocket_t
리턴 int

Init() 공개 정적인 메소드

public static Init ( ) : void
리턴 void

NewSocket() 공개 정적인 메소드

NET_NewQSocket Called by drivers when a new communications endpoint is required The sequence and buffer fields will be filled in properly
public static NewSocket ( ) : qsocket_t
리턴 qsocket_t

Poll() 공개 정적인 메소드

NET_Poll
public static Poll ( ) : void
리턴 void

SendMessage() 공개 정적인 메소드

NET_SendMessage Try to send a complete length+message unit over the reliable stream. returns 0 if the message cannot be delivered reliably, but the connection is still considered valid returns 1 if the message was sent properly returns -1 if the connection died
public static SendMessage ( qsocket_t sock, MsgWriter data ) : int
sock qsocket_t
data MsgWriter
리턴 int

SendToAll() 공개 정적인 메소드

NET_SendToAll This is a reliable *blocking* send to all attached clients.
public static SendToAll ( MsgWriter data, int blocktime ) : int
data MsgWriter
blocktime int
리턴 int

SendUnreliableMessage() 공개 정적인 메소드

NET_SendUnreliableMessage returns 0 if the message connot be delivered reliably, but the connection is still considered valid returns 1 if the message was sent properly returns -1 if the connection died
public static SendUnreliableMessage ( qsocket_t sock, MsgWriter data ) : int
sock qsocket_t
data MsgWriter
리턴 int

SetNetTime() 공개 정적인 메소드

public static SetNetTime ( ) : double
리턴 double

Shutdown() 공개 정적인 메소드

NET_Shutdown
public static Shutdown ( ) : void
리턴 void

Slist_f() 공개 정적인 메소드

NET_Slist_f
public static Slist_f ( ) : void
리턴 void

프로퍼티 상세

ActiveConnections 공개적으로 정적으로 프로퍼티

public static int ActiveConnections
리턴 int

HostCacheCount 공개적으로 정적으로 프로퍼티

public static int HostCacheCount
리턴 int

HostPort 공개적으로 정적으로 프로퍼티

public static int HostPort
리턴 int

LanDriverLevel 공개적으로 정적으로 프로퍼티

public static int LanDriverLevel
리턴 int

Message 공개적으로 정적으로 프로퍼티

public static MsgWriter Message
리턴 MsgWriter

Reader 공개적으로 정적으로 프로퍼티

public static MsgReader Reader
리턴 MsgReader

SlistLocal 공개적으로 정적으로 프로퍼티

public static bool SlistLocal
리턴 bool

SlistSilent 공개적으로 정적으로 프로퍼티

public static bool SlistSilent
리턴 bool