Age | Commit message (Collapse) | Author |
|
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>
|
|
Add a function that returns the number of current sessions.
Signed-off-by: Danny Holman <dholman@gymli.org>
|
|
Return the number of bytes written to a session socket handle or -1 on
error.
Signed-off-by: Danny Holman <dholman@gymli.org>
|
|
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>
|
|
Add a check in init_session that returns -1 if malloc cannot create a
new session.
Signed-off-by: Danny Holman <dholman@gymli.org>
|
|
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>
|
|
Add functions to initialize and control individual sessions.
Signed-off-by: Danny Holman <dholman@gymli.org>
|