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 "tools.h"
#include <cerrno>
#include <chrono>
#include <thread>
#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

◆ HELLO_BUF_SZ

#define HELLO_BUF_SZ   32

Definition at line 59 of file ipc_win32.cc.

Function Documentation

◆ ipc_thread_1()

◆ ipc_thread_2()

static unsigned int __stdcall ipc_thread_2 ( void *  params)
static

◆ ipcCloseAllFD()

static int ipcCloseAllFD ( int  prfd,
int  pwfd,
int  crfd,
int  cwfd 
)
static

Definition at line 63 of file ipc_win32.cc.

References comm_close.

Referenced by ipc_thread_1(), and ipcCreate().

◆ ipcCreate()

◆ ipcSend()

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

Definition at line 334 of file ipc_win32.cc.

References DBG_CRITICAL, debugs, and xstrerr().

Referenced by ipc_thread_1().

◆ PutEnvironment()

static void PutEnvironment ( )
static

Definition at line 83 of file ipc_win32.cc.

References Debug::debugOptions, and xcalloc().

Referenced by ipc_thread_1().

Variable Documentation

◆ err_string

const char* err_string = "ERR\n"
static

Definition at line 55 of file ipc_win32.cc.

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

◆ hello_buf

char hello_buf[HELLO_BUF_SZ]
static

Definition at line 60 of file ipc_win32.cc.

Referenced by ipc_thread_1(), and ipcCreate().

◆ hello_string

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

Definition at line 58 of file ipc_win32.cc.

Referenced by ipc_thread_1(), and ipcCreate().

◆ ok_string

const char* ok_string = "OK\n"
static

Definition at line 54 of file ipc_win32.cc.

Referenced by ipc_thread_1(), and ipcCreate().

◆ shutdown_string

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

Definition at line 56 of file ipc_win32.cc.

Referenced by ipc_thread_1(), and ipc_thread_2().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors