1 /////////////////////////////////////////////////////////////////////////////
2 // Name: ext/socket/cpp/sk_constants.cpp
3 // Purpose: constants for Wx::Socket
4 // Author: Graciliano M. P.
6 // RCS-ID: $Id: sk_constants.cpp 2517 2008-11-30 20:14:22Z mbarbon $
7 // Copyright: (c) 2003, 2007 Graciliano M. P.
8 // Licence: This program is free software; you can redistribute it and/or
9 // modify it under the same terms as Perl itself
10 /////////////////////////////////////////////////////////////////////////////
12 #include "cpp/constants.h"
14 double socket_constant( const char* name, int arg )
17 // !parser: sub { $_[0] =~ m<^\s*r\w*\(\s*(\w+)\s*\);\s*(?://(.*))?$> }
20 if( strEQ( name, #n ) ) \
23 WX_PL_CONSTANT_INIT();
33 r( wxSOCKET_WAITALL );
34 r( wxSOCKET_REUSEADDR );
35 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
37 r( wxSOCKET_BROADCAST );
40 r( wxSOCKET_CONNECTION_FLAG );
41 r( wxSOCKET_INPUT_FLAG );
42 r( wxSOCKET_LOST_FLAG );
43 r( wxSOCKET_OUTPUT_FLAG );
48 r( wxSOCKET_CONNECTION );
56 r( wxSOCKET_DATAGRAM );
59 r( wxSOCKET_NOERROR );
62 r( wxSOCKET_INVADDR );
63 r( wxSOCKET_INVSOCK );
65 r( wxSOCKET_INVPORT );
66 r( wxSOCKET_WOULDBLOCK );
67 r( wxSOCKET_TIMEDOUT );
73 WX_PL_CONSTANT_CLEANUP();
76 wxPlConstants socket_module( &socket_constant );