protected override NetworkStreamMonitor[] CreateAndLinkStreamMonitors(eExNetworkLibrary.Sockets.NetworkStream nsAlice, eExNetworkLibrary.Sockets.NetworkStream nsBob) { HTTPRequestReader reqReader = new HTTPRequestReader(nsBob); HTTPResponseReader respReader = new HTTPResponseReader(nsAlice); reqReader.HTTPRequestCaptured += new EventHandler <HTTPReaderEventArgs>(reqReader_HTTPRequestCaptured); respReader.HTTPResponseCaptured += new EventHandler <HTTPReaderEventArgs>(respReader_HTTPResponseCaptured); return(new NetworkStreamMonitor[] { reqReader, respReader }); }
protected override NetworkStreamModifier[] CreateAndLinkStreamOperators(eExNetworkLibrary.Sockets.NetworkStream nsAlice, eExNetworkLibrary.Sockets.NetworkStream nsBob) { HTTPStreamModifierOperator sroOperator = new HTTPStreamModifierOperator(nsAlice, nsBob, GetClonedActions()); return(new NetworkStreamModifier[] { sroOperator }); }