Re: Socket problem
| From: | Richard Lynch | Date: | Thu, 01 Feb 2007 01:12:20 +0000 |
| Subject: | Re: Socket problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248117@lists.php.net to get a copy of this message | ||
On Tue, January 30, 2007 2:31 pm, Scripter47 wrote:
> I'm making a simple socket server that just receive some data, and
> then
> send some data back again to the client.
>
> it is a program that send data by sockets, (not port 80)
>
> It has to a simple solution :)
>
> plz ask for more infomation.
http://php.net/sockets
Most people who go this route usually end up having trouble with the
2-way communication on a single socket.
You may want to open up 2 sockets, one for input, one for output, and
save yourself the headaches.
YMMV
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?