Patch #671 » 0002-Handle-EADDRINUSE-and-other-errors-from-listen.patch
| dcmnet/libsrc/dul.cc | ||
|---|---|---|
|
return makeDcmnetCondition(DULC_TCPINITERROR, OF_error, msg.c_str());
|
||
|
}
|
||
|
#endif
|
||
|
listen(sock, PRV_LISTENBACKLOG);
|
||
|
if (listen(sock, PRV_LISTENBACKLOG) != 0) {
|
||
|
char buf[256];
|
||
|
OFString msg = "TCP Initialization Error: ";
|
||
|
msg += OFStandard::strerror(errno, buf, sizeof(buf));
|
||
|
return makeDcmnetCondition(DULC_TCPINITERROR, OF_error, msg.c_str());
|
||
|
}
|
||
|
}
|
||
|
(*key)->networkSpecific.TCP.tLayer = new DcmTransportLayer((*key)->applicationFunction);
|
||
- « Previous
- 1
- 2
- Next »