tclUnixChan.c File Reference

#include "tclInt.h"
#include "tclIO.h"

Go to the source code of this file.

Data Structures

struct  FileState
struct  TcpState

Defines

#define SUPPORTS_TTY
#define SET_BITS(var, bits)   ((var) |= (bits))
#define CLEAR_BITS(var, bits)   ((var) &= ~(bits))
#define UNSUPPORTED_OPTION(detail)
#define TCP_ASYNC_SOCKET   (1<<0)
#define TCP_ASYNC_CONNECT   (1<<1)
#define SOMAXCONN   100
#define SOCKET_BUFSIZE   4096
#define ZERO_OFFSET   ((Tcl_SeekOffset) 0)
#define ERROR_OFFSET   ((Tcl_SeekOffset) -1)

Functions

Tcl_Channel TclpOpenFileChannel (Tcl_Interp *interp, Tcl_Obj *pathPtr, int mode, int permissions)
Tcl_Channel Tcl_MakeFileChannel (ClientData handle, int mode)
Tcl_Channel Tcl_OpenTcpClient (Tcl_Interp *interp, int port, const char *host, const char *myaddr, int myport, int async)
Tcl_Channel Tcl_MakeTcpClientChannel (ClientData sock)
Tcl_Channel Tcl_OpenTcpServer (Tcl_Interp *interp, int port, const char *myHost, Tcl_TcpAcceptProc *acceptProc, ClientData acceptProcData)
Tcl_Channel TclpGetDefaultStdChannel (int type)
int Tcl_GetOpenFile (Tcl_Interp *interp, const char *chanID, int forWriting, int checkUsage, ClientData *filePtr)
int TclUnixWaitForFile (int fd, int mask, int timeout)


Define Documentation

#define CLEAR_BITS ( var,
bits   )     ((var) &= ~(bits))

Definition at line 137 of file tclUnixChan.c.

#define ERROR_OFFSET   ((Tcl_SeekOffset) -1)

#define SET_BITS ( var,
bits   )     ((var) |= (bits))

Definition at line 136 of file tclUnixChan.c.

Referenced by TclpOpenFileChannel(), and TclUnixWaitForFile().

#define SOCKET_BUFSIZE   4096

Definition at line 230 of file tclUnixChan.c.

#define SOMAXCONN   100

Definition at line 217 of file tclUnixChan.c.

#define SUPPORTS_TTY

Definition at line 45 of file tclUnixChan.c.

Referenced by Tcl_GetOpenFile().

#define TCP_ASYNC_CONNECT   (1<<1)

Definition at line 207 of file tclUnixChan.c.

#define TCP_ASYNC_SOCKET   (1<<0)

Definition at line 206 of file tclUnixChan.c.

#define UNSUPPORTED_OPTION ( detail   ) 

Value:

if (interp) {                                           \
        Tcl_AppendResult(interp, (detail),                      \
                " not supported for this platform", NULL);      \
    }

Definition at line 181 of file tclUnixChan.c.

#define ZERO_OFFSET   ((Tcl_SeekOffset) 0)


Function Documentation

int Tcl_GetOpenFile ( Tcl_Interp interp,
const char *  chanID,
int  forWriting,
int  checkUsage,
ClientData *  filePtr 
)

Tcl_Channel Tcl_MakeFileChannel ( ClientData  handle,
int  mode 
)

Tcl_Channel Tcl_MakeTcpClientChannel ( ClientData  sock  ) 

Definition at line 2838 of file tclUnixChan.c.

References TCL_READABLE, and TCL_WRITABLE.

Tcl_Channel Tcl_OpenTcpClient ( Tcl_Interp interp,
int  port,
const char *  host,
const char *  myaddr,
int  myport,
int  async 
)

Tcl_Channel Tcl_OpenTcpServer ( Tcl_Interp interp,
int  port,
const char *  myHost,
Tcl_TcpAcceptProc *  acceptProc,
ClientData  acceptProcData 
)

Tcl_Channel TclpGetDefaultStdChannel ( int  type  ) 

int TclUnixWaitForFile ( int  fd,
int  mask,
int  timeout 
)



Generated on Wed Mar 12 12:18:37 2008 by  doxygen 1.5.1