public bool Service(out ENetEvent e, uint timeout) { CheckDispose(); var native = new Native.ENetEvent(); int result; result = LibENet.HostService(Pointer, &native, timeout); if (result < 0) { throw new Exception("Service failure."); } if (result == 0) { e = new ENetNoneEventArgs(); } else { e = NativeToManagedEvent(ref native); } return(true); }
public virtual ENetInterceptionResult Intercept(IPEndPoint endPoint, ref byte[] buffer, out ENetEvent e) { throw new NotImplementedException(); }