Re: [PHP] Re: php sockets

2007-12-20 Thread vixle
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++

Re: [PHP] Re: php sockets

2007-12-20 Thread vixle
With any code doing a basic socket functionality, the code that i gave in the original post is suppossed to connect to a deamon, and get a message from it , instead it makes the deamon go crazy in the sense that it starts endless looping and loads the system resources up to max. Jim Lucas

[PHP] Re: php sockets

2007-12-18 Thread vixle
); } } vixle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ?php /* Get the port for the WWW service. */ //$service_port = getservbyname('www', 'tcp'); /* Get the IP address for the target host. */ //$address = gethostbyname('www.example.com'); /* Create a TCP/IP socket

[PHP] Re: php sockets

2007-12-18 Thread vixle
); } } vixle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ?php /* Get the port for the WWW service. */ //$service_port = getservbyname('www', 'tcp'); /* Get the IP address for the target host. */ //$address = gethostbyname('www.example.com'); /* Create a TCP/IP socket. */ $socket

[PHP] php sockets

2007-12-17 Thread vixle
?php /* Get the port for the WWW service. */ //$service_port = getservbyname('www', 'tcp'); /* Get the IP address for the target host. */ //$address = gethostbyname('www.example.com'); /* Create a TCP/IP socket. */ $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); //echo Attempting to