Method PopEventForConnection
PopEventForConnection(NetworkConnection, out DataStreamReader)
Pops an event for a specific connection
Declaration
public NetworkEvent.Type PopEventForConnection(NetworkConnection connectionId, out DataStreamReader reader)
Parameters
Type | Name | Description |
---|---|---|
NetworkConnection | connectionId | Connection for which to pop the next event. |
DataStreamReader | reader | Stream reader for the event's data. |
Returns
Type | Description |
---|---|
NetworkEvent.Type | Returns the type of event received, if the value is a Disconnect event then the DataStreamReader will contain the disconnect reason. |
PopEventForConnection(NetworkConnection, out DataStreamReader, out NetworkPipeline)
Pops an event for a specific connection
Declaration
public NetworkEvent.Type PopEventForConnection(NetworkConnection connectionId, out DataStreamReader reader, out NetworkPipeline pipeline)
Parameters
Type | Name | Description |
---|---|---|
NetworkConnection | connectionId | Connection for which to pop the next event. |
DataStreamReader | reader | Stream reader for the event's data. |
NetworkPipeline | pipeline | Pipeline on which the event was received. |
Returns
Type | Description |
---|---|
NetworkEvent.Type | The event's type |