Method | Description | |
---|---|---|
Approve ( ) : void |
Approves this connection; sending a connection response to the remote host
|
|
Approve ( |
Approves this connection; sending a connection response to the remote host
|
|
CanSendImmediately ( NetDeliveryMethod method, int sequenceChannel ) : bool | ||
Deny ( ) : void |
Denies this connection; disconnecting it
|
|
Deny ( string reason ) : void |
Denies this connection; disconnecting it
|
|
Disconnect ( string byeMessage ) : void |
Disconnect from the remote peer
|
|
GetLocalTime ( double remoteTimestamp ) : double |
Gets local time value comparable to NetTime.Now from a remote value
|
|
GetRemoteTime ( double localTimestamp ) : double |
Gets the remote time value for a local time value produced by NetTime.Now
|
|
GetSendQueueInfo ( NetDeliveryMethod method, int sequenceChannel, int &windowSize, int &freeWindowSlots ) : void |
Zero windowSize indicates that the channel is not yet instantiated (used) Negative freeWindowSlots means this amount of messages are currently queued but delayed due to closed window
|
|
SendMessage ( |
Send a message to this remote connection
|
|
ToString ( ) : string |
Returns a string that represents this object
|
Method | Description | |
---|---|---|
CreateReceiverChannel ( NetMessageType tp ) : Lidgren.Network.NetReceiverChannelBase | ||
CreateSenderChannel ( NetMessageType tp ) : Lidgren.Network.NetSenderChannelBase | ||
EnqueueMessage ( |
||
ExecuteDisconnect ( string reason, bool sendByeMessage ) : void | ||
ExpandMTU ( double now ) : void | ||
FinalizeMTU ( int size ) : void | ||
GetResendDelay ( ) : float | ||
HandleConnectResponse ( double now, NetMessageType tp, int ptr, int payloadLength ) : void | ||
HandleExpandMTUSuccess ( double now, int size ) : void | ||
Heartbeat ( float now, uint frameCounter ) : void | ||
InitExpandMTU ( double now ) : void | ||
InitializePing ( ) : void | ||
InitializeRemoteTimeOffset ( float remoteSendTime ) : void | ||
MTUExpansionHeartbeat ( double now ) : void | ||
MutateEndPoint ( |
Change the internal endpoint to this new one. Used when, during handshake, a switch in port is detected (due to NAT)
|
|
NetConnection ( |
||
QueueAck ( NetMessageType tp, int sequenceNumber ) : void | ||
QueueSendMessage ( |
||
ReceivedHandshake ( double now, NetMessageType tp, int ptr, int payloadLength ) : void | ||
ReceivedLibraryMessage ( NetMessageType tp, int ptr, int payloadLength ) : void | ||
ReceivedMessage ( |
||
ReceivedPong ( float now, int pongNumber, float remoteSendTime ) : void | ||
SendConnect ( float now ) : void | ||
SendConnectResponse ( float now, bool onLibraryThread ) : void | ||
SendConnectionEstablished ( ) : void | ||
SendDisconnect ( string reason, bool onLibraryThread ) : void | ||
SendExpandMTU ( double now, int size ) : void | ||
SendMTUSuccess ( int size ) : void | ||
SendPing ( ) : void | ||
SendPong ( int pingNumber ) : void | ||
SetStatus ( NetConnectionStatus status, string reason ) : void | ||
Shutdown ( string reason ) : void | ||
UnconnectedHeartbeat ( float now ) : void | ||
ValidateHandshakeData ( int ptr, int payloadLength, byte &hail ) : bool | ||
WriteLocalHail ( |
public Approve ( |
||
localHail | The local hail message that will be set as RemoteHailMessage on the remote host | |
return | void |
public CanSendImmediately ( NetDeliveryMethod method, int sequenceChannel ) : bool | ||
method | NetDeliveryMethod | |
sequenceChannel | int | |
return | bool |
public Deny ( string reason ) : void | ||
reason | string | The stated reason for the disconnect, readable as a string in the StatusChanged message on the remote host |
return | void |
public Disconnect ( string byeMessage ) : void | ||
byeMessage | string | the message to send with the disconnect message |
return | void |
public GetLocalTime ( double remoteTimestamp ) : double | ||
remoteTimestamp | double | |
return | double |
public GetRemoteTime ( double localTimestamp ) : double | ||
localTimestamp | double | |
return | double |
public GetSendQueueInfo ( NetDeliveryMethod method, int sequenceChannel, int &windowSize, int &freeWindowSlots ) : void | ||
method | NetDeliveryMethod | |
sequenceChannel | int | |
windowSize | int | |
freeWindowSlots | int | |
return | void |
public SendMessage ( |
||
msg | The message to send | |
method | NetDeliveryMethod | How to deliver the message |
sequenceChannel | int | Sequence channel within the delivery method |
return | NetSendResult |