Property | Type | Description | |
---|---|---|---|
BIN | int | ||
BOUT | int | ||
IN | int | ||
OUT | int |
Property | Type | Description | |
---|---|---|---|
m_receiveArgs | |||
m_sendArgs |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
HandlePacket ( IPacketBase packet ) : void |
Packet handler logic
|
Method | Description | |
---|---|---|
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 | |
return | void |
protected HandlePacket ( IPacketBase packet ) : void | ||
packet | IPacketBase | |
return | void |
public NetEntity ( |
||
socket | ||
worldID | int | |
sendEventArgs | ||
receiveEventArgs | ||
return | System |
public SendPacket ( IPacketBase packet ) : void | ||
packet | IPacketBase | |
return | void |
protected SocketAsyncEventArgs,System.Net.Sockets m_receiveArgs | ||
return |