src/socket_manager.c File Reference

Manages a socket connection. More...

#include <unistd.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <string.h>
#include "splt.h"
#include "socket_manager.h"
Include dependency graph for socket_manager.c:

Go to the source code of this file.

Defines

#define SPLT_BUFFER_SIZE   1024
#define SPLT_MAXIMUM_NUMBER_OF_LINES_READ   1000

Functions

void splt_sm_close (splt_socket_handler *sh, splt_state *state)
void splt_sm_connect (splt_socket_handler *sh, const char *hostname, int port, splt_state *state)
int splt_sm_process_without_headers_functor (const char *received_line, int line_number, void *user_data)
void splt_sm_receive_and_process (splt_socket_handler *sh, splt_state *state, int(*process_functor)(const char *received_line, int line_number, void *user_data), void *user_data)
void splt_sm_receive_and_process_with_recv (splt_socket_handler *sh, splt_state *state, ssize_t(*recv_func)(int fd, void *buf, size_t len, int flags), int(*process_functor)(const char *received_line, int line_number, void *user_data), void *user_data)
void splt_sm_receive_and_process_without_headers (splt_socket_handler *sh, splt_state *state, int(*process_functor)(const char *received_line, int line_number, void *user_data), void *user_data, int number_of_lines_to_skip_after_headers)
void splt_sm_receive_and_process_without_headers_with_recv (splt_socket_handler *sh, splt_state *state, ssize_t(*recv_func)(int fd, void *buf, size_t len, int flags), int(*process_functor)(const char *received_line, int line_number, void *user_data), void *user_data, int number_of_lines_to_skip_after_headers)
void splt_sm_send (splt_socket_handler *sh, const char *message, splt_state *state)
void splt_sm_send_http_message (splt_socket_handler *sh, const char *message, splt_state *state)
void splt_sm_socket_handler_free (splt_socket_handler **sh)
splt_socket_handlersplt_sm_socket_handler_new (int *error)

Detailed Description

Manages a socket connection.

Definition in file socket_manager.c.


Generated on 3 Aug 2012 for libmp3splt by  doxygen 1.6.1