Skip to content
Snippets Groups Projects
Commit 566b9bcb authored by Nicola Bessone's avatar Nicola Bessone
Browse files

Modified the castor::tape::net::createListenerSock in order to throw...

Modified the castor::tape::net::createListenerSock in order to throw castor::exception::Exception and not only castor::exception::Communication.
parent 960f8fa5
Branches
Tags
No related merge requests found
......@@ -43,7 +43,7 @@
// createListenerSock
//-----------------------------------------------------------------------------
int castor::tape::net::createListenerSock(const char *addr,
const unsigned short port) throw(castor::exception::Communication) {
const unsigned short port) throw(castor::exception::Exception) {
int socketFd = 0;
struct sockaddr_in address;
......
......@@ -53,7 +53,7 @@ namespace net {
* @return The socket file descriptor.
*/
int createListenerSock(const char *addr, const unsigned short port)
throw(castor::exception::Communication);
throw(castor::exception::Exception);
/**
* Creates a listener socket with a port number within the specified range.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment