public void PreventConnections(bool state) { ThrowIfNotCreated(); Native.enet_host_prevent_connections(nativeHost, (byte)(state ? 1 : 0)); }