UdpSender.UdpSender C# (CSharp) 메소드

UdpSender() 공개 메소드

public UdpSender ( string host, int port ) : System
host string
port int
리턴 System
    public UdpSender(string host, int port)
    {
        IPAddress[] ips = Dns.GetHostAddresses(host);
        e = new IPEndPoint(ips[0], port);
        sock = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
    }