]> granicus.if.org Git - postgresql/blob - src/interfaces/libpq/fe-connect.h
7a68e3dedcd5f068f581173e3a16b99c662637b3
[postgresql] / src / interfaces / libpq / fe-connect.h
1 /*-------------------------------------------------------------------------
2  *
3  * fe-connect.h
4  *
5  *        Definitions related to setting up a connection to the backend
6  *
7  * Copyright (c) 1994, Regents of the University of California
8  *
9  * $Id: fe-connect.h,v 1.5 1997/12/04 00:28:13 scrappy Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef FE_CONNECT_H
14 #define            FE_CONNECT_H
15
16 /*----------------------------------------------------------------
17  * Common routines and definitions
18  *----------------------------------------------------------------
19  */
20
21 extern int      packetSend(Port *port, PacketBuf *buf, PacketLen len, bool nonBlocking);
22 extern int      packetReceive(Port *port, PacketBuf *buf, bool nonBlocking);
23
24 #endif                                                  /* FE_CONNECT_H */
25 #ifndef FE_CONNECT_H
26 #define FE_CONNECT_H
27
28 int                     packetSend(Port *port, PacketBuf *buf, PacketLen len, bool nonBlocking);
29 int                     packetReceive(Port *port, PacketBuf *buf, bool nonBlocking);
30
31 #endif