Sign in to follow this  
Followers 0
grimreaper

Child processes

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

Just 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

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  
Followers 0