2
0

FSSCGI.pm 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # This file was automatically generated by SWIG (http://www.swig.org).
  2. # Version 1.3.35
  3. #
  4. # Don't modify this file, modify the SWIG interface instead.
  5. package FSSCGI;
  6. require Exporter;
  7. require DynaLoader;
  8. @ISA = qw(Exporter DynaLoader);
  9. package FSSCGIc;
  10. bootstrap FSSCGI;
  11. package FSSCGI;
  12. @EXPORT = qw( );
  13. # ---------- BASE METHODS -------------
  14. package FSSCGI;
  15. sub TIEHASH {
  16. my ($classname,$obj) = @_;
  17. return bless $obj, $classname;
  18. }
  19. sub CLEAR { }
  20. sub FIRSTKEY { }
  21. sub NEXTKEY { }
  22. sub FETCH {
  23. my ($self,$field) = @_;
  24. my $member_func = "swig_${field}_get";
  25. $self->$member_func();
  26. }
  27. sub STORE {
  28. my ($self,$field,$newval) = @_;
  29. my $member_func = "swig_${field}_set";
  30. $self->$member_func($newval);
  31. }
  32. sub this {
  33. my $ptr = shift;
  34. return tied(%$ptr);
  35. }
  36. # ------- FUNCTION WRAPPERS --------
  37. package FSSCGI;
  38. ############# Class : FSSCGI::SCGIhandle ##############
  39. package FSSCGI::SCGIhandle;
  40. use vars qw(@ISA %OWNER %ITERATORS %BLESSEDMEMBERS);
  41. @ISA = qw( FSSCGI );
  42. %OWNER = ();
  43. %ITERATORS = ();
  44. sub new {
  45. my $pkg = shift;
  46. my $self = FSSCGIc::new_SCGIhandle(@_);
  47. bless $self, $pkg if defined($self);
  48. }
  49. sub DESTROY {
  50. return unless $_[0]->isa('HASH');
  51. my $self = tied(%{$_[0]});
  52. return unless defined $self;
  53. delete $ITERATORS{$self};
  54. if (exists $OWNER{$self}) {
  55. FSSCGIc::delete_SCGIhandle($self);
  56. delete $OWNER{$self};
  57. }
  58. }
  59. *connected = *FSSCGIc::SCGIhandle_connected;
  60. *socketDescriptor = *FSSCGIc::SCGIhandle_socketDescriptor;
  61. *disconnect = *FSSCGIc::SCGIhandle_disconnect;
  62. *addParam = *FSSCGIc::SCGIhandle_addParam;
  63. *addBody = *FSSCGIc::SCGIhandle_addBody;
  64. *getBody = *FSSCGIc::SCGIhandle_getBody;
  65. *getParam = *FSSCGIc::SCGIhandle_getParam;
  66. *sendRequest = *FSSCGIc::SCGIhandle_sendRequest;
  67. *respond = *FSSCGIc::SCGIhandle_respond;
  68. *bind = *FSSCGIc::SCGIhandle_bind;
  69. *accept = *FSSCGIc::SCGIhandle_accept;
  70. sub DISOWN {
  71. my $self = shift;
  72. my $ptr = tied(%$self);
  73. delete $OWNER{$ptr};
  74. }
  75. sub ACQUIRE {
  76. my $self = shift;
  77. my $ptr = tied(%$self);
  78. $OWNER{$ptr} = 1;
  79. }
  80. # ------- VARIABLE STUBS --------
  81. package FSSCGI;
  82. 1;