C# Class SocketLibrary.SocketClient

Afficher le fichier Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Méthodes publiques

Свойство Type Description
END_OF_PACKET byte
Receiving bool
Sock System.Net.Sockets.Socket
SocketName string
confirmPackets System.Boolean

Méthodes publiques

Méthode Description
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

Method Details

Disable() public méthode

Disables the socket client.
public Disable ( ) : void
Résultat void

DisableLogging() public méthode

Disables logging for this client, increasing performance.
public DisableLogging ( ) : void
Résultat void

Enable() public méthode

Enables the socket to accept packets
public Enable ( ) : void
Résultat void

GetRemoteHostIP() public méthode

Gets the IP address of this client in string representation
public GetRemoteHostIP ( ) : String
Résultat String

OnProcessPacket() public méthode

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

SendPacket() public méthode

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

Show() public méthode

public Show ( Exception Text ) : void
Text System.Exception
Résultat void

Show() public méthode

public Show ( string Text ) : void
Text string
Résultat void

SocketClient() public méthode

public SocketClient ( Socket _sock, string _socketname ) : System
_sock System.Net.Sockets.Socket
_socketname string
Résultat System

Property Details

END_OF_PACKET public_oe static_oe property

public static byte END_OF_PACKET
Résultat byte

Receiving public_oe property

public bool Receiving
Résultat bool

Sock public_oe property

public Socket,System.Net.Sockets Sock
Résultat System.Net.Sockets.Socket

SocketName public_oe property

public string SocketName
Résultat string

confirmPackets public_oe property

public Boolean,System confirmPackets
Résultat System.Boolean