summaryrefslogtreecommitdiff
path: root/server/src/session.c
AgeCommit message (Collapse)Author
2023-06-13server: session: make read and write functions uniformDanny Holman
Make the functions that relay data to and from session sockets be uniform in function and arguments. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-05-14server: session: add function returning sessionsDanny Holman
Add a function that returns the number of current sessions. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-05-14server: session: return number of bytes writtenDanny Holman
Return the number of bytes written to a session socket handle or -1 on error. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-02-15session: simplify read_sessionDanny Holman
Simplify the function read_session and provide some error checking. This function should now return -1 if a valid session with the given ID cannot be found. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-02-15session: add error checking to session creationDanny Holman
Add a check in init_session that returns -1 if malloc cannot create a new session. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-01-04server: add a main header and source fileDanny Holman
Add a main header and source file so that every required header is checked against the config.h generated by autoconf. Signed-off-by: Danny Holman <dholman@gymli.org>
2023-01-04server: add functions for session managementDanny Holman
Add functions to initialize and control individual sessions. Signed-off-by: Danny Holman <dholman@gymli.org>