Jump to content

TCP Question


Recommended Posts

Hello, I was coding a client and server, using TCP to communicate. But I wanted the server to be able to contact the client also. I was wondering if this could also be done with TCP. Once TCP is started using TCPStartUp(), can it use recv and send?\

Thank you,

Travis

Link to comment
Share on other sites

Thank you, then I had a second question...

If the server is listening on its own IP

And the client is sending to the servers IP

Then if the client wants to listen, it would have to listen on the servers IP and the server would send on its own IP?

Thanks again,

Travis

Link to comment
Share on other sites

A Client "Connect"s ......... A Server "Listen"s and loops an "Accept"

A successful "Connect" -> "Accept" completes a "socket connection"

That socket exists at the server script and at the client script. A socket can have data "Recv"d and "Send"d.

Lar.

f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

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...