Open .rev files as seperate processes

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lbtony
Posts: 35
Joined: Tue Apr 11, 2006 9:01 am

Open .rev files as seperate processes

Post by lbtony » Thu May 25, 2006 10:28 am

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....

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Post by BvG » Thu May 25, 2006 5:22 pm

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:

Code: Select all

open socket to "localhost:8080"
you'd use:

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

Post Reply

Return to “Talking LiveCode”