Method PopEvent
PopEvent(NetworkDriver, out DataStreamReader)
Receive an event for this specific connection. Should be called until it returns Empty, even if the connection is disconnected.
Declaration
public NetworkEvent.Type PopEvent(NetworkDriver driver, out DataStreamReader stream)
Parameters
Type | Name | Description |
---|---|---|
NetworkDriver | driver | Driver to which the connection belongs. |
DataStreamReader | stream | A DataStreamReader, that will only be populated if a Data (or possibly Disconnect) event was received. |
Returns
Type | Description |
---|---|
NetworkEvent.Type | The NetworkEvent.Type of the event. |
PopEvent(NetworkDriver, out DataStreamReader, out NetworkPipeline)
Declaration
public NetworkEvent.Type PopEvent(NetworkDriver driver, out DataStreamReader stream, out NetworkPipeline pipeline)
Parameters
Type | Name | Description |
---|---|---|
NetworkDriver | driver | |
DataStreamReader | stream | |
NetworkPipeline | pipeline |
Returns
Type | Description |
---|---|
NetworkEvent.Type |