grimreaper Posted August 17, 2008 Share Posted August 17, 2008 Hello, I am building a little script to allow simultanios communications on a network. now i need a child process of some kind, i need to do two things at once could anybody tell me how i achieve this? i have looked on the forums but couldnt find anything that would help Link to comment Share on other sites More sharing options...
grimreaper Posted August 17, 2008 Author Share Posted August 17, 2008 Sorry after i read my own post i think it is not clear wath i want i am trying to build a program that has a server and a client, and on the server i want to be able to log data and do some other things, but when i start communications with the client i cant do anything with the server because the TCP connection is looping So i want to move the TCP part of the program into a child process does anyone know how i can do that Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 17, 2008 Share Posted August 17, 2008 Sorry after i read my own post i think it is not clear wath i wanti am trying to build a program that has a server and a client, and on the serveri want to be able to log data and do some other things, but when i start communicationswith the client i cant do anything with the server because the TCP connection is loopingSo i want to move the TCP part of the program into a child process does anyone know how ican do thatJust write it as a second script and Run() it.You could also write one script that does one or the other based on if there is another instance running already, then the script just starts out with _Singleton(). If it's the first instance running, it starts the server side, then does Run() on itself to kick off another instance. The second instance runs _Singleton() and starts the client based on the fact that it is not the first instance. 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...
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