public unsafe PosixResult TryBind(IPEndPointStruct endpoint) { IPSocketAddress socketAddress = new IPSocketAddress(endpoint); return(SocketInterop.Bind(this, (byte *)&socketAddress, sizeof(IPSocketAddress))); }
public unsafe PosixResult TryBind(string unixPath) { UnixSocketAddress socketAddress = new UnixSocketAddress(unixPath); return(SocketInterop.Bind(this, (byte *)&socketAddress, sizeof(UnixSocketAddress))); }