Method Bind
Bind(NetworkEndPoint)
Bind the driver to a endpoint.
Declaration
public int Bind(NetworkEndPoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
NetworkEndPoint | endpoint | The endpoint to bind to. |
Returns
Type | Description |
---|---|
int | Returns 0 on success. And a negative value if a error occured. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | If the driver is not created properly |
InvalidOperationException | If bind is called more then once on the driver |
InvalidOperationException | If bind is called after a connection has already been established |