rcmaehl Posted August 9, 2011 Share Posted August 9, 2011 Okay, I'm trying to modify the TCPRecv example script to allow multiple connections, currently once the connection is made it'll only get one message and not get anymore. Please tell me how to fix this. Also, suggestions for it would be appreciated.TCPRecv.au3 My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Klovis Posted August 9, 2011 Share Posted August 9, 2011 I'll give you both of my TCP server and client so you can learn from it, multiple connections wont happen on it but that's cuz I haven't made it event orientated.OldServer.au3clientinput.au3 Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 9, 2011 Share Posted August 9, 2011 There is already a UDF in Example Scripts for Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
rcmaehl Posted August 9, 2011 Author Share Posted August 9, 2011 The server still seems to only receive info once. Here's what I'm trying to do 1. Client sends data 2. Server receives data 3. Client disconnects 4. Server waits for new connection and data My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF Link to comment Share on other sites More sharing options...
Klovis Posted August 10, 2011 Share Posted August 10, 2011 maybe the server and client can send something back and forth like a game of catch and if you don't get the ball with in 10 seconds then tcplisten for a new connection Link to comment Share on other sites More sharing options...
bogQ Posted August 10, 2011 Share Posted August 10, 2011 (edited) There are alot of examples on this forum that can do that, you only need to locate them and to use the one that you understand how to edit to suit your need.this one is myand some aditional info for itthat code is working on one comp that have and server and client(1pc and client in the one place), or on more than one comp connected to server with that client (1 comp and network clients), for the second option you need only to change IPs and nothing more and try to test it. Note that i did not add code in there when client dcc to remove it from array, but if the client reconect, the server will still work normal and recive and send data from it Edited August 10, 2011 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
rcmaehl Posted August 12, 2011 Author Share Posted August 12, 2011 There are alot of examples on this forum that can do that, you only need to locate them and to use the one that you understand how to edit to suit your need.this one is myand some aditional info for itThank you so much! My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.My Projects WhyNotWin11Cisco Finesse, Github, IRC UDF, WindowEx UDF 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