• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

Indy Tcp connection

ok so here is the problem:
I am creating a connection between a IdTcpClient and an IdTcpserver , so the Client sends a stream to the server, now I want the server to answer back using the same connection (no disconnect). Is that possible? Code please....
0
Rayden_The_God
Asked:
Rayden_The_God
1 Solution
 
Lee_NoverCommented:
yep

client:

SendStream(...);
ReadBuffer(...); or ReadLn or whatever

server OnExecute:
ReadStream(...);
WriteBuffer(..); or WriteLn or whatever


just think of it as normal code flow
0
 
emu10k1Commented:
You can get an answer for your question at http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20778629.html
There is an example there.

emu10k1.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now