37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/*
|
|
* This file is part of the Owl Positioning System (OwlPS).
|
|
* OwlPS is a project of the University of Franche-Comté
|
|
* (Université de Franche-Comté), France.
|
|
*
|
|
* This is the header file of libowlps-client, the library that contains
|
|
* the code used to send positioning requests (normal, calibration and
|
|
* autocalibration).
|
|
*/
|
|
|
|
|
|
#ifndef _LIBOWLPS_CLIENT_
|
|
#define _LIBOWLPS_CLIENT_
|
|
|
|
#include <owlps.h>
|
|
|
|
|
|
/* Function headers */
|
|
int owl_create_trx_socket(const char *const dest_ip,
|
|
const uint_fast16_t dest_port,
|
|
struct sockaddr_in *const server,
|
|
const char *const iface) ;
|
|
void owl_use_iface(const int sockfd, const char *const iface) ;
|
|
void owl_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 owl_send_packet(const int sockfd,
|
|
const struct sockaddr_in *const server,
|
|
const void *const packet,
|
|
const uint_fast16_t packet_size) ;
|
|
|
|
|
|
#endif // _LIBOWLPS_CLIENT_
|