System.Net.Sockets.UdpClient.UdpClient C# (CSharp) Method

UdpClient() public method

public UdpClient ( IPEndPoint localEP ) : System.Diagnostics
localEP IPEndPoint
return System.Diagnostics
        public UdpClient(IPEndPoint localEP)
        {
            // Validate input parameters.
            if (localEP == null)
            {
                throw new ArgumentNullException(nameof(localEP));
            }
            
            // IPv6 Changes: Set the AddressFamily of this object before
            //               creating the client socket.
            _family = localEP.AddressFamily;

            CreateClientSocket();

            _clientSocket.Bind(localEP);
        }

Same methods

UdpClient::UdpClient ( ) : System.Diagnostics
UdpClient::UdpClient ( AddressFamily family ) : System.Diagnostics
UdpClient::UdpClient ( int port ) : System.Diagnostics
UdpClient::UdpClient ( int port, AddressFamily family ) : System.Diagnostics