cheshirekow  v0.1.0
fcgi::Socket Class Reference

An fcgi socket connection. More...

#include <cpp_fcgi/Socket.h>

Public Member Functions

int close ()
 close the socket More...
 
int fd () const
 return the file descriptor More...
 
int open (const char *path, int backlog)
 open an fcgi socket on a unix domain More...
 
int open (int port, int backlog)
 open an fcgi socket listening on the specified port More...
 

Private Attributes

int m_fd
 file descriptor of the open socket More...
 

Detailed Description

An fcgi socket connection.

Definition at line 35 of file Socket.h.

Member Function Documentation

int fcgi::Socket::close ( )

close the socket

Returns
0 on success or an error number
int fcgi::Socket::fd ( ) const

return the file descriptor

int fcgi::Socket::open ( const char *  path,
int  backlog 
)

open an fcgi socket on a unix domain

Parameters
pathpath of the unix domain socket
backlognumber of unprocessed requests to queue
Returns
the fd of the opened socket or an error number
int fcgi::Socket::open ( int  port,
int  backlog 
)

open an fcgi socket listening on the specified port

Parameters
portport to listen on
backlognumber of unprocessed requests to queue
Returns
the fd of the opened socket or an error number

Member Data Documentation

int fcgi::Socket::m_fd
private

file descriptor of the open socket

Definition at line 38 of file Socket.h.


The documentation for this class was generated from the following file: