Class UdpSocketFactory
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
Type | Description |
---|---|
Mirage.SocketLayer.ISocket |
CreateServerSocket()
Declaration
public override ISocket CreateServerSocket()
Returns
Type | Description |
---|---|
Mirage.SocketLayer.ISocket |
GetBindEndPoint()
Declaration
public override IEndPoint GetBindEndPoint()
Returns
Type | Description |
---|---|
Mirage.SocketLayer.IEndPoint |
GetConnectEndPoint(String, Nullable<UInt16>)
Declaration
public override IEndPoint GetConnectEndPoint(string address = null, ushort? port = default(ushort? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | address | |
System.Nullable<System.UInt16> | port |
Returns
Type | Description |
---|---|
Mirage.SocketLayer.IEndPoint |