[ENet-discuss] ENet and PHP's socket library

Olivier Delannoy olivier.delannoy at gmail.com
Tue Sep 25 09:52:10 PDT 2007


Why couldn't you implement the ENet protocol in php ?


On 9/25/07, GhostManZero <ghostmanzero at lutherlink.de> wrote:
> That was what i feared the most, i wonder if i'll be able to do some
> bindings for ENet then, considering how i've never written any
> bindings for any languages before...
>
> Also, my main language is C++.
>
> Quoting Giuseppe Greco <giuseppe.greco at agamura.com>:
>
> > To connect to an ENet server you need an ENet client since both peers
> > must implement the same protocol (or if you prefer "talk the same
> > language"). You cannot just use a raw socket and expect it is able to
> > communicate with an ENet server. Of course, ENet provides also a simple
> > socket API (enet_socket_...) but it just hides the differences between
> > the Socket API on Windows and the Socket API on UNIX.
> >
> > What you can do is to write PHP bindings for ENet (I don't know if
> > they already exist - I use to program in C, period).
> >
> > j3d.
> >
> >>
> >>
> >>    Hello everyone,
> >>
> >>    I would like to know if it would be possible to use PHP's socket
> >> library to connect to a ENet server and be able to send and receive
> >> messages, as i'd like to try to do a simple PHP script where my script
> >> connects to a ENet Game Server and fetches the total ammount of
> >> players online.
> >>
> >>    Would such thing be possible under PHP? If so, would anyone mind
> >> telling me a bit of how i should proceed?
> >>
> >>    I'm not a PHP newbie, so if you just point me out to the functions
> >> i must use, and in what way, i can take care of it myself.
> >>
> >>    Thank you for your time!
> >> --
> >> ~Zero
> >> _______________________________________________
> >> ENet-discuss mailing list
> >> ENet-discuss at cubik.org
> >> http://lists.cubik.org/mailman/listinfo/enet-discuss
> >>
> > _______________________________________________
> > ENet-discuss mailing list
> > ENet-discuss at cubik.org
> > http://lists.cubik.org/mailman/listinfo/enet-discuss
> >
>
>
>
> --
> ~Zero
>
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>


-- 
Olivier Delannoy
ATER
PRiSM Laboratory
Versailles University, FRANCE


More information about the ENet-discuss mailing list