Jump to content

tcpsend from server to client


Recommended Posts

Well, the term "server" is an ambiguous term.

In order to send data from the "server" back to the client, the client must also be listening for TCP messages, so you have to have a block of code in the client to receive them just like in your "server" program.

Regards,Josh

Link to comment
Share on other sites

Well, if you are testing both programs on the same machine then you need to use 2 different ports, but on different machines it doesn't matter if they are different.

But yes, if you want to use the term "server" for things that receive data and "client" for things that send, then yes.

Regards,Josh

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...