@ -25,7 +25,7 @@ appropriately, without creating a new socket.
char \fIip\fR[4];
uint16 \fIp\fR;
\fIs\fR = socket_tcp();
\fIs\fR = socket_tcp4();
socket_bind4(s,ip,p);
socket_connect4(s,ip,p);
@ -22,7 +22,7 @@ returns -1, setting errno appropriately.
@ -25,7 +25,7 @@ before this IP and port can be bound again.
socket_bind4_reuse(s,ip,p);
@ -31,7 +31,7 @@ before this IP and port can be bound again.
char \fIip\fR[16];
socket_bind6_reuse(s,ip,p);
@ -40,7 +40,7 @@ effect as first calling socket_bind4 with IP address 0.0.0.0 and port 0.
@ -23,7 +23,7 @@ received. If not, it returns -1 and sets errno appropriately.
char buf[1000];
int len;
len = socket_recv4(s,buf,sizeof(buf),ip,&p);
@ -28,7 +28,7 @@ received. If not, it returns -1 and sets errno appropriately.
uint32 scope_id;
socket_bind6(s,ip,p);
len = socket_recv6(s,buf,sizeof(buf),ip,&p,&scope_id);
@ -23,7 +23,7 @@ it returns -1 and sets errno appropriately.
socket_send4(s,"hello, world",12,ip,p);
@ -29,7 +29,7 @@ it returns -1 and sets errno appropriately.
uint32 \fIscope_id\fR;
socket_send6(s,"hello, world",12,ip,p,scope_id);
@ -27,7 +27,7 @@ it returns -1 and sets errno appropriately.
int \fIfd\fR = open_read("/etc/passwd");
socket_sendfile(s,fd,0,23);
@ -27,7 +27,7 @@ compat:
}
return s;
#else
return socket_tcp();
return socket_tcp4();
#endif