diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-01 10:42:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-01 10:42:22 +0000 |
commit | 4789b3f6536ef8267c79c7cb3ee6678546c2150b (patch) | |
tree | af4784c10e98a747f6e681e41cfc106d98c18b98 /src/inspsocket.cpp | |
parent | c80508b28be5947648f59710e6653f793a73bd76 (diff) |
AF_INET -> define to AF_FAMILY, will be either AF_INET or AF_INET6
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4610 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r-- | src/inspsocket.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 2d49c19db..66ba5c58e 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -215,7 +215,7 @@ bool InspSocket::BindAddr() { log(DEBUG,"Found an IP to bind to: %s",IP.c_str()); s.sin_addr = n; - s.sin_family = AF_INET; + s.sin_family = AF_FAMILY; if (bind(this->fd,(struct sockaddr*)&s,sizeof(s)) < 0) { log(DEBUG,"Cant bind()"); @@ -241,7 +241,7 @@ bool InspSocket::BindAddr() bool InspSocket::DoConnect() { log(DEBUG,"In DoConnect()"); - if ((this->fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) + if ((this->fd = socket(AF_FAMILY, SOCK_STREAM, 0)) == -1) { log(DEBUG,"Cant socket()"); this->state = I_ERROR; @@ -255,7 +255,7 @@ bool InspSocket::DoConnect() log(DEBUG,"Part 2 DoConnect() %s",this->IP); inet_aton(this->IP,&addy); - addr.sin_family = AF_INET; + addr.sin_family = AF_FAMILY; addr.sin_addr = addy; addr.sin_port = htons(this->port); |