Skip to main content

Class UdpSocketFactory

Inheritance
System.Object
Mirage.SocketLayer.SocketFactory
Syntax
public sealed class UdpSocketFactory : SocketFactory, IHasAddress, IHasPort

Fields

Address

Declaration
public string Address

Port

Declaration
public ushort Port

SocketLib

Declaration
public SocketLib SocketLib

BufferSize

Declaration
public int BufferSize

Properties

MaxPacketSize

Declaration
public override int MaxPacketSize { get; }

IHasAddress.Address

Declaration
string IHasAddress.Address { get; set; }

IHasPort.Port

Declaration
int IHasPort.Port { get; set; }

Methods

CreateClientSocket()

Declaration
public override ISocket CreateClientSocket()
Returns
TypeDescription
Mirage.SocketLayer.ISocket

CreateServerSocket()

Declaration
public override ISocket CreateServerSocket()
Returns
TypeDescription
Mirage.SocketLayer.ISocket

GetBindEndPoint()

Declaration
public override IEndPoint GetBindEndPoint()
Returns
TypeDescription
Mirage.SocketLayer.IEndPoint

GetConnectEndPoint(String, Nullable<UInt16>)

Declaration
public override IEndPoint GetConnectEndPoint(string address = null, ushort? port = default(ushort? ))
Parameters
TypeNameDescription
System.Stringaddress
System.Nullable<System.UInt16>port
Returns
TypeDescription
Mirage.SocketLayer.IEndPoint