File: src___socket.hh.patch

package info (click to toggle)
dhttpd 1.02a-18
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 256 kB
  • ctags: 55
  • sloc: cpp: 622; sh: 185; makefile: 43
file content (25 lines) | stat: -rw-r--r-- 478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/src/socket.hh
+++ b/src/socket.hh
@@ -30,7 +30,7 @@
 	FILE *getio() { return io; }
 
 	Socket( int s );
-	~Socket();
+	virtual ~Socket();
 };
 
 class ListenSocket
@@ -39,10 +39,10 @@
 	int sock;
 
 public:
-	int geterror() { return sock==-1; }
+	int geterror() const { return sock==-1; }
 	int newsock();
-	int getfd() { return sock; }
+	int getfd() const { return sock; }
 
-	ListenSocket( int port );
+	ListenSocket( int port, char *bind_addr );
 	~ListenSocket();
 };