Changeset 3916 in Sophya
- Timestamp:
- Dec 1, 2010, 12:05:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/swrapsock.cc
r3907 r3916 190 190 s = socket(AF_INET, SOCK_STREAM, 0); 191 191 if (s < 0) { 192 cout << "ServerSocket::Initialize() Pb socket ErrNo=" << errno << endl;192 cout << "ServerSocket::Initialize() Pb socket ErrNo=" << errno << endl; 193 193 throw SocketException("ServerSocket::Initialize() Pb socket()"); 194 194 } 195 195 196 skt = s; 197 int soptv=1; 198 if ( setsockopt( skt, SOL_SOCKET, SO_REUSEADDR, &soptv, sizeof(soptv) ) != 0) { 199 cout << "ServerSocket::Initialize() Pb setsockopt(...SO_REUSEADDR...) ErrNo=" << errno << endl; 200 throw SocketException("ServerSocket::Initialize() Pb setsockopt(...SO_REUSEADDR...)"); 201 } 196 202 if (nconmax <= 1) nconmax = 1; 197 203 NConMax = nconmax;
Note:
See TracChangeset
for help on using the changeset viewer.