1 #############################################################################
2 ## Name: ext/socket/XS/SockAddress.xsp
3 ## Purpose: XS++ for Wx::SockAddress and derived classes
4 ## Author: Mattia Barbon
6 ## RCS-ID: $Id: SockAddress.xsp 2565 2009-05-17 13:34:37Z mbarbon $
7 ## Copyright: (c) 2004, 2007, 2009 Mattia Barbon
8 ## Licence: This program is free software; you can redistribute it and/or
9 ## modify it under the same terms as Perl itself
10 #############################################################################
14 %typemap{wxSockAddress*}{simple};
15 %typemap{wxIPaddress*}{simple};
16 %typemap{wxIPV4address*}{simple};
17 %typemap{wxIPV6address*}{simple};
18 %typemap{wxUNIXaddress*}{simple};
20 %name{Wx::SockAddress} class wxSockAddress
24 wxSockAddress::CLONE()
26 wxPli_thread_sv_clone( aTHX_ CLASS, (wxPliCloneSV)wxPli_detach_object );
30 %code{% wxPli_thread_sv_unregister( aTHX_ wxPli_get_class( aTHX_ ST(0) ), THIS, ST(0) );
38 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
40 %name{Wx::IPaddress} class wxIPaddress
42 %name{SetHostname} bool Hostname(const wxString& name);
43 %name{SetService} bool Service(const wxString& port);
46 %name{SetAnyAddress} bool AnyAddress();
47 %name{GetIPAddress} wxString IPAddress();
49 %name{GetHostname} wxString Hostname();
50 %name{GetService} unsigned short Service();
55 %name{Wx::IPV4address} class wxIPV4address
59 %name{GetOrigHostname} wxString OrigHostname();
61 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
62 %name{SetBroadcastAddress} bool BroadcastAddress();
68 %name{Wx::IPV6address} class wxIPV6address
77 %name{Wx::UNIXaddress} class wxUNIXaddress
81 %name{GetFilename} wxString Filename();
82 %name{SetFilename} void Filename(const wxString& filename);