portfwd_.c 373 B

1234567891011121314151617181920
  1. #include "portfwd.c"
  2. #include "puttyexp.h"
  3. int is_pfwd(void * handle)
  4. {
  5. Plug fn = (Plug)handle;
  6. return ((*fn)->closing == pfd_closing);
  7. }
  8. int is_pfwd_listener(void * handle)
  9. {
  10. Plug fn = (Plug)handle;
  11. return ((*fn)->accepting == pfd_accepting);
  12. }
  13. void * get_pfwd_backend(void * handle)
  14. {
  15. return ((struct PFwdPrivate*)handle)->backhandle;
  16. }