base/libs/qdecoder/qSocket.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <stdarg.h>
#include <netdb.h>
#include <fcntl.h>
#include <unistd.h>
#include <poll.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/stat.h>
#include "qDecoder.h"
#include "qInternal.h"

Include dependency graph for qSocket.c:

Go to the source code of this file.

Defines

#define MAX_SAVEINTOFILE_CHUNK_SIZE
#define MAX_SENDFILE_CHUNK_SIZE

FunctionsTitleTestFour

bool qSocketClose (int sockfd)
ssize_t qSocketGets (char *str, int sockfd, size_t nbytes, int timeoutms)
int qSocketOpen (const char *hostname, int port)
ssize_t qSocketPrintf (int sockfd, const char *format,...)
ssize_t qSocketPuts (int sockfd, const char *str)
ssize_t qSocketRead (void *binary, int sockfd, size_t nbytes, int timeoutms)
off_t qSocketSaveIntoFile (int fd, int sockfd, off_t nbytes, int timeoutms)
ssize_t qSocketSaveIntoMemory (char *mem, int sockfd, size_t nbytes, int timeoutms)
off_t qSocketSendfile (int sockfd, int fd, off_t offset, off_t nbytes)
int qSocketWaitReadable (int sockfd, int timeoutms)
int qSocketWaitWritable (int sockfd, int timeoutms)
ssize_t qSocketWrite (int sockfd, const void *binary, size_t nbytes)


Detailed Description

Socket Handling API

Definition in file qSocket.c.


Generated on Mon Mar 26 07:00:52 2018 for JSOC_Documentation by  doxygen 1.5.7.1