ENet Xojo plugin

ENetPeer Class (console safe)

A class that represents a peer / connection. This class is both used with ENerServer and ENetClient.

Object
   ENetPeer

class ENetPeer

Properties

ChannelCountReturns the channel count on the peer.
CustomDataSets or gets custom data on the peer.
HostReturns the host address of the connected peer.
LastRoundTripTimeGets last round trip time in milliseconds.
LowestRoundTripTimeGets lowest round trip time in milliseconds.
PacketLossGets mean packet loss of reliable packets as a ratio with respect to the constant 65536.
PacketLossVarianceGets variance of packet loss.
PortReturns the port number of the connected peer.
RoundTripTimeMean round trip time (RTT), in milliseconds, between sending a reliable packet and receiving its acknowledgement
RoundTripTimeVarianceVariance of round trip time

Methods

DisconnectRequest a disconnection from a peer.
DisconnectLaterDisconnects next time there is good time for the service to disconnect.
DisconnectNowDisconnects right away.
PeerTimeoutSets the timeout parameters for a peer.
PingPing requests factor into the mean round trip time as designated by the RoundTripTime field in the ENetPeer structure.
PingIntervalSets the interval at which pings will be sent to a peer.
ThrottleConfigureConfigure throttle probability for unreliable packets.
WriteWrites a reliable packet to send, taking the data in as ENetPacket.
WriteWrites a reliable packet to send, taking the data in as string.
WriteWrites packet to send using specific flags, taking the data in as string.

Constants

Version = 3.0

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit
  • iOS