Пример #1
0
            /// <summary>
            /// Connects Client using ConnectInfo (IP and port)
            /// </summary>
            /// <param name="info"></param>
            /// <returns></returns>
            public async Task ConnectAsync(ConnectInfo info)
            {
                ConnectInfo = new ConnectInfo(info.IP, info.Port);
                await SimpleClient.ConnectAsync(new IPAddress(info.IP), info.Port);

                Stream = SimpleClient.GetStream();
            }