/// <summary> /// Create an endpoint for accepting connections and bind it to the current socket. /// </summary> /// <param name="endpoint">A string consisting of a transport and an address, formatted as <c><em>transport</em>://<em>address</em></c>.</param> /// <exception cref="System.ArgumentNullException"><paramref name="endpoint"/> is null.</exception> /// <exception cref="ZmqSocketException">An error occurred binding the socket to an endpoint.</exception> /// <exception cref="System.ObjectDisposedException">The <see cref="ZmqSocket"/> has been closed.</exception> public void Bind(string endpoint) { EnsureNotDisposed(); if (endpoint == null) { throw new ArgumentNullException("endpoint"); } if (endpoint == string.Empty) { throw new ArgumentException("Unable to Bind to an empty endpoint.", "endpoint"); } HandleProxyResult(_socketProxy.Bind(endpoint)); }