30 lines
720 B
C
30 lines
720 B
C
/* #############################################################################
|
|
* # sshGameServer
|
|
* This is a test
|
|
*
|
|
* AUTHER: PreacherDHM
|
|
* DATE: 07/03/26
|
|
* #############################################################################
|
|
*/
|
|
/* This is a sample implementation of a libssh based SSH server */
|
|
#include "ssh_server_client.h"
|
|
#include "client_source/client.h"
|
|
|
|
int test(void*);
|
|
int testrun(void*, void*);
|
|
|
|
|
|
int main() {
|
|
ServerConfig conf = {
|
|
.id = 123,
|
|
.port = 2222,
|
|
.cbs = (ServerLoopCallbacks){
|
|
.ssh_init = client_init,
|
|
.ssh_stop = client_stop,
|
|
.ssh_run = client_update,
|
|
}
|
|
};
|
|
ssh_start(&conf);
|
|
return 0;
|
|
}
|