Method Disconnect
Disconnect(NetworkDriver)
Disconnects a connection and marks it for deletion. The connection will be removed on the next frame. Same as Close<T>.
Declaration
public int Disconnect(NetworkDriver driver)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkDriver | driver | Driver to which the connection belongs. |
Returns
| Type | Description |
|---|---|
| int | An Error.StatusCode value (0 on success, -1 otherwise). |