Свойство | Тип | Описание | |
---|---|---|---|
BIN | int | ||
BOUT | int | ||
IN | int | ||
OUT | int |
Свойство | Тип | Описание | |
---|---|---|---|
m_receiveArgs | |||
m_sendArgs |
Метод | Описание | |
---|---|---|
Authorise ( ) : void |
Send an authorisation request.
|
|
DeferredSendPacket ( IPacketBase packet ) : void |
Queues a packet to be send on the next update. Will coalesce these packets together.
|
|
Dispose ( ) : void |
Clean up this entity
|
|
NetEntity ( |
Create a new entity from a socket and immediately assign it a world id. Requires async socket context objects with buffers pre-assigned
|
|
SendClockSync ( ) : void |
Send a clock sync request, if there is not already one pending.
|
|
SendPacket ( IPacketBase packet ) : void |
Enqueue a packet for sending over the wire
|
|
Update ( System.TimeSpan dt ) : void |
Updates this entity, flushes and handles any pending packets in the incoming queue.
|
Метод | Описание | |
---|---|---|
HandlePacket ( IPacketBase packet ) : void |
Packet handler logic
|
Метод | Описание | |
---|---|---|
DeserializePacket ( |
Deserializes a packet from the given buffer. Returns the amount of bytes consumed.
|
|
QueueReceive ( ) : void |
Begins data receive task on the thread pool
|
|
QueueSend ( ) : void |
Begins data send task on the thread pool
|
|
Receive ( ) : void |
Starts an async receive from the socket
|
|
ReceiveCompleted ( object sender, |
Handle a received packet
|
|
Send ( ) : void |
Poll the outgoing queue and send any packets
|
|
SendCompleted ( object sender, |
Event handler for async send completion
|
|
SerializePacket ( IPacketBase packet ) : void |
Serialize the given packet into the send buffer.
|
|
SyncClock ( int remoteTime ) : void |
Synchronises the network clock using any round trip time data available.
|
public DeferredSendPacket ( IPacketBase packet ) : void | ||
packet | IPacketBase | |
Результат | void |
protected HandlePacket ( IPacketBase packet ) : void | ||
packet | IPacketBase | |
Результат | void |
public NetEntity ( |
||
socket | ||
worldID | int | |
sendEventArgs | ||
receiveEventArgs | ||
Результат | System |
public SendPacket ( IPacketBase packet ) : void | ||
packet | IPacketBase | |
Результат | void |
public Update ( System.TimeSpan dt ) : void | ||
dt | System.TimeSpan | |
Результат | void |
protected SocketAsyncEventArgs,System.Net.Sockets m_receiveArgs | ||
Результат |