C# 클래스 SocketLibrary.SocketClient

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

공개 프로퍼티들

프로퍼티 타입 설명
END_OF_PACKET byte
Receiving bool
Sock System.Net.Sockets.Socket
SocketName string
confirmPackets System.Boolean

공개 메소드들

메소드 설명
Disable ( ) : void

Disables the socket client.

DisableLogging ( ) : void

Disables logging for this client, increasing performance.

Enable ( ) : void

Enables the socket to accept packets

GetRemoteHostIP ( ) : String

Gets the IP address of this client in string representation

OnProcessPacket ( Packet p ) : void

Packet processor has determined that the packet needed processing.

SendPacket ( Packet packet ) : void

Sends a packet to the Socket we're connected with.

Show ( Exception Text ) : void
Show ( string Text ) : void
SocketClient ( Socket _sock, string _socketname ) : System

메소드 상세

Disable() 공개 메소드

Disables the socket client.
public Disable ( ) : void
리턴 void

DisableLogging() 공개 메소드

Disables logging for this client, increasing performance.
public DisableLogging ( ) : void
리턴 void

Enable() 공개 메소드

Enables the socket to accept packets
public Enable ( ) : void
리턴 void

GetRemoteHostIP() 공개 메소드

Gets the IP address of this client in string representation
public GetRemoteHostIP ( ) : String
리턴 String

OnProcessPacket() 공개 메소드

Packet processor has determined that the packet needed processing.
public OnProcessPacket ( Packet p ) : void
p SocketLibrary.Packets.Packet The packet that needed processing
리턴 void

SendPacket() 공개 메소드

Sends a packet to the Socket we're connected with.
public SendPacket ( Packet packet ) : void
packet SocketLibrary.Packets.Packet The packet to send
리턴 void

Show() 공개 메소드

public Show ( Exception Text ) : void
Text System.Exception
리턴 void

Show() 공개 메소드

public Show ( string Text ) : void
Text string
리턴 void

SocketClient() 공개 메소드

public SocketClient ( Socket _sock, string _socketname ) : System
_sock System.Net.Sockets.Socket
_socketname string
리턴 System

프로퍼티 상세

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

public static byte END_OF_PACKET
리턴 byte

Receiving 공개적으로 프로퍼티

public bool Receiving
리턴 bool

Sock 공개적으로 프로퍼티

public Socket,System.Net.Sockets Sock
리턴 System.Net.Sockets.Socket

SocketName 공개적으로 프로퍼티

public string SocketName
리턴 string

confirmPackets 공개적으로 프로퍼티

public Boolean,System confirmPackets
리턴 System.Boolean