ipc_win32.cc File Reference
#include "squid.h"
#include "cache_cf.h"
#include "comm.h"
#include "comm/Connection.h"
#include "fd.h"
#include "fde.h"
#include "globals.h"
#include "ip/Address.h"
#include "rfc1738.h"
#include "SquidConfig.h"
#include "SquidIpc.h"
#include "SquidTime.h"
#include "tools.h"
#include <cerrno>
#include <process.h>
Include dependency graph for ipc_win32.cc:

Go to the source code of this file.

Classes

struct  ipc_params
 
struct  thread_params
 

Macros

#define HELLO_BUF_SZ   32
 

Functions

static unsigned int __stdcall ipc_thread_1 (void *params)
 
static unsigned int __stdcall ipc_thread_2 (void *params)
 
static int ipcCloseAllFD (int prfd, int pwfd, int crfd, int cwfd)
 
static void PutEnvironment ()
 
pid_t ipcCreate (int type, const char *prog, const char *const args[], const char *name, Ip::Address &local_addr, int *rfd, int *wfd, void **hIpc)
 
static int ipcSend (int cwfd, const char *buf, int len)
 

Variables

static const char * ok_string = "OK\n"
 
static const char * err_string = "ERR\n"
 
static const char * shutdown_string = "$shutdown\n"
 
static const char * hello_string = "hi there\n"
 
static char hello_buf [HELLO_BUF_SZ]
 

Macro Definition Documentation

#define HELLO_BUF_SZ   32

Definition at line 57 of file ipc_win32.cc.

Referenced by ipcCreate().

Function Documentation

static unsigned int __stdcall ipc_thread_2 ( void *  params)
static
static int ipcCloseAllFD ( int  prfd,
int  pwfd,
int  crfd,
int  cwfd 
)
static

Definition at line 61 of file ipc_win32.cc.

References comm_close.

Referenced by ipc_thread_1(), and ipcCreate().

static int ipcSend ( int  cwfd,
const char *  buf,
int  len 
)
static

Definition at line 340 of file ipc_win32.cc.

References DBG_CRITICAL, debugs, and xstrerr().

Referenced by ipc_thread_1().

static void PutEnvironment ( )
static

Definition at line 81 of file ipc_win32.cc.

References Debug::debugOptions, and xcalloc.

Referenced by ipc_thread_1().

Variable Documentation

const char* err_string = "ERR\n"
static

Definition at line 53 of file ipc_win32.cc.

Referenced by ipc_thread_1(), ipcCreate(), and main().

char hello_buf[HELLO_BUF_SZ]
static

Definition at line 58 of file ipc_win32.cc.

Referenced by ipc_thread_1(), and ipcCreate().

const char* hello_string = "hi there\n"
static

Definition at line 56 of file ipc_win32.cc.

Referenced by ipc_thread_1(), and ipcCreate().

const char* ok_string = "OK\n"
static

Definition at line 52 of file ipc_win32.cc.

Referenced by ipc_thread_1(), and ipcCreate().

const char* shutdown_string = "$shutdown\n"
static

Definition at line 54 of file ipc_win32.cc.

Referenced by ipc_thread_1(), and ipc_thread_2().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors