NCBI C++ ToolKit
Macros | Functions
net.c File Reference
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <freetds/time.h>
#include <freetds/tds.h>
#include <freetds/string.h>
#include <freetds/tls.h>
#include "replacements.h"
#include <signal.h>
#include <assert.h>
+ Include dependency graph for net.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define TDSSELERR   0
 
#define TDSPOLLURG   0x8000u
 
#define NI_NUMERICHOST   0
 

Functions

int tds_socket_set_nonblocking (TDS_SYS_SOCKET sock)
 Set socket to non-blocking. More...
 
static void tds_addrinfo_set_port (struct addrinfo *addr, unsigned int port)
 
const char * tds_addrinfo2str (struct addrinfo *addr, char *name, int namemax)
 
static TDSERRNO tds_connect_socket (TDSSOCKET *tds, struct addrinfo *addr, unsigned int port, int timeout, int *p_oserr)
 
TDSERRNO tds_open_socket (TDSSOCKET *tds, struct addrinfo *addr, unsigned int port, int timeout, int *p_oserr)
 
void tds_close_socket (TDSSOCKET *tds)
 Close current socket. More...
 
void tds_connection_close (TDSCONNECTION *conn)
 
int tds_select (TDSSOCKET *tds, unsigned tds_sel, int timeout_seconds)
 Select on a socket until it's available or the timeout expires. More...
 
static ssize_t tds_socket_read (TDSCONNECTION *conn, TDSSOCKET *tds, unsigned char *buf, size_t buflen)
 Read from an OS socket @TODO remove tds, save error somewhere, report error in another way. More...
 
static ssize_t tds_socket_write (TDSCONNECTION *conn, TDSSOCKET *tds, const unsigned char *buf, size_t buflen)
 Write to an OS socket. More...
 
int tds_wakeup_init (TDSPOLLWAKEUP *wakeup)
 
void tds_wakeup_close (TDSPOLLWAKEUP *wakeup)
 
void tds_wakeup_send (TDSPOLLWAKEUP *wakeup, char cancel)
 
static int tds_connection_signaled (TDSCONNECTION *conn)
 
ssize_t tds_goodread (TDSSOCKET *tds, unsigned char *buf, size_t buflen)
 Loops until we have received some characters return -1 on failure. More...
 
ssize_t tds_connection_read (TDSSOCKET *tds, unsigned char *buf, size_t buflen)
 
ssize_t tds_goodwrite (TDSSOCKET *tds, const unsigned char *buffer, size_t buflen)
 
void tds_socket_flush (TDS_SYS_SOCKET sock)
 
ssize_t tds_connection_write (TDSSOCKET *tds, const unsigned char *buf, size_t buflen, int final)
 
int tds7_get_instance_ports (FILE *output, struct addrinfo *addr)
 Get port of all instances. More...
 
int tds7_get_instance_port (struct addrinfo *addr, const char *instance)
 Get port of given instance. More...
 

Macro Definition Documentation

◆ NI_NUMERICHOST

#define NI_NUMERICHOST   0

◆ TDSPOLLURG

#define TDSPOLLURG   0x8000u

Definition at line 100 of file net.c.

◆ TDSSELERR

#define TDSSELERR   0

Definition at line 99 of file net.c.

Modified on Sun Jun 16 04:37:27 2024 by modify_doxy.py rev. 669887