psocks.c 549 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Main program for Windows psocks.
  3. */
  4. #include "putty.h"
  5. #include "ssh.h"
  6. #include "psocks.h"
  7. static const PsocksPlatform platform = {
  8. NULL /* open_pipes */,
  9. NULL /* found_subcommand */,
  10. NULL /* start_subcommand */,
  11. };
  12. int main(int argc, char **argv)
  13. {
  14. psocks_state *ps = psocks_new(&platform);
  15. CmdlineArgList *arglist = cmdline_arg_list_from_GetCommandLineW();
  16. psocks_cmdline(ps, arglist);
  17. sk_init();
  18. winselcli_setup();
  19. psocks_start(ps);
  20. cli_main_loop(cliloop_null_pre, cliloop_null_post, NULL);
  21. }