1 /* -*-pgsql-c-*- */ 2 /* 3 * 4 * $Header$ 5 * 6 * pgpool: a language independent connection pool server for PostgreSQL 7 * written by Tatsuo Ishii 8 * 9 * Copyright (c) 2003-2020 PgPool Global Development Group 10 * 11 * Permission to use, copy, modify, and distribute this software and 12 * its documentation for any purpose and without fee is hereby 13 * granted, provided that the above copyright notice appear in all 14 * copies and that both that copyright notice and this permission 15 * notice appear in supporting documentation, and that the name of the 16 * author not be used in advertising or publicity pertaining to 17 * distribution of the software without specific, written prior 18 * permission. The author makes no representations about the 19 * suitability of this software for any purpose. It is provided "as 20 * is" without express or implied warranty. 21 * 22 * pool_steam.h.: pool_stream.c related header file 23 * 24 */ 25 26 #ifndef SOCKET_STREAM_H 27 #define SOCKET_STREAM_H 28 29 extern void socket_set_nonblock(int fd); 30 extern void socket_unset_nonblock(int fd); 31 32 extern int socket_read(int sock, void *buf, size_t len, int timeout); 33 extern int socket_write(int fd, void *buf, size_t len); 34 35 36 #endif /* SOCKET_STREAM_H */ 37