Photon Fusion
2.1.1
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. | |
| void | OnConnectionAttempt (NetConnection *connection, int attempts, int totalConnectAttempts) |
| Called when a connection attempt is made. | |
| void | OnConnectionFailed (NetAddress address, NetConnectFailedReason reason) |
| Called when a connection attempt fails. | |
| OnConnectionRequestReply | OnConnectionRequest (NetAddress remoteAddress, byte[] token, byte[] uniqueId) |
| Called when a connection request is received. | |
| void | OnDisconnected (NetConnection *connection, NetDisconnectReason reason) |
| Called when a connection is disconnected. | |
| bool | OnNotifyData (NetConnection *connection, ReadBuffer buffer) |
| Called when notify data is received. | |
| void | OnNotifyDataDelivered (NetConnection *connection, in NetNotifyDataInfo info) |
| Called when notify data is delivered. | |
| void | OnNotifyDataLost (NetConnection *connection, in NetNotifyDataInfo info) |
| Called when notify data is lost. | |
| void | OnRejoinRequest (string sessionId) |
| Called when this peer was requested to re-join into another Session. | |
| void | OnReliableData (NetConnection *connection, ReadOnlySpan< byte > data) |
| void | OnUnconnectedData (NetBitBuffer *buffer) |
| Called when unconnected data is received. | |
| void | OnUnreliableData (NetConnection *connection, NetBitBuffer *buffer) |
| Called when unreliable data is received. | |
Properties | |
| List< IntPtr > | DeliverList [get] |
| DeliverList. | |
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. |
| bool OnNotifyData | ( | NetConnection * | connection, |
| ReadBuffer | buffer ) |
Called when notify data is received.
| connection | The connection from which the data was received. |
| buffer | The buffer containing the data. |
| void OnNotifyDataDelivered | ( | NetConnection * | connection, |
| in NetNotifyDataInfo | info ) |
Called when notify data is delivered.
| connection | The connection to which the data was delivered. |
| info |
| void OnNotifyDataLost | ( | NetConnection * | connection, |
| in NetNotifyDataInfo | info ) |
Called when notify data is lost.
| connection | The connection from which the data was lost. |
| info |
| void OnRejoinRequest | ( | string | sessionId | ) |
Called when this peer was requested to re-join into another Session.
| sessionId | Session ID to re-join |
| void OnReliableData | ( | NetConnection * | connection, |
| ReadOnlySpan< byte > | data ) |
| connection | |
| data |
| 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. |