コード例 #1
0
ファイル: UdpUser.cs プロジェクト: a995049470/SimpleSever
        public static UdpUser ConnectTo(IPEndPoint ip)
        {
            var connection = new UdpUser();

            connection.m_client.Connect(ip);
            return(connection);
        }
コード例 #2
0
ファイル: UdpUser.cs プロジェクト: a995049470/SimpleSever
        public static UdpUser ConnectTo(string hostname, int port)
        {
            var connection = new UdpUser();

            connection.m_client.Connect(hostname, port);
            return(connection);
        }