MPD 0.17~git
Data Fields
tcp_connect_handler Struct Reference

#include <tcp_connect.h>

Data Fields

void(* success )(int fd, void *ctx)
 The connection was established successfully.
void(* error )(GError *error, void *ctx)
 An error has occurred.
void(* timeout )(void *ctx)
 The connection could not be established in the specified time span.
void(* canceled )(void *ctx)
 The operation was canceled before a result was available.

Detailed Description

Definition at line 27 of file tcp_connect.h.


Field Documentation

The operation was canceled before a result was available.

Definition at line 51 of file tcp_connect.h.

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

An error has occurred.

The method is responsible for freeing the GError.

Definition at line 40 of file tcp_connect.h.

void(* tcp_connect_handler::success)(int fd, void *ctx)

The connection was established successfully.

Parameters:
fda file descriptor that must be closed with close_socket() when finished

Definition at line 34 of file tcp_connect.h.

The connection could not be established in the specified time span.

Definition at line 46 of file tcp_connect.h.


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