Re: Re: php sockets
| From: | Jim Lucas | Date: | Thu, 20 Dec 2007 16:58:20 +0000 |
| Subject: | Re: Re: php sockets | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-266170@lists.php.net to get a copy of this message | ||
vixle wrote:
> well i mean even if we would not consider that particular piece of code as
> an example of the code that i have issues with im still rather interesting
> if theres some different between the socket model used by say, c++(winsock
> in my case) and the sockets used in php
> because when made a simple c++ script (winsock based) which just echoes what
> its gotten from a client i still get a problem which looks like this: when
> php client connects to the serv, the server then gets into an endnless loop
> loading the cpu almost up to max . Although i get a message from it in the
> php script (which server was supposed to send when the client connects) but
> the server itself doesnt work correctly for some reason, and thats what im
> curious about. Again, when i rewrote the whole functionality of the client
> in c++ it worked just as it was supposed to, while being written in
> php(client part) it all messes up.
> ""Nathan Nobbe"" <quickshiftin@gmail.com> wrote in message
>
> news:7dd2dc0b0712190701t7960cd5fn825dd467eae8a644@mail.gmail.com...
>> figured id top-post on this one, since the original message was so long..
>> i recommend debugging with a tool like wireshark. that way you can
>> see whats in the packets going over the wire and hopefully it will lead
>> to a solution.
>>
>> -nathan
>>
>>
>
well, since it is the php version, and this is a php list, why don't you show us your complete
PHP
source code instead of you C++ source.
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare