MPD 0.17~git
Data Fields
tcp_socket_handler Struct Reference

#include <tcp_socket.h>

Data Fields

size_t(* data )(const void *data, size_t length, void *ctx)
 New data has arrived.
void(* error )(GError *error, void *ctx)
void(* disconnected )(void *ctx)

Detailed Description

Definition at line 30 of file tcp_socket.h.


Field Documentation

size_t(* tcp_socket_handler::data)(const void *data, size_t length, void *ctx)

New data has arrived.

Returns:
the number of bytes consumed; 0 if more data is needed

Definition at line 37 of file tcp_socket.h.

Definition at line 41 of file tcp_socket.h.

void(* tcp_socket_handler::error)(GError *error, void *ctx)

Definition at line 39 of file tcp_socket.h.


The documentation for this struct was generated from the following file: