Method | Description | |
---|---|---|
CreateMessage ( ) : |
Creates a new message for sending
|
|
CreateMessage ( int initialCapacity ) : |
Creates a new message for sending
|
|
CreateMessage ( string content ) : |
Creates a new message for sending and writes the provided string to it
|
|
Recycle ( NetIncomingMessage msg ) : void |
Recycles a NetIncomingMessage instance for reuse; taking pressure off the garbage collector
|
|
RegisterReceivedCallback ( SendOrPostCallback callback ) : void |
Call this to register a callback for when a new message arrives
|
|
SendMessage ( NetOutgoingMessage msg, NetConnection recipient, NetDeliveryMethod method ) : NetSendResult |
Send a message to a specific connection
|
|
SendMessage ( NetOutgoingMessage msg, NetConnection recipient, NetDeliveryMethod method, int sequenceChannel ) : NetSendResult |
Send a message to a specific connection
|
|
SendMessage ( NetOutgoingMessage msg, IList |
Send a message to a list of connections
|
|
SendUnconnectedMessage ( NetOutgoingMessage msg, IList |
Send a message to an unconnected host
|
|
SendUnconnectedMessage ( NetOutgoingMessage msg, IPEndPoint recipient ) : void |
Send a message to an unconnected host
|
|
SendUnconnectedMessage ( NetOutgoingMessage msg, string host, int port ) : void |
Send a message to an unconnected host
|
Method | Description | |
---|---|---|
AcceptConnection ( |
||
CreateIncomingMessage ( NetIncomingMessageType tp, byte useStorageData ) : |
||
CreateIncomingMessage ( NetIncomingMessageType tp, int minimumByteSize ) : |
||
CreateIncomingMessage ( NetIncomingMessageType tp, string text ) : |
Creates an incoming message with the required capacity for releasing to the application
|
|
ExecutePeerShutdown ( ) : void | ||
GetMTU ( IList |
||
GetStorage ( int minimumCapacity ) : byte[] | ||
HandleIncomingDiscoveryRequest ( double now, |
||
HandleIncomingDiscoveryResponse ( double now, |
||
Heartbeat ( ) : void | ||
InitializeNetwork ( ) : void | ||
InitializePools ( ) : void | ||
NetworkLoop ( ) : void | ||
ReceivedUnconnectedLibraryMessage ( double now, IPEndPoint senderEndpoint, NetMessageType tp, int ptr, int payloadByteLength ) : void | ||
Recycle ( NetOutgoingMessage msg ) : void | ||
Recycle ( byte storage ) : void | ||
ReleaseMessage ( NetIncomingMessage msg ) : void | ||
SetupReadHelperMessage ( int ptr, int payloadLength ) : NetIncomingMessage | ||
VerifyNetworkThread ( ) : void |
public CreateMessage ( ) : |
||
return |
public CreateMessage ( int initialCapacity ) : |
||
initialCapacity | int | initial capacity in bytes |
return |
public CreateMessage ( string content ) : |
||
content | string | |
return |
public Recycle ( NetIncomingMessage msg ) : void | ||
msg | NetIncomingMessage | |
return | void |
public RegisterReceivedCallback ( SendOrPostCallback callback ) : void | ||
callback | SendOrPostCallback | |
return | void |
public SendMessage ( NetOutgoingMessage msg, NetConnection recipient, NetDeliveryMethod method ) : NetSendResult | ||
msg | NetOutgoingMessage | The message to send |
recipient | NetConnection | The recipient connection |
method | NetDeliveryMethod | How to deliver the message |
return | NetSendResult |
public SendMessage ( NetOutgoingMessage msg, NetConnection recipient, NetDeliveryMethod method, int sequenceChannel ) : NetSendResult | ||
msg | NetOutgoingMessage | The message to send |
recipient | NetConnection | The recipient connection |
method | NetDeliveryMethod | How to deliver the message |
sequenceChannel | int | Sequence channel within the delivery method |
return | NetSendResult |
public SendMessage ( NetOutgoingMessage msg, IList |
||
msg | NetOutgoingMessage | The message to send |
recipients | IList |
The list of recipients to send to |
method | NetDeliveryMethod | How to deliver the message |
sequenceChannel | int | Sequence channel within the delivery method |
return | void |
public SendUnconnectedMessage ( NetOutgoingMessage msg, IList |
||
msg | NetOutgoingMessage | |
recipients | IList |
|
return | void |
public SendUnconnectedMessage ( NetOutgoingMessage msg, IPEndPoint recipient ) : void | ||
msg | NetOutgoingMessage | |
recipient | IPEndPoint | |
return | void |
public SendUnconnectedMessage ( NetOutgoingMessage msg, string host, int port ) : void | ||
msg | NetOutgoingMessage | |
host | string | |
port | int | |
return | void |