move static constants out of ip6.h.

This commit is contained in:
leitner
2001-02-05 17:50:19 +00:00
parent 4819776eb5
commit 0c36e167de
9 changed files with 78 additions and 11 deletions

11
socket/socket_connected.c Normal file
View File

@@ -0,0 +1,11 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include "socket.h"
int socket_connected(int s) {
struct sockaddr si;
socklen_t sl=sizeof si;
if (getpeername(s,&si,&sl))
return 0;
return 1;
}