コード例 #1
0
 public void Ping() => LibENet.PeerPing(Unsafe);
コード例 #2
0
        /// <summary>
        /// Sends a ping request to the peer.
        /// </summary>
        /// <remarks>
        /// From offical doc:
        /// Ping requests factor into the mean round trip time as designated by the roundTripTime field in the ENetPeer structure.
        /// ENet automatically pings all connected peers at regular intervals,
        /// however, this function may be called to ensure more frequent ping requests.
        /// </remarks>
        public void Ping()
        {
            ThrowIfNull();

            LibENet.PeerPing(m_Native);
        }