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++
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
);
}
}
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
);
}
}
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
/* 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
5 matches
Mail list logo