Interface IUdpSocket
- Namespace
- NetCord.Gateway.Voice.UdpSockets
- Assembly
- NetCord.dll
public interface IUdpSocket : IDisposable
- Inherited Members
-
Methods
Connect(string, int)
void Connect(string hostname, int port)
Parameters
hostname
string
port
int
Send(ReadOnlySpan<byte>)
void Send(ReadOnlySpan<byte> datagram)
Parameters
datagram
ReadOnlySpan<byte>
SendAsync(ReadOnlyMemory<byte>, CancellationToken)
ValueTask SendAsync(ReadOnlyMemory<byte> datagram, CancellationToken cancellationToken = default)
Parameters
datagram
ReadOnlyMemory<byte>
cancellationToken
CancellationToken
Returns
- ValueTask
Events
DatagramReceive
event Action<UdpReceiveResult>? DatagramReceive
Event Type
- Action<UdpReceiveResult>