Object
ENetServer
ENetServer | The default constructor for the ENetServer host. |
LastError | Returns last error code that happened. |
MaxPeerCount | Returns the number of maximum allowed peers. |
PeerCount | Returns the number of currently connected peers. |
TotalReceivedData | Gets or sets total data received. |
TotalReceivedPackets | Gets or sets total UDP packets received. |
TotalSentData | Gets or sets total data sent. |
TotalSentPackets | Gets or sets total UDP packets sent. |
Broadcast | Broadcasts a packet to all connected peers using a string packet. |
Broadcast | Broadcasts a packet to all connected peers using an ENetPacket. |
Disconnect | Disconnects a specific peer. |
Disconnect | Disconnects all peers and stops listening. |
GetNextPeer | Used to loop through all peers. Use MoveFirstPeer to move the cursor to the first peer then use GetNextPeer to get next peer until it returns nil. |
Listen | Listens for ENet connections on a specific port, using specific amount of channels. |
MoveFirstPeer | Moves the the cursor that is used to loop through peers to the first peer. |
Poll | Pools the server pool of peers, taking in a parameter that asks for how long to wait for events in milliseconds. |
Poll | Pools the server pool of peers. This variation of the Poll method does not wait for events. |
Connected | This event is fired when a new connection is made. |
CreateCustomPeer | Used this event if you want to have a class that is derived from ENetPeer that adds your own custom properties as the Peer class for the connection. |
DataAvailable | This event is fired when packet is available if and only if there was no PacketvAvailable event. |
Disconnected | This event is fired when a peer is disconnected. |
PacketAvailable | Notifies that a packet is available. |