Solved

Indy Tcp connection

Posted on 2004-10-25
167 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
Question by:Rayden_The_God
    2 Comments
     
    LVL 12

    Accepted Solution

    by:
    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
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    933 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now