UdpClient()

UdpClient::UdpClient() constructor

Initializes a new instance of the UdpClient class.

System::Net::Sockets::UdpClient::UdpClient()

UdpClient::UdpClient(AddressFamily) constructor

Initializes a new instance of the UdpClient class.

System::Net::Sockets::UdpClient::UdpClient(AddressFamily family)

Arguments

ParameterTypeDescription
familyAddressFamilyvalue that specifies the addressing scheme of the socket.

UdpClient::UdpClient(int32_t) constructor

Initializes a new instance of the UdpClient class.

System::Net::Sockets::UdpClient::UdpClient(int32_t port)

Arguments

ParameterTypeDescription
portint32_tthe local port number from which you intend to communicate.

UdpClient::UdpClient(int32_t, AddressFamily) constructor

Initializes a new instance of the UdpClient class.

System::Net::Sockets::UdpClient::UdpClient(int32_t port, AddressFamily family)

Arguments

ParameterTypeDescription
portint32_tthe local port number from which you intend to communicate.
familyAddressFamilyvalue that specifies the addressing scheme of the socket.

UdpClient::UdpClient(System::SharedPtr<IPEndPoint>) constructor

Initializes a new instance of the UdpClient class. param local EP the local endpoint to which you bind the UDP connection.

System::Net::Sockets::UdpClient::UdpClient(System::SharedPtr<IPEndPoint> localEP)

UdpClient::UdpClient(String, int32_t) constructor

Creates a new instance of the UdpClient class and connects to the specified remote host on the specified port.

System::Net::Sockets::UdpClient::UdpClient(String hostname, int32_t port)

Arguments

ParameterTypeDescription
hostnameStringThe name of the remote DNS host to which you intend to connect.
portint32_tThe local port number from which you intend to communicate.

See Also