protected override bool WorkFlow(Pipe pipeClient2Server, Pipe pipeServer2Client) { string request = pipeClient2Server.ReadString(); IPEndPoint reqIPEP = GetIPEndPoint(request); if (SendReqEndPoint(pipeClient2Server.SocketTo, reqIPEP)) { if (reqIPEP.Port == 443) { string re443 = "HTTP/1.1 OK\r\n\r\n"; return(pipeServer2Client.Write(re443)); } else { return(pipeClient2Server.Write(request)); } } return(false); }
public string ReadStringR() { return(pipeR2L.ReadString()); }
public string ReadStringL() { return(pipeL2R.ReadString()); }