Redshrimp2021 Posted June 12, 2008 Share Posted June 12, 2008 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 More sharing options...
monoceres Posted June 12, 2008 Share Posted June 12, 2008 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! Link to comment Share on other sites More sharing options...
Redshrimp2021 Posted June 12, 2008 Author Share Posted June 12, 2008 Thank you, then I had a second question...If the server is listening on its own IPAnd the client is sending to the servers IPThen 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 More sharing options...
LarryDalooza Posted June 12, 2008 Share Posted June 12, 2008 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. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now