#include <stdarg.h>
#include <cddb/cddb_ni.h>
#include <cddb/cddb_config.h>
Go to the source code of this file.
Defines | |
#define | CDDB_NET_H 1 |
Functions | |
char * | sock_fgets (char *s, int size, cddb_conn_t *c) |
This function performs the same task as the standard fgets except for the fact that it might time-out if the socket read takes too long. | |
size_t | sock_fwrite (const void *ptr, size_t size, size_t nmemb, cddb_conn_t *c) |
This function performs the same task as the standard fwrite except for the fact that it might time-out if the socket write takes too long. | |
int | sock_fprintf (cddb_conn_t *c, const char *format,...) |
This function performs the same task as the standard fprintf except for the fact that it might time-out if the socket write takes too long. | |
int | sock_vfprintf (cddb_conn_t *c, const char *format, va_list ap) |
This function performs the same task as the standard vfprintf except for the fact that it might time-out if the socket write takes too long. | |
hostent * | timeout_gethostbyname (const char *hostname, int timeout) |
This function performs the same task as the standard gethostbyname except for the fact that it might time-out if the query takes too long. | |
int | timeout_connect (int sockfd, const struct sockaddr *addr, size_t len, int timeout) |
This function performs the same task as the standard connect except for the fact that it might time-out if the connect takes too long. |
|
|
|
This function performs the same task as the standard fgets except for the fact that it might time-out if the socket read takes too long. In case of a time out, errno will be set to ETIMEDOUT.
|
|
This function performs the same task as the standard fprintf except for the fact that it might time-out if the socket write takes too long. In case of a time out, errno will be set to ETIMEDOUT.
|
|
This function performs the same task as the standard fwrite except for the fact that it might time-out if the socket write takes too long. In case of a time out, errno will be set to ETIMEDOUT.
|
|
This function performs the same task as the standard vfprintf except for the fact that it might time-out if the socket write takes too long. In case of a time out, errno will be set to ETIMEDOUT.
|
|
This function performs the same task as the standard connect except for the fact that it might time-out if the connect takes too long. In case of a time out, errno will be set to ETIMEDOUT.
|
|
This function performs the same task as the standard gethostbyname except for the fact that it might time-out if the query takes too long. In case of a time out, errno will be set to ETIMEDOUT.
|