@@ -284,7 +284,8 @@ extern const Socket net_invalid_socket;
284
284
* Calls send(sockfd, buf, len, MSG_NOSIGNAL).
285
285
*/
286
286
non_null (1 , 2 , 4 , 6 ) nullable (7 )
287
- int net_send (const Network * ns , const Logger * log , Socket sock , const uint8_t * buf , size_t len , const IP_Port * ip_port , Net_Profile * net_profile );
287
+ int net_send (const Network * ns , const Logger * log , Socket sock , const uint8_t * buf , size_t len , const IP_Port * ip_port ,
288
+ Net_Profile * net_profile );
288
289
/**
289
290
* Calls recv(sockfd, buf, len, MSG_NOSIGNAL).
290
291
*/
@@ -511,23 +512,23 @@ typedef struct Packet {
511
512
* Function to send a network packet to a given IP/port.
512
513
*/
513
514
non_null ()
514
- int send_packet (const Networking_Core * net , const IP_Port * ip_port , Packet packet );
515
+ int send_packet (Networking_Core * net , const IP_Port * ip_port , Packet packet );
515
516
516
517
/**
517
518
* Function to send packet(data) of length length to ip_port.
518
519
*
519
520
* @deprecated Use send_packet instead.
520
521
*/
521
522
non_null ()
522
- int sendpacket (const Networking_Core * net , const IP_Port * ip_port , const uint8_t * data , uint16_t length );
523
+ int sendpacket (Networking_Core * net , const IP_Port * ip_port , const uint8_t * data , uint16_t length );
523
524
524
525
/** Function to call when packet beginning with byte is received. */
525
526
non_null (1 ) nullable (3 , 4 )
526
527
void networking_registerhandler (Networking_Core * net , uint8_t byte , packet_handler_cb * cb , void * object );
527
528
528
529
/** Call this several times a second. */
529
530
non_null (1 ) nullable (2 )
530
- void networking_poll (const Networking_Core * net , void * userdata );
531
+ void networking_poll (Networking_Core * net , void * userdata );
531
532
532
533
/** @brief Connect a socket to the address specified by the ip_port.
533
534
*
@@ -614,9 +615,11 @@ Networking_Core *new_networking_no_udp(const Logger *log, const Memory *mem, con
614
615
nullable (1 )
615
616
void kill_networking (Networking_Core * net );
616
617
617
- /** Returns a pointer to the network net_profile object associated with `net`
618
+ /** @brief Returns a pointer to the network net_profile object associated with `net`.
619
+ *
618
620
* Returns null if `net` is null.
619
621
*/
622
+ non_null ()
620
623
const Net_Profile * net_get_net_profile (const Networking_Core * net );
621
624
622
625
#ifdef __cplusplus
0 commit comments