Struct ServerReceivedDataArgs
Container about data received on the server.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FishNet.Transporting
Assembly: FishNet.Runtime.dll
Syntax
public struct ServerReceivedDataArgs
Constructors
ServerReceivedDataArgs(ArraySegment<Byte>, Channel, Int32, Int32)
Declaration
public ServerReceivedDataArgs(ArraySegment<byte> data, Channel channel, int connectionId, int transportIndex)
Parameters
Type | Name | Description |
---|---|---|
System.ArraySegment<System.Byte> | data | |
Channel | channel | |
System.Int32 | connectionId | |
System.Int32 | transportIndex |
ServerReceivedDataArgs(ArraySegment<Byte>, Channel, Int32, Int32, Action)
Declaration
public ServerReceivedDataArgs(ArraySegment<byte> data, Channel channel, int connectionId, int transportIndex, Action finalizeMethod)
Parameters
Type | Name | Description |
---|---|---|
System.ArraySegment<System.Byte> | data | |
Channel | channel | |
System.Int32 | connectionId | |
System.Int32 | transportIndex | |
System.Action | finalizeMethod |
Fields
Channel
Channel data was received on.
Declaration
public Channel Channel
Field Value
Type | Description |
---|---|
Channel |
ConnectionId
ConnectionId from which client sent data, if data was received on the server.
Declaration
public int ConnectionId
Field Value
Type | Description |
---|---|
System.Int32 |
Data
Data received.
Declaration
public ArraySegment<byte> Data
Field Value
Type | Description |
---|---|
System.ArraySegment<System.Byte> |
FinalizeMethod
Delegate to invoke after data is processed.
Declaration
public Action FinalizeMethod
Field Value
Type | Description |
---|---|
System.Action |
TransportIndex
Index of the transport that is for. This is primarily used when supporting multiple transports.
Declaration
public int TransportIndex
Field Value
Type | Description |
---|---|
System.Int32 |