[lib] Rename create_udp_sending_socket()
Rename owl_create_udp_sending_socket() -> owl_create_udp_trx_socket().
This commit is contained in:
parent
940c5f74df
commit
b88f26e503
|
@ -18,8 +18,8 @@ int owlclient_create_trx_socket(char *dest_ip, uint_fast16_t dest_port,
|
||||||
{
|
{
|
||||||
struct sockaddr_in client ;
|
struct sockaddr_in client ;
|
||||||
|
|
||||||
int sockfd = owl_create_udp_sending_socket(dest_ip, dest_port,
|
int sockfd = owl_create_udp_trx_socket(dest_ip, dest_port,
|
||||||
server, &client) ;
|
server, &client) ;
|
||||||
if (sockfd < 0)
|
if (sockfd < 0)
|
||||||
{
|
{
|
||||||
perror("Error! Cannot create UDP sending socket to the aggregation"
|
perror("Error! Cannot create UDP sending socket to the aggregation"
|
||||||
|
|
|
@ -409,9 +409,9 @@ void* monitor_couples()
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
|
|
||||||
sockfd =
|
sockfd =
|
||||||
owl_create_udp_sending_socket(cfg_getstr(cfg, "positioner_ip"),
|
owl_create_udp_trx_socket(cfg_getstr(cfg, "positioner_ip"),
|
||||||
cfg_getint(cfg, "positioner_port"),
|
cfg_getint(cfg, "positioner_port"),
|
||||||
&serv, &client) ;
|
&serv, &client) ;
|
||||||
|
|
||||||
/* Open output file */
|
/* Open output file */
|
||||||
fd = fopen(cfg_getstr(cfg, "output_file"), "a") ; // We use add mode
|
fd = fopen(cfg_getstr(cfg, "output_file"), "a") ; // We use add mode
|
||||||
|
@ -970,9 +970,9 @@ void order_send(ap_list *ap)
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
|
|
||||||
sockfd =
|
sockfd =
|
||||||
owl_create_udp_sending_socket(ap->ip_addr,
|
owl_create_udp_trx_socket(ap->ip_addr,
|
||||||
cfg_getint(cfg, "autocalibration_port"),
|
cfg_getint(cfg, "autocalibration_port"),
|
||||||
&serv, &client) ;
|
&serv, &client) ;
|
||||||
|
|
||||||
message.order = htonl(AUTOCALIBRATION_ORDER_SEND) ;
|
message.order = htonl(AUTOCALIBRATION_ORDER_SEND) ;
|
||||||
nsent = sendto(sockfd, (void *)&message, sizeof(message), 0,
|
nsent = sendto(sockfd, (void *)&message, sizeof(message), 0,
|
||||||
|
|
|
@ -190,10 +190,10 @@ BOOL owl_mac_equals(uint8_t *mac1, uint8_t *mac2)
|
||||||
* - client_description (in/out): the structure in which the client
|
* - client_description (in/out): the structure in which the client
|
||||||
* description will be saved.
|
* description will be saved.
|
||||||
*/
|
*/
|
||||||
int owl_create_udp_sending_socket(char *server_address,
|
int owl_create_udp_trx_socket(char *server_address,
|
||||||
uint_fast16_t server_port,
|
uint_fast16_t server_port,
|
||||||
struct sockaddr_in *server_description,
|
struct sockaddr_in *server_description,
|
||||||
struct sockaddr_in *client_description)
|
struct sockaddr_in *client_description)
|
||||||
{
|
{
|
||||||
int sockfd ; // Socket descriptor
|
int sockfd ; // Socket descriptor
|
||||||
|
|
||||||
|
|
|
@ -231,10 +231,10 @@ uint64_t owl_timestamp_to_ms(TIMESTAMP date) ;
|
||||||
uint_fast32_t owl_time_elapsed(TIMESTAMP sup, TIMESTAMP inf) ;
|
uint_fast32_t owl_time_elapsed(TIMESTAMP sup, TIMESTAMP inf) ;
|
||||||
|
|
||||||
// Network
|
// Network
|
||||||
int owl_create_udp_sending_socket(char *server_address,
|
int owl_create_udp_trx_socket(char *server_address,
|
||||||
uint_fast16_t server_port,
|
uint_fast16_t server_port,
|
||||||
struct sockaddr_in *server_description,
|
struct sockaddr_in *server_description,
|
||||||
struct sockaddr_in *client_description) ;
|
struct sockaddr_in *client_description) ;
|
||||||
int owl_create_udp_listening_socket(uint_fast16_t port) ;
|
int owl_create_udp_listening_socket(uint_fast16_t port) ;
|
||||||
int owl_iface_mode_monitor(char *iface) ;
|
int owl_iface_mode_monitor(char *iface) ;
|
||||||
int owl_iface_set_channel(char *iface, uint_fast8_t channel) ;
|
int owl_iface_set_channel(char *iface, uint_fast8_t channel) ;
|
||||||
|
|
Loading…
Reference in New Issue