protected:
public:
+ Semaphore(const Semaphore&) = delete;
+ void operator=(const Semaphore&) = delete;
//! Default constructor.
Semaphore( unsigned int value = 0 );
typedef int sock_t;
typedef ::socklen_t socklen_t;
- //! Closes a socket.
- static int closesocket( sock_t socket );
-
//! Connect with timeout
// Returns:
// > 0 on success
//! Writes a vector.
static int writev( Utility::sock_t socket, const iovec *vector, size_t count );
- //! Returns a random number.
- static long int random( void );
//! Sets the random seed.
- static void srandom( unsigned int seed );
+ static void srandom(void);
//! Drops the program's group privileges.
static void dropGroupPrivs( int uid, int gid );