Changeset 991 for trunk/pdns/pdns/session.cc
- Timestamp:
- 03/25/07 15:22:10 (6 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/session.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/session.cc
r982 r991 395 395 396 396 if(s<0) 397 { 398 throw Exception(string("socket: ")+strerror(errno)); 399 } 397 throw Exception(string("socket: ")+strerror(errno)); 400 398 401 399 memset(&local,0,sizeof(local)); … … 427 425 throw SessionException(string("Setsockopt failed: ")+strerror(errno)); 428 426 429 430 427 if(bind(s, (sockaddr*)&local,sizeof(local))<0) 431 throw SessionException("binding to port "+itoa(port)+string(" : ")+strerror(errno));428 throw SessionException("binding to port "+itoa(port)+string(" on ")+localaddress+": "+strerror(errno)); 432 429 433 430 if(listen(s,128)<0)