Method Bind
Bind(NetworkEndpoint)
Binds the network interface to an endpoint. This is meant to act the same way as the
bind call in the BSD socket world. One way to see it is that it "attaches" the
network interface to a specific local address on the machine.
Declaration
public int Bind(NetworkEndpoint endpoint)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkEndpoint | endpoint | Endpoint to bind to. |
Returns
| Type | Description |
|---|---|
| int | 0 on success, a negative number on error. |