if (resource->port == 0)
resource->port = 80;
- *socketd = hostconnect(resource->host, resource->port, SOCK_STREAM, 0);
+ *socketd = php_hostconnect(resource->host, resource->port, SOCK_STREAM, 0);
if (*socketd == -1) {
SOCK_FCLOSE(*socketd);
*socketd = 0;
* port, returns the created socket on success, else returns -1.
* timeout gives timeout in seconds, 0 means blocking mode.
*/
-int hostconnect(char *host, int port, int socktype, int timeout)
+int php_hostconnect(char *host, int port, int socktype, int timeout)
{
int s;
struct sockaddr **sal, **psal;
*/
/* $Id$ */
-int hostconnect(char *host, int port, int socktype, int timeout);
+int php_hostconnect(char *host, int port, int socktype, int timeout);
/*
* Local variables: