Ejemplo n.º 1
0
        public void Send(RequestBase request, CustomIPEndPoint endPoint)
        {
            var socket = SetupSocket(endPoint.Ip, endPoint.Port);

            _serializationService.SerializeToStream(new NetworkStream(socket), request);

            socket.Shutdown(SocketShutdown.Send);
        }
        public void Send(ResponseBase response, CustomIPEndPoint responseEndPoint)
        {
            var socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
           
            socket.Connect(new IPEndPoint(responseEndPoint.Ip, responseEndPoint.Port));

            _serializationService.SerializeToStream(new NetworkStream(socket), response);
            socket.Shutdown(SocketShutdown.Send);
        }
Ejemplo n.º 3
0
 public DownloadFileQuery(CustomIPEndPoint responsEndPoint) : base(responsEndPoint)
 {
 }
Ejemplo n.º 4
0
 public QueryBase(CustomIPEndPoint responsEndPoint)
 {
     ResponseEndPoint = responsEndPoint;
 }
Ejemplo n.º 5
0
 public ConnectionQuery(CustomIPEndPoint responseEndPoint) : base(responseEndPoint)
 {
 }
Ejemplo n.º 6
0
 public GetFileNamesQuery(CustomIPEndPoint responseEndPoint) : base(responseEndPoint)
 {
 }