Commit d5b1896f authored by Maxwell F. (Max) Chen's avatar Maxwell F. (Max) Chen
Browse files

add documentation

parent 27b3eb45
No related merge requests found
Pipeline #119096 failed with stage
in 0 seconds
Showing with 8 additions and 2 deletions
+8 -2
...@@ -10,8 +10,14 @@ ...@@ -10,8 +10,14 @@
typedef struct connection connection_t; typedef struct connection connection_t;
/** /**
* TODO: put docs here * A callback function type used for handling network events.
**/ *
* @param fd The file descriptor of the connection
* @param str The string data received from the connection
*
* This callback is typically used with the nu_multiplex function to handle
* data received from local or remote connections.
*/
typedef void nu_callback(int fd, char *str); typedef void nu_callback(int fd, char *str);
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment