Jump to content
Sign in to follow this  
Hellouser

Same port within Two exe's

Recommended Posts

Hellouser

Hi All,

Good Evening !!!

I need an urgent help, I am developing a client server application where all the client will connect to a server program made by autoit.Now the looping process is slow ,due to the number of clients are connected to the server.So i made an alternate exe which will connect and store all the incoming connections fast.In the sametime the second exe file will process the information which is being stored by the first exe file.

But the problem is , i am not able to run the second exe file with the same port . it's returning -1 value.

Can it possible to run both the exe files with the same port. ??

Thanks

Ajomon Sebastian

Share this post


Link to post
Share on other sites
jvanegmond

That's not possible. Your idea to use two executables will not work because the connection can't be shared between processes.

What is possible, however, is send the request from the client to another process and get output from that process and send it back to the client. This will give you one server who is handling all the connections, and one or more processes that are handling client process request.

If you are unsure how to run another process to do some work, have a look at this thread where I asynchronously run a few ping commands: http://www.autoitscript.com/forum/index.php?showtopic=104334&view=findpost&p=740697

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  

×