Transferring Data Directly between 2 Connections in Indy (TIdContext)
Posted
by
killercode
on Stack Overflow
See other posts from Stack Overflow
or by killercode
Published on 2011-03-05T12:26:06Z
Indexed on
2011/03/07
0:10 UTC
Read the original article
Hit count: 285
ive a sever running TIdTCPServer, and Client Using Web Browser (or any other software) to Communicate, i dunno the protocol, but what im trying to do is to Send The Data between the client and another Connection (Both Connected to the same TIdTCPServer) for example the data sent by the first client is transmitted to the second client, and the data sent by the second client is transmitted to the first client, like a proxy (i cant really use a proxy server since its just this one condition) and the TIdTCPServer should still be receiving other clients and processing their data.
i stumbled upon the first line of code, since TIdContext.Connection.Socket.ReadLn requires a Delimiter, and the Client's Protocol is unknown to the server.
any ideas?
thanks.
© Stack Overflow or respective owner