at the latest whenever the object (CHost?) which bound the listen-socket is destroyed emit a warning message (ddcLogWarn()) if the unlink() call fails here
Bryan, Should I print a warning during creating if file exists?
SOCKET create_unix_domain_socket(string socket_path, bool bBind, string& strError) { SOCKET l_socket = -1; if (bBind) { unlink(socket_path.c_str()); }
Log in to post a comment.
Bryan, Should I print a warning during creating if file exists?
SOCKET create_unix_domain_socket(string socket_path, bool bBind, string& strError)
{
SOCKET l_socket = -1;
if (bBind) {
unlink(socket_path.c_str());
}