From 71e7fc734d6160ae6c19e440db1266b30bdb667e Mon Sep 17 00:00:00 2001 From: ilsimo Date: Sun, 15 Oct 2006 13:08:08 +0000 Subject: first try for a scp protocol layer (aka libscp) --- sesman/libscp_v1s.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 sesman/libscp_v1s.h (limited to 'sesman/libscp_v1s.h') diff --git a/sesman/libscp_v1s.h b/sesman/libscp_v1s.h new file mode 100644 index 00000000..241afba7 --- /dev/null +++ b/sesman/libscp_v1s.h @@ -0,0 +1,20 @@ + +#ifndef LIBSCP_V1S_H +#define LIBSCP_V1S_H + +#include "libscp_types.h" +//#include "os_calls.h" +//#include "tcp.h" + +/* server API */ +/* ... */ enum SCP_SERVER_STATES_E scp_v1s_accept(struct SCP_CONNECTION* c, struct SCP_SESSION** s, int skipVchk); +/* 002 */ enum SCP_SERVER_STATES_E scp_v1s_deny_connection(struct SCP_CONNECTION* c, char* reason); + +/* 020 */ enum SCP_SERVER_STATES_E scp_v1s_request_pwd_change(struct SCP_CONNECTION* c, char* reason, char* npw); +/* 023 */ enum SCP_SERVER_STATES_E scp_v1s_pwd_change_error(struct SCP_CONNECTION* s, char* error, int retry, char* npw); +/* 030 */ enum SCP_SERVER_STATES_E scp_v1s_connect_new_session(struct SCP_CONNECTION* s, SCP_DISPLAY d); +/* 031 */ enum SCP_SERVER_STATES_E scp_v1s_reconnect_session(struct SCP_CONNECTION* s, SCP_DISPLAY d); +/* 032 */ enum SCP_SERVER_STATES_E scp_v1s_connection_error(struct SCP_CONNECTION* s, char* error); +/* 040 */ enum SCP_SERVER_STATES_E scp_v1s_list_sessions(struct SCP_CONNECTION* s, int sescnt, struct SCP_DISCONNECTED_SESSION** ds, SCP_SID* sid); + +#endif -- cgit v1.2.1