C# 클래스 SocketLibrary.Packets.PacketProcessor

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

공개 메소드들

메소드 설명
PacketProcessor ( ) : System
QueuePacket ( byte fullData, SocketClient receiver ) : void

SentPacket ( Packet p, SocketClient client ) : void

Called when the packet is sent.

StartProcessing ( ) : void

Spawns a thread to start processing packets

StopProcessing ( ) : void

Kills the thread, making it stop processing packets!

비공개 메소드들

메소드 설명
BytesToString ( byte data ) : String

Converts a byte array to a string.

ConfirmPacket ( int packetID ) : void

Confirms a packet ID.

ConstructPacket ( byte fullData ) : SocketLibrary.Packets.Packet[]

Constructs a packet from a full byte array.

ProcessQueue ( ) : void
StringToBytes ( String str ) : byte[]

Converts a string to bytes.

메소드 상세

PacketProcessor() 공개 메소드

public PacketProcessor ( ) : System
리턴 System

QueuePacket() 공개 메소드

public QueuePacket ( byte fullData, SocketClient receiver ) : void
fullData byte
receiver SocketClient
리턴 void

SentPacket() 공개 메소드

Called when the packet is sent.
public SentPacket ( Packet p, SocketClient client ) : void
p Packet The packet that was sent.
client SocketClient
리턴 void

StartProcessing() 공개 메소드

Spawns a thread to start processing packets
public StartProcessing ( ) : void
리턴 void

StopProcessing() 공개 메소드

Kills the thread, making it stop processing packets!
public StopProcessing ( ) : void
리턴 void