Jump to content

Recommended Posts

Posted

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

Posted

Once the client and the server has connected with the TCPListen() / TCPConnect() interfaces they can both use TCPSend() and TCPRecv().

Broken link? PM me and I'll send you the file!

Posted

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

Posted

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

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
×
×
  • Create New...