Classes | Typedefs | Enumerations | Functions
ip_connection.h File Reference
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
Include dependency graph for ip_connection.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _Device
struct  _IPConnection

Typedefs

typedef void(* ConnectedCallbackFunction )(uint8_t connect_reason, void *user_data)
typedef struct _Device Device
typedef struct _DevicePrivate DevicePrivate
typedef void(* DisconnectedCallbackFunction )(uint8_t disconnect_reason, void *user_data)
typedef void(* EnumerateCallbackFunction )(const char *uid, const char *connected_uid, char position, uint8_t hardware_version[3], uint8_t firmware_version[3], uint16_t device_identifier, uint8_t enumeration_type, void *user_data)
typedef struct _IPConnection IPConnection
typedef struct _IPConnectionPrivate IPConnectionPrivate

Enumerations

enum  {
  E_OK = 0, E_TIMEOUT = -1, E_NO_STREAM_SOCKET = -2, E_HOSTNAME_INVALID = -3,
  E_NO_CONNECT = -4, E_NO_THREAD = -5, E_NOT_ADDED = -6, E_ALREADY_CONNECTED = -7,
  E_NOT_CONNECTED = -8, E_INVALID_PARAMETER = -9, E_NOT_SUPPORTED = -10, E_UNKNOWN_ERROR_CODE = -11
}
enum  { IPCON_CALLBACK_ENUMERATE = 253, IPCON_CALLBACK_CONNECTED = 0, IPCON_CALLBACK_DISCONNECTED = 1 }
enum  { IPCON_ENUMERATION_TYPE_AVAILABLE = 0, IPCON_ENUMERATION_TYPE_CONNECTED = 1, IPCON_ENUMERATION_TYPE_DISCONNECTED = 2 }
enum  { IPCON_CONNECT_REASON_REQUEST = 0, IPCON_CONNECT_REASON_AUTO_RECONNECT = 1 }
enum  { IPCON_DISCONNECT_REASON_REQUEST = 0, IPCON_DISCONNECT_REASON_ERROR = 1, IPCON_DISCONNECT_REASON_SHUTDOWN = 2 }
enum  { IPCON_CONNECTION_STATE_DISCONNECTED = 0, IPCON_CONNECTION_STATE_CONNECTED = 1, IPCON_CONNECTION_STATE_PENDING = 2 }

Functions

int ipcon_authenticate (IPConnection *ipcon, const char secret[64])
int ipcon_connect (IPConnection *ipcon, const char *host, uint16_t port)
void ipcon_create (IPConnection *ipcon)
void ipcon_destroy (IPConnection *ipcon)
int ipcon_disconnect (IPConnection *ipcon)
int ipcon_enumerate (IPConnection *ipcon)
bool ipcon_get_auto_reconnect (IPConnection *ipcon)
int ipcon_get_connection_state (IPConnection *ipcon)
uint32_t ipcon_get_timeout (IPConnection *ipcon)
void ipcon_register_callback (IPConnection *ipcon, uint8_t id, void *callback, void *user_data)
void ipcon_set_auto_reconnect (IPConnection *ipcon, bool auto_reconnect)
void ipcon_set_timeout (IPConnection *ipcon, uint32_t timeout)
void ipcon_unwait (IPConnection *ipcon)
void ipcon_wait (IPConnection *ipcon)

Typedef Documentation

typedef void(* ConnectedCallbackFunction)(uint8_t connect_reason, void *user_data)

Definition at line 186 of file ip_connection.h.

typedef struct _Device Device

Definition at line 169 of file ip_connection.h.

typedef struct _DevicePrivate DevicePrivate

Definition at line 170 of file ip_connection.h.

typedef void(* DisconnectedCallbackFunction)(uint8_t disconnect_reason, void *user_data)

Definition at line 188 of file ip_connection.h.

typedef void(* EnumerateCallbackFunction)(const char *uid, const char *connected_uid, char position, uint8_t hardware_version[3], uint8_t firmware_version[3], uint16_t device_identifier, uint8_t enumeration_type, void *user_data)

Definition at line 178 of file ip_connection.h.

typedef struct _IPConnection IPConnection

Definition at line 167 of file ip_connection.h.

typedef struct _IPConnectionPrivate IPConnectionPrivate

Definition at line 168 of file ip_connection.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
E_OK 
E_TIMEOUT 
E_NO_STREAM_SOCKET 
E_HOSTNAME_INVALID 
E_NO_CONNECT 
E_NO_THREAD 
E_NOT_ADDED 
E_ALREADY_CONNECTED 
E_NOT_CONNECTED 
E_INVALID_PARAMETER 
E_NOT_SUPPORTED 
E_UNKNOWN_ERROR_CODE 

Definition at line 42 of file ip_connection.h.



tinkerforge_laser_transform
Author(s): M.Fischer
autogenerated on Thu Jun 6 2019 20:39:25