int option;
char *iface;
- cp();
-
nfd = socket(sa->sa.sa_family, SOCK_STREAM, IPPROTO_TCP);
if(nfd < 0) {
char *addrstr;
int option;
- cp();
-
nfd = socket(sa->sa.sa_family, SOCK_DGRAM, IPPROTO_UDP);
if(nfd < 0) {
void retry_outgoing(outgoing_t *outgoing) {
event_t *event;
- cp();
-
outgoing->timeout += 5;
if(outgoing->timeout > maxtimeout)
}
void finish_connecting(connection_t *c) {
- cp();
-
ifdebug(CONNECTIONS) logger(LOG_INFO, _("Connected to %s (%s)"), c->name, c->hostname);
configure_tcp(c);
char *address, *port;
int result;
- cp();
-
begin:
if(!c->outgoing->ai) {
if(!c->outgoing->cfg) {
connection_t *c;
node_t *n;
- cp();
-
n = lookup_node(outgoing->name);
if(n)
int fd;
socklen_t len = sizeof(sa);
- cp();
-
fd = accept(sock, &sa.sa, &len);
if(fd < 0) {
connection_t *c;
avl_node_t *node;
- cp();
-
if(outgoing_list) {
for(node = connection_tree->head; node; node = node->next) {
c = node->data;