Project

General

Profile

Patch #671 » 0002-Handle-EADDRINUSE-and-other-errors-from-listen.patch

Jörg Riesmeier, 2015-11-11 18:06

View differences:

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);
(2-2/2)