Files
skevity/source/main.c

29 lines
666 B
C
Raw Normal View History

2026-03-12 11:00:23 -07:00
/* #############################################################################
* # sshGameServer
* This is a test
*
* AUTHER: PreacherDHM
* DATE: 07/03/26
* #############################################################################
*/
/* This is a sample implementation of a libssh based SSH server */
2026-03-16 13:22:59 -07:00
#include "ssh_server_client.h"
2026-03-12 11:00:23 -07:00
2026-03-16 13:22:59 -07:00
int test(void*);
int testrun(void*, void*);
2026-03-12 11:00:23 -07:00
2026-03-16 13:22:59 -07:00
int main() {
ServerConfig conf = {
.id = 123,
.port = 2222,
.cbs = (ServerLoopCallbacks){
.ssh_init = test,
.ssh_stop = test,
.ssh_run = testrun,
}
2026-03-12 11:00:23 -07:00
};
2026-03-16 13:22:59 -07:00
ssh_start(&conf);
2026-03-12 11:00:23 -07:00
return 0;
}