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); }