Discussion list for Unity developers.
unity-dev at moock.org
Thu Feb 15 05:37:11 CST 2007
Thanks Colin to help me all the way, First of all we using Unity 2 I need to connect to unity and run admin command "kick" Correct me if I'm wrong: I send the two messages: Logging: <UPC><ROOMID>unity</ROOMID><METH>u14</METH><ARGS><ARG>admin</ARG><ARG>thepas sword</ARG></ARGS></UPC> Followed by the kick command: (I don't find it in the documentation) I'm starting to believe my messages sent to unity are not well formatted, The flash XMLsocket have a special format for sending information? Expecting a header before the xml data? Like in POST html method? What's the message format the unity java server expect? Because the only response I can get from Unity is when I initiate the connexion on port 9100 With a connexion on 9100 I've sent the following messages with never an answer from unity Message 1 <UPC><ROOMID>unity</ROOMID><METH>u14</METH><ARGS><ARG>Jetest123</ARG><ARG>12 3uuu</ARG></ARGS></UPC> Message 2 <UPC><ROOMID>unity</ROOMID><METH>u11</METH><ARGS><ARG>Jetest123</ARG><ARG>12 3uuu</ARG></ARGS></UPC> Message 3 <UPC><ROOMID>unity</ROOMID><METH>u28</METH></UPC> Message 4 <UPC><ROOMID>unity</ROOMID><METH>u28</METH><ARGS></ARGS></UPC> Rui -----Original Message----- From: unity-dev-bounces at moock.org [mailto:unity-dev-bounces at moock.org]On Behalf Of Discussion list for Unity developers. Sent: mercredi 14 fevrier 2007 20:30 To: unity-dev at moock.org Subject: Re: ||unity-dev|| testing our server potential AND using PHP scriptto make admin requests right. 9101 is the default admin port. when you connect to the admin port, the server does not send any initial acknowledgment. you have to attempt to log in first. if you need an admin UPC command reference, let me know. colin Discussion list for Unity developers. wrote: > I've run some tests: > > TEST 1 on port 9100, Unity respond like you said > TEST 2 on port 9101, Unity doesn't respond > TEST 3 stop the server and change the admin port in uconfig.xml for the port > 8080 and start unity > Same result TEST 2 > > --------------------------------------------- > Start TEST 1 > Connexion to [XXX.XXX.XXX.179] On Port [9100] > Stream Mode Wait [Success] > Read the socket (14:35:11) > <UPC><METH>upcSetClientID</METH><ARGS><ARG>13</ARG></ARGS></UPC><UPC><METH>u > pcOnClientAttributeUpdate</METH><ARGS><ARG>null</ARG><ARG>null</ARG><ARG>13< > /ARG><ARG>_IP</ARG><ARG>XXX.XXX.194.71</ARG></ARGS></UPC><UPC><METH>upcOnCli > entAttributeUpdate</METH><ARGS><ARG>null</ARG><ARG>null</ARG><ARG>13</ARG><A > RG>_CONNECTTIME</ARG><ARG>1171460818921</ARG></ARGS></UPC> > Socket read (14:36:11)=> take [60] seconds > Message to send > <UPC><ROOMID>unity</ROOMID><METH>u14</METH><ARGS><ARG>admin</ARG><ARG>thepas > sword</ARG></ARGS></UPC> > End to send > Sending Message (14:36:11) > Characters sent==>[97]<== > Unity Response (14:38:11)==> > > End Unity Response > > --------------------------------------------- > Start TEST 2 > Connexion to [XXX.XXX.XXX.179] On Port [9101] > Stream Mode Wait [Success] > Read the socket (14:39:37) > > Socket read (14:40:37)=> take [60] seconds > Message to send > <UPC><ROOMID>unity</ROOMID><METH>u14</METH><ARGS><ARG>admin</ARG><ARG>thepas > sword</ARG></ARGS></UPC> > End to send > Sending Message (14:40:37) > Characters sent==>[97]<== > Unity Response (14:42:37)==> > > End Unity Response > > -------------------------------------------- > > Start TEST 3 > Connexion to [XXX.XXX.XXX.179] On Port [8080] > Stream Mode Wait [Success] > Read the socket (14:45:23) > > Socket read (14:46:23)=> take [60] seconds > Message to send > <UPC><ROOMID>unity</ROOMID><METH>u14</METH><ARGS><ARG>admin</ARG><ARG>thepas > sword</ARG></ARGS></UPC> > End to send > Sending Message (14:46:23) > Characters sent==>[97]<== > Unity Response (14:48:23)==> > > End Unity Response > > -- > you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/mailman/listinfo/unity-dev/ > > superb hosting for this list and moock.org is generously provided by Rackspace. See: http://www.rackspace.com/?supbid=moock -- you're a unity-dev subscriber. to unsubscribe, visit www.moock.org/mailman/listinfo/unity-dev/ superb hosting for this list and moock.org is generously provided by Rackspace. See: http://www.rackspace.com/?supbid=moock