Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Indy Tcp connection

Posted on 2004-10-25
2
Medium Priority
?
168 Views
Last Modified: 2010-04-05
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
Comment
Question by:Rayden_The_God
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 500 total points
ID: 12398662
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
 

Expert Comment

by:emu10k1
ID: 12425145
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

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question