예제 #1
0
        public void Start(string address, int port)
        {
            Debug.Assert(!string.IsNullOrEmpty(address) && port > 0);

            Start(NetworkUtil.GetIPAddress(address), port);
        }
예제 #2
0
        // Send
        public void Send(HttpRequest httpRequest)
        {
            httpRequest.Host = NetworkUtil.GetAddress(Socket.RemoteEndPoint);

            base.Send(httpRequest);
        }