|
PostgreSQL Source Code git master
|
#include "postgres.h"
Go to the source code of this file.
Functions | |
| static void | TranslateSocketError (void) |
| static int | pgwin32_poll_signals (void) |
| static int | isDataGram (SOCKET s) |
| int | pgwin32_waitforsinglesocket (SOCKET s, int what, int timeout) |
| SOCKET | pgwin32_socket (int af, int type, int protocol) |
| int | pgwin32_bind (SOCKET s, struct sockaddr *addr, int addrlen) |
| int | pgwin32_listen (SOCKET s, int backlog) |
| SOCKET | pgwin32_accept (SOCKET s, struct sockaddr *addr, int *addrlen) |
| int | pgwin32_connect (SOCKET s, const struct sockaddr *addr, int addrlen) |
| int | pgwin32_recv (SOCKET s, char *buf, int len, int f) |
| int | pgwin32_send (SOCKET s, const void *buf, int len, int flags) |
| int | pgwin32_select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timeval *timeout) |
Variables | |
| int | pgwin32_noblock = 0 |
Definition at line 169 of file socket.c.
Referenced by pgwin32_waitforsinglesocket().
Definition at line 337 of file socket.c.
References fb(), pgwin32_poll_signals(), and TranslateSocketError().
Definition at line 315 of file socket.c.
References bind, and TranslateSocketError().
Definition at line 359 of file socket.c.
References fb(), pgwin32_waitforsinglesocket(), and TranslateSocketError().
Definition at line 326 of file socket.c.
References fb(), listen, and TranslateSocketError().
Definition at line 157 of file socket.c.
References EINTR, fb(), pgwin32_dispatch_queued_signals(), and UNBLOCKED_SIGNAL_QUEUE.
Referenced by pgwin32_accept(), pgwin32_recv(), pgwin32_select(), and pgwin32_send().
Definition at line 382 of file socket.c.
References b, buf, ereport, errmsg_internal(), EWOULDBLOCK, fb(), len, NOTICE, pg_usleep(), pgwin32_noblock, pgwin32_poll_signals(), pgwin32_waitforsinglesocket(), and TranslateSocketError().
| int pgwin32_select | ( | int | nfds, |
| fd_set * | readfds, | ||
| fd_set * | writefds, | ||
| fd_set * | exceptfds, | ||
| const struct timeval * | timeout | ||
| ) |
Definition at line 517 of file socket.c.
References Assert, buf, EINTR, elog, ERROR, fb(), i, pgwin32_dispatch_queued_signals(), pgwin32_poll_signals(), pgwin32_signal_event, and TranslateSocketError().
Definition at line 459 of file socket.c.
References b, buf, EWOULDBLOCK, fb(), len, pgwin32_noblock, pgwin32_poll_signals(), pgwin32_waitforsinglesocket(), and TranslateSocketError().
Definition at line 291 of file socket.c.
References closesocket, fb(), TranslateSocketError(), and type.
Definition at line 181 of file socket.c.
References buf, EINTR, ereport, errmsg_internal(), ERROR, EWOULDBLOCK, fb(), isDataGram(), pgwin32_dispatch_queued_signals(), pgwin32_signal_event, and TranslateSocketError().
Referenced by pgwin32_connect(), pgwin32_recv(), and pgwin32_send().
Definition at line 56 of file socket.c.
References EADDRINUSE, EADDRNOTAVAIL, EAFNOSUPPORT, ECONNABORTED, ECONNREFUSED, ECONNRESET, EHOSTDOWN, EHOSTUNREACH, EINPROGRESS, EINTR, EISCONN, EMSGSIZE, ENETDOWN, ENETRESET, ENETUNREACH, ENOBUFS, ENOTCONN, ENOTSOCK, EOPNOTSUPP, EPROTONOSUPPORT, ereport, errmsg_internal(), ETIMEDOUT, EWOULDBLOCK, fb(), and NOTICE.
Referenced by pgwin32_accept(), pgwin32_bind(), pgwin32_connect(), pgwin32_listen(), pgwin32_recv(), pgwin32_select(), pgwin32_send(), pgwin32_socket(), and pgwin32_waitforsinglesocket().
| int pgwin32_noblock = 0 |
Definition at line 28 of file socket.c.
Referenced by pgwin32_recv(), pgwin32_send(), secure_raw_read(), and secure_raw_write().