Interface IUdpServer
Assembly: Eco.Shared.dll
Syntax
public interface IUdpServer : IUdpPeer, IUnconnectedUdpPeer
Methods
BroadcastData(ReadOnlySpan<Byte>)
Broadcast data to every connected peer.
Declaration
void BroadcastData(ReadOnlySpan<byte> data)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Byte> |
data |
|
Disconnect(Object)
Declaration
void Disconnect(object connection)
Parameters
Type |
Name |
Description |
System.Object |
connection |
|
GetAverageRoundtripTime(Object)
Declaration
float GetAverageRoundtripTime(object connection)
Parameters
Type |
Name |
Description |
System.Object |
connection |
|
Returns
Type |
Description |
System.Single |
|
GetConnectionStatistic(Object, out Int64, out Int64)
Declaration
void GetConnectionStatistic(object connection, out long totalSentBytes, out long totalReceivedBytes)
Parameters
Type |
Name |
Description |
System.Object |
connection |
|
System.Int64 |
totalSentBytes |
|
System.Int64 |
totalReceivedBytes |
|
GetConnectionStatus(Object)
Declaration
UdpConnectionStatus GetConnectionStatus(object connection)
Parameters
Type |
Name |
Description |
System.Object |
connection |
|
Returns
Extension Methods