I have a server program, which has been built into a .exe file.
And I have a few client programs, each of them is in a .rev file.
I also have another .exe file, which is used to open those .rev client programs.
The problem is that if I open the client programs through the .exe file, the system will consider them as the same process. And because I'm using the "open socket" command to make connection to the server, it means only one client program can connect to the server at all time.
Any suggestion to solve this problem?
Thanks....
Open .rev files as seperate processes
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 1236
- Joined: Sat Apr 08, 2006 1:10 pm
- Location: Zurich
- Contact:
you need to use identifiers (part after the pipe char in the documentation). YOu can use any string as identifier. So for example instead of having this in your client:
you'd use:
Code: Select all
open socket to "localhost:8080"
Code: Select all
open socket to "localhost:8080|client1"
open socket to "localhost:8080|client2"
open socket to "localhost:8080|..."
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode