char host_name[1000];
int res;
int one=1;
+ extern char *tcp_options;
/* get my host name */
if (gethostname(host_name, sizeof(host_name)) == -1) {
return(-1);
}
+ set_socket_options(res, tcp_options);
+
return res;
}
struct sockaddr_in sock_out;
int res;
struct hostent *hp;
+ extern char *tcp_options;
res = socket(PF_INET, type, 0);
if (res == -1) {
sock_out.sin_port = htons(port);
sock_out.sin_family = PF_INET;
+ set_socket_options(res, tcp_options);
+
if (connect(res,(struct sockaddr *)&sock_out,sizeof(sock_out))) {
close(res);
fprintf(stderr,"failed to connect to %s - %s\n",