Jump to content
Sign in to follow this  
sandin

tcpsend from server to client

Recommended Posts

sandin
JFee

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

Share this post


Link to post
Share on other sites
sandin
JFee

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

Share this post


Link to post
Share on other sites
sandin
JFee

If its purpose is to communicate between two programs on the same PC... why are you using TCP commands?


Regards,Josh

Share this post


Link to post
Share on other sites
sandin

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
Sign in to follow this  

×