usc.h File Reference

Go to the source code of this file.

Data Structures

struct  UnixSocket
struct  UnixSocketConnection
struct  FdPool
struct  IoBuf
struct  IoBuf::Buf

Functions

static void die (char *s)
int uscMake (struct UnixSocketConnection *cn)
int uscAccept (struct UnixSocketConnection *cn)
void uscClose (struct UnixSocketConnection *cn)
static int uscConnectionPending (struct UnixSocketConnection *cn, fd_set *set)
static int uscDataPending (struct UnixSocketConnection *cn, fd_set *set)
static void addFd (struct FdPool *pool, int fd)
static void removeFd (struct FdPool *pool, int fd)
static int maxFd (struct FdPool *pool)
struct IoBufiobCreate (int in_max, int out_max)
void iobDestroy (struct IoBuf *iob)
int iobPrintf (struct Buf *buf, const char *fmt,...)
int split (char *str, char *argv[], int maxargs)
void iobFlush (struct IoBuf *iob, struct UnixSocketConnection *connection)


Function Documentation

static void addFd ( struct FdPool pool,
int  fd 
) [inline, static]

Definition at line 82 of file usc.h.

References FdPool::fds.

Referenced by new_state().

static void die ( char *  s  )  [inline, static]

Definition at line 41 of file usc.h.

Referenced by new_state(), and uscMake().

struct IoBuf* iobCreate ( int  in_max,
int  out_max 
) [read]

Definition at line 111 of file usc.c.

References IoBuf::Buf::buf, IoBuf::in, IoBuf::Buf::maxlen, and IoBuf::out.

Referenced by batch_work(), interpreter(), and server_work().

void iobDestroy ( struct IoBuf iob  ) 

Definition at line 141 of file usc.c.

References IoBuf::Buf::buf, IoBuf::in, and IoBuf::out.

Referenced by server_work().

void iobFlush ( struct IoBuf iob,
struct UnixSocketConnection connection 
)

int iobPrintf ( struct Buf *  buf,
const char *  fmt,
  ... 
)

static int maxFd ( struct FdPool pool  )  [inline, static]

Definition at line 96 of file usc.h.

References FdPool::fds.

Referenced by new_state().

static void removeFd ( struct FdPool pool,
int  fd 
) [inline, static]

Definition at line 90 of file usc.h.

References FdPool::fds.

Referenced by new_state().

int split ( char *  str,
char *  argv[],
int  maxargs 
)

Definition at line 151 of file usc.c.

References INCR, and ISDQUOTE.

Referenced by doDebug(), mdsshell_doServerCommand(), and spawnCmd().

int uscAccept ( struct UnixSocketConnection cn  ) 

void uscClose ( struct UnixSocketConnection cn  ) 

Definition at line 104 of file usc.c.

References UnixSocketConnection::fd_active.

Referenced by new_state().

static int uscConnectionPending ( struct UnixSocketConnection cn,
fd_set *  set 
) [inline, static]

Definition at line 68 of file usc.h.

References UnixSocketConnection::fd_connector.

Referenced by new_state().

static int uscDataPending ( struct UnixSocketConnection cn,
fd_set *  set 
) [inline, static]

Definition at line 74 of file usc.h.

References UnixSocketConnection::fd_active.

Referenced by new_state().

int uscMake ( struct UnixSocketConnection cn  ) 


Generated on Wed Feb 3 08:08:33 2010 for mdsshell by  doxygen 1.5.7.1