Photon Fusion
2.0.8
Network Peer Group. More...
Static Public Member Functions | |
| static void | ChangeConnectionAddressDuringConnecting (NetPeerGroup *g, NetConnection *c, NetAddress newAddress) |
| Changes the address of a connection during the connecting phase. More... | |
| static void | Connect (NetPeerGroup *g, NetAddress address, byte[] token, byte[] uniqueId=null) |
| Connects to a specified address with an optional unique ID and token. More... | |
| static void | Connect (NetPeerGroup *g, string ip, ushort port, byte[] token, byte[] uniqueId=null) |
| Connects to a specified IP address and port with an optional unique ID and token. More... | |
| static NetConnectionMap.Iterator | ConnectionIterator (NetPeerGroup *g) |
| Gets an iterator for the connections in the network peer group. More... | |
| static void | Disconnect (NetPeerGroup *g, NetConnection *c, byte[] token) |
| Disconnects a given connection from the network peer group with an optional token. More... | |
| static NetConnection * | GetConnection (NetPeerGroup *g, NetConnectionId id) |
| Gets a connection by its ID in the network peer group. More... | |
| static NetConnection * | GetConnectionByIndex (NetPeerGroup *g, int index) |
| Gets a connection by its index in the network peer group. More... | |
| static double | GetConnectionIdleTime (NetPeerGroup *g, NetConnection *c) |
| Gets the idle time of a connection. More... | |
| static bool | GetNotifyDataBuffer (NetPeerGroup *g, NetConnection *c, out NetBitBuffer *b) |
| Gets a notify data buffer for a given connection in the network peer group. More... | |
| static bool | GetUnreliableDataBuffer (NetPeerGroup *g, NetConnection *c, out NetBitBuffer *b) |
| Gets an unreliable data buffer for a given connection in the network peer group. More... | |
| static int | Receive (NetPeerGroup *g, INetPeerGroupCallbacks cb) |
| |
| static bool | SendNotifyDataBuffer (NetPeerGroup *g, NetConnection *c, ref NetBitBuffer *b, void *userData) |
| Sends a notify data buffer for a given connection in the network peer group. More... | |
| static void | SendReliable (NetPeerGroup *g, NetConnection *c, ReliableId rid, byte *data, int dataLength) |
| Sends reliable data for a given connection in the network peer group. More... | |
| static bool | SendUnconnectedData (NetPeerGroup *g, NetAddress address, void *data, int dataLength) |
| Sends unconnected data to a specified address. More... | |
| static bool | SendUnreliableDataBuffer (NetPeerGroup *g, NetConnection *c, NetBitBuffer *b) |
| Sends an unreliable data buffer for a given connection in the network peer group. More... | |
| static bool | TryGetConnectionByIndex (NetPeerGroup *g, int index, out NetConnection *connection) |
| Tries to get a connection by its index in the network peer group. More... | |
| static int | Update (NetPeerGroup *g, INetPeerGroupCallbacks cb) |
| Updates the network peer group by processing received data, handling timeouts, and managing connection retries. More... | |
Properties | |
| int | ConnectionCount [get] |
| Gets the number of active connections. More... | |
| int | Group [get] |
| Gets the group index. More... | |
| double | Time [get] |
| Gets the elapsed time in seconds. More... | |
Network Peer Group.
|
static |
Changes the address of a connection during the connecting phase.
| g | Pointer to the network peer group. |
| c | Pointer to the connection. |
| newAddress | The new address to be assigned to the connection. |
|
static |
Connects to a specified address with an optional unique ID and token.
| g | Pointer to the network peer group. |
| address | The address to connect to. |
| token | The token used for the connection. |
| uniqueId | Optional unique ID for the connection. |
|
static |
Connects to a specified IP address and port with an optional unique ID and token.
| g | Pointer to the network peer group. |
| ip | The IP address to connect to. |
| port | The port to connect to. |
| token | The token used for the connection. |
| uniqueId | Optional unique ID for the connection. |
|
static |
Gets an iterator for the connections in the network peer group.
| g | Pointer to the network peer group. |
|
static |
Disconnects a given connection from the network peer group with an optional token.
| g | Pointer to the network peer group. |
| c | Pointer to the connection to be disconnected. |
| token | Optional token used for the disconnection. |
|
static |
Gets a connection by its ID in the network peer group.
| g | Pointer to the network peer group. |
| id | The ID of the connection to retrieve. |
|
static |
Gets a connection by its index in the network peer group.
| g | Pointer to the network peer group. |
| index | The index of the connection to retrieve. |
|
static |
Gets the idle time of a connection.
| g | The network peer group. |
| c | The connection whose idle time is to be calculated. |
|
static |
Gets a notify data buffer for a given connection in the network peer group.
| g | Pointer to the network peer group. |
| c | Pointer to the connection. |
| b | Output parameter that will point to the bit buffer containing the data to be sent. |
|
static |
Gets an unreliable data buffer for a given connection in the network peer group.
| g | Pointer to the network peer group. |
| c | Pointer to the connection. |
| b | Output parameter that will point to the bit buffer containing the data to be sent. |
|
static |
Sends a notify data buffer for a given connection in the network peer group.
| g | Pointer to the network peer group. |
| c | Pointer to the connection. |
| b | Pointer to the bit buffer containing the data to be sent. |
| userData | Pointer to user data associated with the buffer. |
|
static |
Sends reliable data for a given connection in the network peer group.
| g | Pointer to the network peer group. |
| c | Pointer to the connection. |
| rid | Reliable ID for the data being sent. |
| data | Pointer to the data to be sent. |
| dataLength | The length of the data to be sent. |
|
static |
Sends unconnected data to a specified address.
| g | Pointer to the network peer group. |
| address | The address to send the data to. |
| data | Pointer to the data to be sent. |
| dataLength | The length of the data to be sent. |
|
static |
Sends an unreliable data buffer for a given connection in the network peer group.
| g | Pointer to the network peer group. |
| c | Pointer to the connection. |
| b | Pointer to the bit buffer containing the data to be sent. |
|
static |
Tries to get a connection by its index in the network peer group.
| g | Pointer to the network peer group. |
| index | The index of the connection to retrieve. |
| connection | Output parameter that will point to the connection if found. |
|
static |
Updates the network peer group by processing received data, handling timeouts, and managing connection retries.
| g | Pointer to the network peer group. |
| cb | Callback interface for network peer group events. |
|
get |
Gets the number of active connections.
|
get |
Gets the group index.
|
get |
Gets the elapsed time in seconds.