added client callbacks to ssh server
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
/* 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*);
|
||||
@@ -18,9 +19,9 @@ int main() {
|
||||
.id = 123,
|
||||
.port = 2222,
|
||||
.cbs = (ServerLoopCallbacks){
|
||||
.ssh_init = test,
|
||||
.ssh_stop = test,
|
||||
.ssh_run = testrun,
|
||||
.ssh_init = client_init,
|
||||
.ssh_stop = client_stop,
|
||||
.ssh_run = client_update,
|
||||
}
|
||||
};
|
||||
ssh_start(&conf);
|
||||
|
||||
Reference in New Issue
Block a user