Interface IUdpSocket
Inherited Members
System.IDisposable.Dispose()
Assembly: Discord.Net.Core.dll
Syntax
public interface IUdpSocket : IDisposable
Properties
|
Improve this Doc
View Source
Port
Declaration
Property Value
| Type |
Description |
| System.UInt16 |
|
Methods
|
Improve this Doc
View Source
SendAsync(Byte[], Int32, Int32)
Declaration
Task SendAsync(byte[] data, int index, int count)
Parameters
| Type |
Name |
Description |
| System.Byte[] |
data |
|
| System.Int32 |
index |
|
| System.Int32 |
count |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
SetCancelToken(CancellationToken)
Declaration
void SetCancelToken(CancellationToken cancelToken)
Parameters
| Type |
Name |
Description |
| System.Threading.CancellationToken |
cancelToken |
|
|
Improve this Doc
View Source
SetDestination(String, Int32)
Declaration
void SetDestination(string ip, int port)
Parameters
| Type |
Name |
Description |
| System.String |
ip |
|
| System.Int32 |
port |
|
|
Improve this Doc
View Source
StartAsync()
Declaration
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
|
Improve this Doc
View Source
StopAsync()
Declaration
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Events
|
Improve this Doc
View Source
ReceivedDatagram
Declaration
event Func<byte[], int, int, Task> ReceivedDatagram
Event Type
| Type |
Description |
| System.Func<System.Byte[], System.Int32, System.Int32, System.Threading.Tasks.Task> |
|