Jump to content
Sign in to follow this  
Redshrimp2021

TCP Question

Recommended Posts

Redshrimp2021

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

Share this post


Link to post
Share on other sites
monoceres

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!

Share this post


Link to post
Share on other sites
Redshrimp2021

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

Share this post


Link to post
Share on other sites
LarryDalooza

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

Share this post


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

×