⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 libpq.h

📁 PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统
💻 H
字号:
/*------------------------------------------------------------------------- * * libpq.h *	  POSTGRES LIBPQ buffer structure definitions. * * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * $PostgreSQL: pgsql/src/include/libpq/libpq.h,v 1.65 2005/10/15 02:49:44 momjian Exp $ * *------------------------------------------------------------------------- */#ifndef LIBPQ_H#define LIBPQ_H#include <sys/types.h>#include <netinet/in.h>#include "lib/stringinfo.h"#include "libpq/libpq-be.h"#include "libpq/ip.h"/* ---------------- * PQArgBlock *		Information (pointer to array of this structure) required *		for the PQfn() call.  (This probably ought to go somewhere else...) * ---------------- */typedef struct{	int			len;	int			isint;	union	{		int		   *ptr;		/* can't use void (dec compiler barfs)	 */		int			integer;	}			u;} PQArgBlock;/* * External functions. *//* * prototypes for functions in pqcomm.c */extern int StreamServerPort(int family, char *hostName,		 unsigned short portNumber, char *unixSocketName, int ListenSocket[],				 int MaxListen);extern int	StreamConnection(int server_fd, Port *port);extern void StreamClose(int sock);extern void TouchSocketFile(void);extern void pq_init(void);extern void pq_comm_reset(void);extern int	pq_getbytes(char *s, size_t len);extern int	pq_getstring(StringInfo s);extern int	pq_getmessage(StringInfo s, int maxlen);extern int	pq_getbyte(void);extern int	pq_peekbyte(void);extern int	pq_putbytes(const char *s, size_t len);extern int	pq_flush(void);extern int	pq_putmessage(char msgtype, const char *s, size_t len);extern void pq_startcopyout(void);extern void pq_endcopyout(bool errorAbort);/* * prototypes for functions in be-secure.c */extern int	secure_initialize(void);extern void secure_destroy(void);extern int	secure_open_server(Port *port);extern void secure_close(Port *port);extern ssize_t secure_read(Port *port, void *ptr, size_t len);extern ssize_t secure_write(Port *port, void *ptr, size_t len);#endif   /* LIBPQ_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -