removed redundant code in relation completer
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
namespace matador {
|
||||
|
||||
/**
|
||||
* Base class for several kind of socket
|
||||
* Base class for some kind of socket
|
||||
* classes (acceptor, stream) representing a
|
||||
* socket. The protocol is selected via the
|
||||
* template parameter (/sa tcp and udp classes)
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
* Releases the socket fd and sets
|
||||
* the internal socket to zero (0).
|
||||
*
|
||||
* After the socket is released the user
|
||||
* After the socket is released, the user
|
||||
* is in charge to take of the socket
|
||||
*
|
||||
* @return The released socket fd
|
||||
@@ -81,8 +81,8 @@ public:
|
||||
|
||||
/**
|
||||
* Connect to the given peer. If the connection
|
||||
* could be established true is returned,
|
||||
* otherwise false is returned and errno is set.
|
||||
* could be established, true is returned,
|
||||
* otherwise false is returned, and errno is set.
|
||||
*
|
||||
* @param p Peer to execute to
|
||||
* @return True on successful connection
|
||||
@@ -91,21 +91,21 @@ public:
|
||||
|
||||
/**
|
||||
* Sets the socket either blocking (false) or
|
||||
* non blocking (true).
|
||||
* non-blocking (true).
|
||||
*
|
||||
* @param nb True sets the socket non blocking false blocking
|
||||
*/
|
||||
void non_blocking(bool nb);
|
||||
|
||||
/**
|
||||
* Returns true if the socket is non blocking
|
||||
* Returns true if the socket is non-blocking
|
||||
* otherwise returns false
|
||||
* @return True if socket is non blocking
|
||||
* @return True if the socket is non-blocking
|
||||
*/
|
||||
bool non_blocking() const;
|
||||
|
||||
/**
|
||||
* Set or unset the cose on exec flag
|
||||
* Set or unset the cose on the exec flag
|
||||
* for the socket
|
||||
*
|
||||
* @param nb Flag to set or unset cloexec option
|
||||
@@ -113,15 +113,15 @@ public:
|
||||
void cloexec(bool nb);
|
||||
|
||||
/**
|
||||
* Returns true if close on exec option is set
|
||||
* Returns true if the close-on-exec option is set
|
||||
*
|
||||
* @return True on set cloexec option
|
||||
*/
|
||||
bool cloexec() const;
|
||||
|
||||
/**
|
||||
* Sets a socket option represented by name. If option
|
||||
* was successfully set true is returned. Otherwise false
|
||||
* Sets a socket option represented by name. If the option
|
||||
* was successfully set, true is returned. Otherwise, false
|
||||
* and errno ist set.
|
||||
*
|
||||
* @param name Option name
|
||||
@@ -139,7 +139,7 @@ public:
|
||||
|
||||
/**
|
||||
* Assigns the given socket fd to this
|
||||
* socket. If the socket is already opened
|
||||
* socket. If the socket is already opened,
|
||||
* an exception is thrown.
|
||||
*
|
||||
* @param sock The socket fd to assign
|
||||
|
||||
Reference in New Issue
Block a user