Using .Net TCPClient to send and recieve data.

Posted on 2009-04-29
Last Modified: 2013-11-22

I need an example of how to use the .Net TCPClient class to send a message in Delphi.

Perferably the code should use the "new" keyword rather then .Create method so that I can compile it in Delphi Prism.

There are plenty of VB/C# examples out there, and I can probably convert one, but I am not sure how to allocate memory/variables for the message to be sent and its response.
Question by:soozh
    1 Comment
    LVL 32

    Accepted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    #Citrix #Citrix Netscaler #HTTP Compression #Load Balance
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    759 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

    14 Experts available now in Live!

    Get 1:1 Help Now