[SOLVED] PHP Handshake

All Union Platform questions, comments, feature requests, and bug reports.

PHP Handshake  

Postby jteg » Sun 29 Apr 2012 15:16

I am writing a PHP client class to do some basic stuff with the server (e.g. login, connect to room, send message, etc.).

I send the u65 greetings and I get the u66 server info and u29 client id, but I never get the u8 attributes or the u63 ready message. If I force to wait for a "read" from the server, it blocks until the timeout period. I will be happy to post the code and the final class if I get get over this roadblock.

BTW, we've been trying various pub/sub systems and this seems to hold the most promise for mobile systems.
jteg
 
Posts: 2
Joined: Sun 29 Apr 2012 15:11

Re: PHP Handshake

Postby jteg » Sun 29 Apr 2012 19:41

BTW, this was at "tryunion.com", port 80.
When tried at por 9110, I get u8 message, but still not u63. Which port should I use if I want to post a message to the server for AS3 clients to be able to get that might be connected to port 80?
jteg
 
Posts: 2
Joined: Sun 29 Apr 2012 15:11

Re: PHP Handshake

Postby derek » Thu 10 May 2012 01:07

Hi jteg,

Are you connecting with a persistent socket or using HTTP?

There is also a guide for creating custom clients at http://www.unionplatform.com/?page_id=2066 which may help.

Cheers,

Derek
derek
 
Posts: 68
Joined: Mon 17 Oct 2011 19:12

Re: PHP Handshake

Postby colin » Thu 10 May 2012 03:11

armand niculescu (creator of http://www.sparkchess.com) has a sample showing how to create a php client using a persistent socket here:

http://www.richnetapps.com/simple-serve ... ltiplayer/

colin
colin
 
Posts: 232
Joined: Mon 17 Oct 2011 18:47

Re: PHP Handshake

Postby drmaposa » Sat 05 Jul 2014 12:01

Dear All

I missed the article written by Armand Niculescu. I tried to visit the page http://www.richnetapps.com/simple-serve ... ltiplayer/ and is no longer available.

Im a newbie, and have been following example tutorials. Anyone to help me step by step creating a Handshake in PHP

Thanks in advance
drmaposa
 
Posts: 2
Joined: Sat 05 Jul 2014 11:57

Re: PHP Handshake

Postby colin » Mon 22 Dec 2014 14:26

it looks like armand's site was moved to mediadivision.com. i couldn't find the handshake post there but it is available on archive.org:

http://web.archive.org/web/201402150940 ... ltiplayer/

colin
colin
 
Posts: 232
Joined: Mon 17 Oct 2011 18:47

Re: PHP Handshake

Postby drmaposa » Wed 24 Dec 2014 09:54

Thank you Colin for your response. You made may day well.
drmaposa
 
Posts: 2
Joined: Sat 05 Jul 2014 11:57


Return to Union Platform

Online

Users browsing this forum: No registered users and 3 guests