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); }
public DownloadFileQuery(CustomIPEndPoint responsEndPoint) : base(responsEndPoint) { }
public QueryBase(CustomIPEndPoint responsEndPoint) { ResponseEndPoint = responsEndPoint; }
public ConnectionQuery(CustomIPEndPoint responseEndPoint) : base(responseEndPoint) { }
public GetFileNamesQuery(CustomIPEndPoint responseEndPoint) : base(responseEndPoint) { }