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

intripoon intripoon at gmx.de
Tue Sep 25 10:11:53 PDT 2007


Hi !

I think it'ld be easier to integrate enet into php than reimplementing enet
in php. Especially if future versions of enet change the protocol. Plus php
contains so many libraries for so many things anyways. I'm not sure who
decides about what goes into php though.

Best regards
  Marc

-----Ursprüngliche Nachricht-----
Von: enet-discuss-bounces at cubik.org [mailto:enet-discuss-bounces at cubik.org]
Im Auftrag von Olivier Delannoy
Gesendet: Dienstag, 25. September 2007 18:52
An: Discussion of the ENet library
Betreff: Re: [ENet-discuss] ENet and PHP's socket library

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
_______________________________________________
ENet-discuss mailing list
ENet-discuss at cubik.org
http://lists.cubik.org/mailman/listinfo/enet-discuss




More information about the ENet-discuss mailing list