search for: sock_connect_wto

Displaying 5 results from an estimated 5 matches for "sock_connect_wto".

2007 May 15
0
Setting explicitly the source of slaves connections
Hi, As I wanted my slaves to connect to their master using a specific IP address when they have more than one, though I had to modify a few things regarding net/sock.c: I mainly took the code from sock_get_server_socket and removed the reference to the port setting, in order to modify sock_connect_wto. Then I changed a few things to not care too much about not being given a source hostname (falling back to an INET_ANY or whatever connect uses while not being bound to a specific IP). The "problem" is that the sock_connect_wto must now be given another parameter, the source hostname so...
2004 Aug 06
0
ice2 CVS build problems under Solaris 7
...cecast config.o main.o logging.o sighandler.o net/libicenet.a thread/libicethread.a httpp/libicehttpp.a log/libicelog.a avl/libiceavl.a /opt/lib/libxml.so - -L/opt/lib/lib -lz -lz -lsocket -lnsl -lpthread -Wl,--rpath -Wl,/opt/lib - -Wl,--rpath -Wl,/opt/lib net/libicenet.a(sock.o): In function `sock_connect_wto': sock.o(.text+0x2f0): undefined reference to `inet_aton' net/libicenet.a(sock.o): In function `sock_get_server_socket': sock.o(.text+0x730): undefined reference to `inet_aton' net/libicenet.a(resolver.o): In function `resolver_getname': resolver.o(.text+0x70): undefined referen...
2004 Aug 06
2
CVS restored
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Looks like the icecast CVS server has been restored to full service. Now I can get back to rebuilding my server. :) - -- "I'm alive, and filled with goo! VISION GOO!" - Zim, "Invader Zim" -----BEGIN PGP SIGNATURE----- Comment: For info see http://www.gnupg.org
2004 Aug 06
0
Submission: Patch to libshout/sock.c for MacOSX
...mp;& (read_bytes == 1)) { if (c != '\r') buff[pos++] = c; read_bytes = recv(sockfd, &c, 1, 0); } if (read_bytes == 1) { buff[pos] = '\0'; return 1; } else { return 0; } } /* * Connect to hostname on specified port and return the created socket. */ SOCKET sock_connect_wto(const char *hostname, const int port, const int timeout) { SOCKET sockfd; struct sockaddr_in sin, server; if (!hostname || !hostname[0]) { return INVALID_SOCKET; } else if (port <= 0) { return INVALID_SOCKET; } sockfd = socket(AF_INET, SOCK_STREAM, 0); if (sockfd == INVALID_SOCKET)...
2004 Aug 06
2
improved error.log output --diff
...00 -0400 @@ -83,11 +83,11 @@ if(!localmount) localmount = remotemount; - DEBUG1("Adding source at mountpoint \"%s\"", localmount); + DEBUG1("Adding source at mountpoint \"%s\", %s", localmount, client->con->ip); streamsock = sock_connect_wto(server, port, 0); if (streamsock == SOCK_ERROR) { - WARN2("Failed to relay stream from master server, couldn't connect to http://%s:%d", server, port); + WARN2("Failed to relay stream from master server, couldn't connect to http://%s:%d, %s", server, p...