Associates a VirtualSocket with a local endpoint.
[Visual Basic]
Overridable Public Sub Bind( _
ByVal localEP As EndPoint _
)
If you want to use a specific local endpoint, you can call the Bind method before you call the Listen or Connect methods.
Exception Type | Condition |
---|---|
ArgumentNullException | localEP is a null reference (Nothing in Visual Basic). |
SocketException | An operating system error occurs while accessing the VirtualSocket. |
ObjectDisposedException | The VirtualSocket has been closed. |
VirtualSocket Class | VirtualSocket Members | Org.Mentalis.Security.Ssl Namespace