Class NativeUDPSocket
- Namespace
- Netick
- Assembly
- Netick.dll
public class NativeUDPSocket : INetickSocket
- Inheritance
-
NativeUDPSocket
- Implements
-
- Inherited Members
-
Constructors
NativeUDPSocket()
Methods
Connect(ref IEndPoint)
public bool Connect(ref IEndPoint address)
Parameters
address
IEndPoint
Returns
- bool
CreateFromIpPort(string, int)
public IEndPoint CreateFromIpPort(string ip, int port)
Parameters
ip
string
port
int
Returns
- IEndPoint
Deinitialize()
public void Deinitialize()
Initialize()
Returns
- bool
Poll()
Returns
- int
Receive(out IEndPoint, byte*, int)
public int Receive(out IEndPoint address, byte* buffer, int bufferSize)
Parameters
address
IEndPoint
buffer
byte*
bufferSize
int
Returns
- int
Send(IEndPoint, byte*, int)
public void Send(IEndPoint address, byte* data, int dataLength)
Parameters
address
IEndPoint
data
byte*
dataLength
int
Shutdown()
StartClient(long, long)
public void StartClient(long sendBufferSize, long receiveBufferSize)
Parameters
sendBufferSize
long
receiveBufferSize
long
StartServer(int, long, long)
public void StartServer(int port, long sendBufferSize, long receiveBufferSize)
Parameters
port
int
sendBufferSize
long
receiveBufferSize
long