2010-07-29 11:04:30 +02:00
|
|
|
/*
|
|
|
|
* This library contains code used to send positioning requests (normal,
|
|
|
|
* calibration or autocalibration) to the aggregaton server.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _LIBOWLPS_CLIENT_
|
|
|
|
#define _LIBOWLPS_CLIENT_
|
|
|
|
|
2011-03-17 14:06:44 +01:00
|
|
|
#include <owlps.h>
|
2010-07-29 11:04:30 +02:00
|
|
|
|
|
|
|
/* Error codes */
|
|
|
|
#define ERR_CREATING_SOCKET 151 // Error when creating output socket
|
|
|
|
#define ERR_SENDING_INFO 152 // Error sending a localisation request
|
|
|
|
|
|
|
|
|
|
|
|
/* Function headers */
|
2011-04-05 15:41:52 +02:00
|
|
|
int owlclient_create_trx_socket(const char *const dest_ip,
|
|
|
|
const uint_fast16_t dest_port,
|
|
|
|
struct sockaddr_in *const server,
|
|
|
|
const char *const iface) ;
|
|
|
|
void owlclient_use_iface(const int sockfd, const char *const iface) ;
|
|
|
|
void owlclient_send_request(const int sockfd,
|
|
|
|
const struct sockaddr_in *const server,
|
|
|
|
const void *const packet,
|
|
|
|
const uint_fast16_t packet_size,
|
|
|
|
const uint_fast16_t nb_pkt,
|
|
|
|
const uint_fast32_t delay) ;
|
|
|
|
void owlclient_send_packet(const int sockfd,
|
|
|
|
const struct sockaddr_in *const server,
|
|
|
|
const void *const packet,
|
|
|
|
const uint_fast16_t packet_size) ;
|
2010-07-29 11:04:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif // _LIBOWLPS_CLIENT_
|