Minor additions/fixes to doxygen-style docs
This commit is contained in:
parent
1af44db109
commit
fdd57bc538
1 changed files with 27 additions and 9 deletions
|
@ -424,11 +424,13 @@ void UDPC_client_initiate_connection_pk(
|
||||||
/*!
|
/*!
|
||||||
* \brief Queues a packet to be sent to the specified peer
|
* \brief Queues a packet to be sent to the specified peer
|
||||||
*
|
*
|
||||||
* Note that there must already be an established connection with the peer. A
|
* Note that there must already be an established connection with the peer. If
|
||||||
* client can establish a connection to a server peer via a call to
|
* a packet is queued for a peer that is not connected, it will be dropped and
|
||||||
* UDPC_client_initiate_connection() or UDPC_client_initiate_connection_pk(). A
|
* logged with log-level warning. A client can establish a connection to a
|
||||||
* server must receive an initiate-connection-packet from a client to establish
|
* server peer via a call to UDPC_client_initiate_connection() or
|
||||||
* a connection (sent by previously mentioned UDPC_client_initiate_* functions).
|
* UDPC_client_initiate_connection_pk(). A server must receive an
|
||||||
|
* initiate-connection-packet from a client to establish a connection (sent by
|
||||||
|
* previously mentioned UDPC_client_initiate_* functions).
|
||||||
*
|
*
|
||||||
* \param ctx The context to send a packet on
|
* \param ctx The context to send a packet on
|
||||||
* \param destinationId The peer to send a packet to
|
* \param destinationId The peer to send a packet to
|
||||||
|
@ -448,15 +450,31 @@ void UDPC_queue_send(UDPC_HContext ctx, UDPC_ConnectionId destinationId,
|
||||||
* queue is full, it will not be removed from the main queue that this function
|
* queue is full, it will not be removed from the main queue that this function
|
||||||
* (and UDPC_queue_send()) uses. The queue that this function refers to does not
|
* (and UDPC_queue_send()) uses. The queue that this function refers to does not
|
||||||
* have an imposed limit as it is implemented as a thread-safe linked list (data
|
* have an imposed limit as it is implemented as a thread-safe linked list (data
|
||||||
* is dynamically stored on the heap). Also note that this queue holds packets
|
* is dynamically stored on the heap) and access to this data structure is
|
||||||
* for all connections this context maintains. Thus if one connection has free
|
* faster than accessing a connection's internal queue. Also note that this
|
||||||
* space, then it may partially remove packets only destined for that connection
|
* queue holds packets for all connections this context maintains. Thus if one
|
||||||
* from the queue this function refers to.
|
* connection has free space, then it may partially remove packets only destined
|
||||||
|
* for that connection from the queue this function refers to.
|
||||||
*/
|
*/
|
||||||
unsigned long UDPC_get_queue_send_current_size(UDPC_HContext ctx);
|
unsigned long UDPC_get_queue_send_current_size(UDPC_HContext ctx);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Gets the size of a connection's queue of queued packets
|
||||||
|
*
|
||||||
|
* Note that a UDPC context holds a queue per established connection that holds
|
||||||
|
* a limited amount of packets to send. This function checks a connection's
|
||||||
|
* internal queue, but must do so after locking an internal mutex (a call to
|
||||||
|
* UDPC_update() will lock this mutex, regardless of whether or not the context
|
||||||
|
* is using threaded update).
|
||||||
|
*/
|
||||||
unsigned long UDPC_get_queued_size(UDPC_HContext ctx, UDPC_ConnectionId id, int *exists);
|
unsigned long UDPC_get_queued_size(UDPC_HContext ctx, UDPC_ConnectionId id, int *exists);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Gets the size limit of a connection's queue of queued packets
|
||||||
|
*
|
||||||
|
* Note that a call to this function does not use any locks, as the limit is
|
||||||
|
* known at compile time and is the same for all UDPC connections.
|
||||||
|
*/
|
||||||
unsigned long UDPC_get_max_queued_size();
|
unsigned long UDPC_get_max_queued_size();
|
||||||
|
|
||||||
int UDPC_set_accept_new_connections(UDPC_HContext ctx, int isAccepting);
|
int UDPC_set_accept_new_connections(UDPC_HContext ctx, int isAccepting);
|
||||||
|
|
Loading…
Reference in a new issue