]> git.scottworley.com Git - tattlekey/blobdiff - client/net.c
client: Make the queue size bounds configurable
[tattlekey] / client / net.c
index da33727bbb9e00b0bde4bb7f9a6f59a3856026ba..b38d0a838c15ec451d749c7984a6f63a5106ae54 100644 (file)
@@ -20,10 +20,10 @@ static void initialize_the_pcb() {
     signal_error_by_blinking();
 
   ip_addr_t ipaddr;
-  if (ip4addr_aton(tattle_server_ip_address, &ipaddr) == 0)
+  if (ip4addr_aton(config_tattle_server_ip_address, &ipaddr) == 0)
     signal_error_by_blinking();
 
-  if (udp_connect(the_pcb, &ipaddr, htons(tattle_port)) != ERR_OK)
+  if (udp_connect(the_pcb, &ipaddr, config_tattle_port) != ERR_OK)
     signal_error_by_blinking();
 }
 
@@ -33,7 +33,7 @@ struct tattle_message_wire_format {
   u16_t ago;
 };
 
-void send_report(u16_t seq, u16_t ago) {
+void send_report_packet(u16_t seq, u16_t ago) {
   cyw43_arch_lwip_begin();
 
   initialize_the_pcb();
@@ -45,7 +45,7 @@ void send_report(u16_t seq, u16_t ago) {
 
   struct tattle_message_wire_format *msg =
       (struct tattle_message_wire_format *)(p->payload);
-  msg->sender = htons(this_tattler_identity);
+  msg->sender = htons(config_this_tattler_identity);
   msg->seq = htons(seq);
   msg->ago = htons(ago);