Post new topic Reply to topic  [ 2 posts ] 
2 Server and Two ConnID=0 For each server ??? 
Author Message

Joined: Sun Aug 24, 2008 3:15 am
Posts: 52
Post 2 Server and Two ConnID=0 For each server ???
Another important question :

If i have 2 zoidcom server istance on a single pc,something like Sharing UDP Sockets:

ZCom_Control *server1 = new ZCom_Control();
ZCom_Control *server2 = new ZCom_Control();
server1->ZCom_initSockets(true, 9999, 0, 1);
server2->ZCom_initSockets(true, 9999, 0, 1);
server1->ZCom_setControlID(0);
server2->ZCom_setControlID(1);

The first server ("server1") have the ConnectionID 0,and the the "server2" wath ConnectionID get ???
The ConnectionID restart from 0 from each server or continue the numeration then become "1" and not "0" ???
And the client connected to "server2" restart from id=1 or continue too the numeration of the first server ???


Tue Apr 21, 2009 5:32 pm
Profile
Site Admin
User avatar

Joined: Thu Jan 29, 2004 6:33 am
Posts: 1060
Post 
All ZCom_Controls maintain their own list of connections, so yes, you start with connection id 0 on each of them.

_________________
Zoidcom 0.6.10 | Check out the new Zoidcom Wiki


Thu Apr 23, 2009 9:01 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

{ ASACP_CREDITS } Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forum/DivisionCore.