Photon Fusion
2.0.9
Defines the callbacks for network peer group events. More...
Inherited by Simulation.
Public Member Functions | |
| void | OnConnected (NetConnection *connection) |
| Called when a connection is established. More... | |
| void | OnConnectionAttempt (NetConnection *connection, int attempts, int totalConnectAttempts) |
| Called when a connection attempt is made. More... | |
| void | OnConnectionFailed (NetAddress address, NetConnectFailedReason reason) |
| Called when a connection attempt fails. More... | |
| OnConnectionRequestReply | OnConnectionRequest (NetAddress remoteAddress, byte[] token, byte[] uniqueId) |
| Called when a connection request is received. More... | |
| void | OnDisconnected (NetConnection *connection, NetDisconnectReason reason) |
| Called when a connection is disconnected. More... | |
| void | OnNotifyData (NetConnection *connection, NetBitBuffer *buffer) |
| Called when notify data is received. More... | |
| void | OnNotifyDelivered (NetConnection *connection, ref NetSendEnvelope envelope) |
| Called when notify data is delivered. More... | |
| void | OnNotifyDispose (ref NetSendEnvelope envelope) |
| Called when a notify envelope is disposed. More... | |
| void | OnNotifyLost (NetConnection *connection, ref NetSendEnvelope envelope) |
| Called when notify data is lost. More... | |
| void | OnReliableData (NetConnection *connection, ReliableId id, byte *data) |
| Called when reliable data is received. More... | |
| void | OnUnconnectedData (NetBitBuffer *buffer) |
| Called when unconnected data is received. More... | |
| void | OnUnreliableData (NetConnection *connection, NetBitBuffer *buffer) |
| Called when unreliable data is received. More... | |
Defines the callbacks for network peer group events.
| void OnConnected | ( | NetConnection * | connection | ) |
Called when a connection is established.
| connection | The connection that was established. |
| void OnConnectionAttempt | ( | NetConnection * | connection, |
| int | attempts, | ||
| int | totalConnectAttempts | ||
| ) |
Called when a connection attempt is made.
| connection | The connection being attempted. |
| attempts | The number of attempts made. |
| totalConnectAttempts | The total number of connection attempts. |
| void OnConnectionFailed | ( | NetAddress | address, |
| NetConnectFailedReason | reason | ||
| ) |
Called when a connection attempt fails.
| address | The address of the remote peer. |
| reason | The reason for the connection failure. |
| OnConnectionRequestReply OnConnectionRequest | ( | NetAddress | remoteAddress, |
| byte[] | token, | ||
| byte[] | uniqueId | ||
| ) |
Called when a connection request is received.
| remoteAddress | The address of the remote peer. |
| token | The token associated with the connection request. |
| uniqueId | The unique identifier for the connection request. |
| void OnDisconnected | ( | NetConnection * | connection, |
| NetDisconnectReason | reason | ||
| ) |
Called when a connection is disconnected.
| connection | The connection that was disconnected. |
| reason | The reason for disconnection. |
| void OnNotifyData | ( | NetConnection * | connection, |
| NetBitBuffer * | buffer | ||
| ) |
Called when notify data is received.
| connection | The connection from which the data was received. |
| buffer | The buffer containing the data. |
| void OnNotifyDelivered | ( | NetConnection * | connection, |
| ref NetSendEnvelope | envelope | ||
| ) |
Called when notify data is delivered.
| connection | The connection to which the data was delivered. |
| envelope | The envelope containing the delivered data. |
| void OnNotifyDispose | ( | ref NetSendEnvelope | envelope | ) |
Called when a notify envelope is disposed.
| envelope | The envelope that was disposed. |
| void OnNotifyLost | ( | NetConnection * | connection, |
| ref NetSendEnvelope | envelope | ||
| ) |
Called when notify data is lost.
| connection | The connection from which the data was lost. |
| envelope | The envelope containing the lost data. |
| void OnReliableData | ( | NetConnection * | connection, |
| ReliableId | id, | ||
| byte * | data | ||
| ) |
Called when reliable data is received.
| connection | The connection from which the data was received. |
| id | The identifier of the reliable data. |
| data | The data received. |
| void OnUnconnectedData | ( | NetBitBuffer * | buffer | ) |
Called when unconnected data is received.
| buffer | The buffer containing the data. |
| void OnUnreliableData | ( | NetConnection * | connection, |
| NetBitBuffer * | buffer | ||
| ) |
Called when unreliable data is received.
| connection | The connection from which the data was received. |
| buffer | The buffer containing the data. |