Revision: 19008
http://opalvoip.svn.sourceforge.net/opalvoip/?rev=19008&view=rev
Author: rjongbloed
Date: 2007-11-29 01:17:41 -0800 (Thu, 29 Nov 2007)
Log Message:
-----------
Merged BOOL branch changes to trunk.
Modified Paths:
--------------
ptlib/trunk/ReadMe_QOS.txt
ptlib/trunk/configure
ptlib/trunk/configure.ac
ptlib/trunk/include/ptbuildopts.h.in
ptlib/trunk/include/ptclib/asnber.h
ptlib/trunk/include/ptclib/asner.h
ptlib/trunk/include/ptclib/asnper.h
ptlib/trunk/include/ptclib/asnxer.h
ptlib/trunk/include/ptclib/cypher.h
ptlib/trunk/include/ptclib/delaychan.h
ptlib/trunk/include/ptclib/enum.h
ptlib/trunk/include/ptclib/ftp.h
ptlib/trunk/include/ptclib/guid.h
ptlib/trunk/include/ptclib/html.h
ptlib/trunk/include/ptclib/http.h
ptlib/trunk/include/ptclib/httpform.h
ptlib/trunk/include/ptclib/httpsvc.h
ptlib/trunk/include/ptclib/inetmail.h
ptlib/trunk/include/ptclib/inetprot.h
ptlib/trunk/include/ptclib/ipacl.h
ptlib/trunk/include/ptclib/memfile.h
ptlib/trunk/include/ptclib/mime.h
ptlib/trunk/include/ptclib/modem.h
ptlib/trunk/include/ptclib/paec.h
ptlib/trunk/include/ptclib/pasn.h
ptlib/trunk/include/ptclib/pdns.h
ptlib/trunk/include/ptclib/pils.h
ptlib/trunk/include/ptclib/pldap.h
ptlib/trunk/include/ptclib/pnat.h
ptlib/trunk/include/ptclib/podbc.h
ptlib/trunk/include/ptclib/psasl.h
ptlib/trunk/include/ptclib/psnmp.h
ptlib/trunk/include/ptclib/psoap.h
ptlib/trunk/include/ptclib/psockbun.h
ptlib/trunk/include/ptclib/pssl.h
ptlib/trunk/include/ptclib/pstun.h
ptlib/trunk/include/ptclib/ptts.h
ptlib/trunk/include/ptclib/pvfiledev.h
ptlib/trunk/include/ptclib/pvidfile.h
ptlib/trunk/include/ptclib/pwavfile.h
ptlib/trunk/include/ptclib/pwavfiledev.h
ptlib/trunk/include/ptclib/pxml.h
ptlib/trunk/include/ptclib/pxmlrpc.h
ptlib/trunk/include/ptclib/pxmlrpcs.h
ptlib/trunk/include/ptclib/qchannel.h
ptlib/trunk/include/ptclib/rfc1155.h
ptlib/trunk/include/ptclib/shttpsvc.h
ptlib/trunk/include/ptclib/snmp.h
ptlib/trunk/include/ptclib/sockagg.h
ptlib/trunk/include/ptclib/socks.h
ptlib/trunk/include/ptclib/telnet.h
ptlib/trunk/include/ptclib/url.h
ptlib/trunk/include/ptclib/vsdl.h
ptlib/trunk/include/ptclib/vxml.h
ptlib/trunk/include/ptclib/xmpp.h
ptlib/trunk/include/ptclib/xmpp_c2s.h
ptlib/trunk/include/ptclib/xmpp_muc.h
ptlib/trunk/include/ptclib/xmpp_roster.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/channel.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/conchan.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/ethsock.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/ptlib.inl
ptlib/trunk/include/ptlib/Nucleus++/ptlib/remconn.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/serchan.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/socket.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/sound.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/tcpsock.h
ptlib/trunk/include/ptlib/Nucleus++/ptlib/thread.h
ptlib/trunk/include/ptlib/args.h
ptlib/trunk/include/ptlib/array.h
ptlib/trunk/include/ptlib/channel.h
ptlib/trunk/include/ptlib/conchan.h
ptlib/trunk/include/ptlib/config.h
ptlib/trunk/include/ptlib/contain.h
ptlib/trunk/include/ptlib/contain.inl
ptlib/trunk/include/ptlib/critsec.h
ptlib/trunk/include/ptlib/dict.h
ptlib/trunk/include/ptlib/dynalink.h
ptlib/trunk/include/ptlib/ethsock.h
ptlib/trunk/include/ptlib/file.h
ptlib/trunk/include/ptlib/filepath.h
ptlib/trunk/include/ptlib/icmpsock.h
ptlib/trunk/include/ptlib/indchan.h
ptlib/trunk/include/ptlib/int64.h
ptlib/trunk/include/ptlib/ipdsock.h
ptlib/trunk/include/ptlib/ipsock.h
ptlib/trunk/include/ptlib/ipxsock.h
ptlib/trunk/include/ptlib/lists.h
ptlib/trunk/include/ptlib/mail.h
ptlib/trunk/include/ptlib/msos/ptlib/conchan.h
ptlib/trunk/include/ptlib/msos/ptlib/file.h
ptlib/trunk/include/ptlib/msos/ptlib/icmpsock.h
ptlib/trunk/include/ptlib/msos/ptlib/mail.h
ptlib/trunk/include/ptlib/msos/ptlib/pdirect.h
ptlib/trunk/include/ptlib/msos/ptlib/pipechan.h
ptlib/trunk/include/ptlib/msos/ptlib/pprocess.h
ptlib/trunk/include/ptlib/msos/ptlib/ptlib.inl
ptlib/trunk/include/ptlib/msos/ptlib/serchan.h
ptlib/trunk/include/ptlib/msos/ptlib/socket.h
ptlib/trunk/include/ptlib/msos/ptlib/sound.h
ptlib/trunk/include/ptlib/msos/ptlib/sound_directsound.h
ptlib/trunk/include/ptlib/msos/ptlib/sound_win32.h
ptlib/trunk/include/ptlib/msos/ptlib/svcproc.h
ptlib/trunk/include/ptlib/msos/ptlib/textfile.h
ptlib/trunk/include/ptlib/msos/ptlib/udpsock.h
ptlib/trunk/include/ptlib/msos/ptlib/video.h
ptlib/trunk/include/ptlib/msos/ptlib/videoio.h
ptlib/trunk/include/ptlib/msos/ptlib/vidinput_directx.h
ptlib/trunk/include/ptlib/notifier_ext.h
ptlib/trunk/include/ptlib/object.h
ptlib/trunk/include/ptlib/osutil.inl
ptlib/trunk/include/ptlib/pdirect.h
ptlib/trunk/include/ptlib/pfactory.h
ptlib/trunk/include/ptlib/pipechan.h
ptlib/trunk/include/ptlib/plugin.h
ptlib/trunk/include/ptlib/pluginmgr.h
ptlib/trunk/include/ptlib/pprocess.h
ptlib/trunk/include/ptlib/psharedptr.h
ptlib/trunk/include/ptlib/pstring.h
ptlib/trunk/include/ptlib/psync.h
ptlib/trunk/include/ptlib/ptime.h
ptlib/trunk/include/ptlib/remconn.h
ptlib/trunk/include/ptlib/safecoll.h
ptlib/trunk/include/ptlib/semaphor.h
ptlib/trunk/include/ptlib/serchan.h
ptlib/trunk/include/ptlib/sfile.h
ptlib/trunk/include/ptlib/smartptr.h
ptlib/trunk/include/ptlib/socket.h
ptlib/trunk/include/ptlib/sound.h
ptlib/trunk/include/ptlib/spxsock.h
ptlib/trunk/include/ptlib/svcproc.h
ptlib/trunk/include/ptlib/syncthrd.h
ptlib/trunk/include/ptlib/tcpsock.h
ptlib/trunk/include/ptlib/textfile.h
ptlib/trunk/include/ptlib/thread.h
ptlib/trunk/include/ptlib/timeint.h
ptlib/trunk/include/ptlib/timer.h
ptlib/trunk/include/ptlib/udpsock.h
ptlib/trunk/include/ptlib/unix/ptlib/beaudio.h
ptlib/trunk/include/ptlib/unix/ptlib/bevideo.h
ptlib/trunk/include/ptlib/unix/ptlib/channel.h
ptlib/trunk/include/ptlib/unix/ptlib/conchan.h
ptlib/trunk/include/ptlib/unix/ptlib/ethsock.h
ptlib/trunk/include/ptlib/unix/ptlib/icmpsock.h
ptlib/trunk/include/ptlib/unix/ptlib/maccoreaudio.h
ptlib/trunk/include/ptlib/unix/ptlib/mutex.h
ptlib/trunk/include/ptlib/unix/ptlib/pprocess.h
ptlib/trunk/include/ptlib/unix/ptlib/ptlib.inl
ptlib/trunk/include/ptlib/unix/ptlib/remconn.h
ptlib/trunk/include/ptlib/unix/ptlib/semaphor.h
ptlib/trunk/include/ptlib/unix/ptlib/serchan.h
ptlib/trunk/include/ptlib/unix/ptlib/shmvideo.h
ptlib/trunk/include/ptlib/unix/ptlib/socket.h
ptlib/trunk/include/ptlib/unix/ptlib/sound.h
ptlib/trunk/include/ptlib/unix/ptlib/svcproc.h
ptlib/trunk/include/ptlib/unix/ptlib/syncpoint.h
ptlib/trunk/include/ptlib/unix/ptlib/tcpsock.h
ptlib/trunk/include/ptlib/unix/ptlib/thread.h
ptlib/trunk/include/ptlib/unix/ptlib/video.h
ptlib/trunk/include/ptlib/unix/ptlib/videoio.h
ptlib/trunk/include/ptlib/vconvert.h
ptlib/trunk/include/ptlib/video.h
ptlib/trunk/include/ptlib/videoio.h
ptlib/trunk/include/ptlib/videoio1394dc.h
ptlib/trunk/include/ptlib/wince/mmsystemx.h
ptlib/trunk/include/ptlib/wince/snmp.h
ptlib/trunk/include/ptlib/wince/stdlibx.h
ptlib/trunk/plugins/sound_alsa/sound_alsa.cxx
ptlib/trunk/plugins/sound_alsa/sound_alsa.h
ptlib/trunk/plugins/sound_esd/sound_esd.cxx
ptlib/trunk/plugins/sound_esd/sound_esd.h
ptlib/trunk/plugins/sound_oss/sound_oss.cxx
ptlib/trunk/plugins/sound_oss/sound_oss.h
ptlib/trunk/plugins/sound_sunaudio/sound_sunaudio.cxx
ptlib/trunk/plugins/sound_sunaudio/sound_sunaudio.h
ptlib/trunk/plugins/vidinput_avc/vidinput_avc.cxx
ptlib/trunk/plugins/vidinput_avc/vidinput_avc.h
ptlib/trunk/plugins/vidinput_bsd/vidinput_bsd.cxx
ptlib/trunk/plugins/vidinput_bsd/vidinput_bsd.h
ptlib/trunk/plugins/vidinput_dc/video4dc1394.cxx
ptlib/trunk/plugins/vidinput_dc/videoio1394dc.h
ptlib/trunk/plugins/vidinput_v4l/vidinput_v4l.cxx
ptlib/trunk/plugins/vidinput_v4l/vidinput_v4l.h
ptlib/trunk/plugins/vidinput_v4l2/vidinput_v4l2.cxx
ptlib/trunk/plugins/vidinput_v4l2/vidinput_v4l2.h
ptlib/trunk/samples/ThreadSafe/main.cxx
ptlib/trunk/samples/address/local.cxx
ptlib/trunk/samples/aggtest/main.cxx
ptlib/trunk/samples/audio/audio.cxx
ptlib/trunk/samples/audio/audio.h
ptlib/trunk/samples/dnstest/main.cxx
ptlib/trunk/samples/dtmftest/main.cxx
ptlib/trunk/samples/emailtest/main.cxx
ptlib/trunk/samples/find_ip/find_ip.cxx
ptlib/trunk/samples/hello_world/helloDLL_2005.vcproj
ptlib/trunk/samples/hello_world/hello_2005.vcproj
ptlib/trunk/samples/ipv6test/main.cxx
ptlib/trunk/samples/ldaptest/main.cxx
ptlib/trunk/samples/md5/encrypt.cxx
ptlib/trunk/samples/ptimer/main.cxx
ptlib/trunk/samples/ptimer/main.h
ptlib/trunk/samples/safetest/main.cxx
ptlib/trunk/samples/safetest/main.h
ptlib/trunk/samples/serial/serial.cxx
ptlib/trunk/samples/strtest/main.cxx
ptlib/trunk/samples/thread/thread.cxx
ptlib/trunk/samples/threadex/main.cxx
ptlib/trunk/samples/threadex/main.h
ptlib/trunk/samples/vxmltest/main.cxx
ptlib/trunk/samples/vxmltest/main.h
ptlib/trunk/samples/xmlrpc/main.cxx
ptlib/trunk/samples/xmlrpcsrvr/main.cxx
ptlib/trunk/samples/xmlrpcsrvr/main.h
ptlib/trunk/samples/xmppconsole/main.cxx
ptlib/trunk/samples/xmppconsole/main.h
ptlib/trunk/samples/xmpptest/ConnectDialog.cxx
ptlib/trunk/samples/xmpptest/MainFrame.cxx
ptlib/trunk/samples/xmpptest/main.cxx
ptlib/trunk/src/ptclib/asnber.cxx
ptlib/trunk/src/ptclib/asner.cxx
ptlib/trunk/src/ptclib/asnper.cxx
ptlib/trunk/src/ptclib/asnxer.cxx
ptlib/trunk/src/ptclib/cypher.cxx
ptlib/trunk/src/ptclib/delaychan.cxx
ptlib/trunk/src/ptclib/enum.cxx
ptlib/trunk/src/ptclib/ftp.cxx
ptlib/trunk/src/ptclib/ftpclnt.cxx
ptlib/trunk/src/ptclib/ftpsrvr.cxx
ptlib/trunk/src/ptclib/guid.cxx
ptlib/trunk/src/ptclib/html.cxx
ptlib/trunk/src/ptclib/http.cxx
ptlib/trunk/src/ptclib/httpclnt.cxx
ptlib/trunk/src/ptclib/httpform.cxx
ptlib/trunk/src/ptclib/httpsrvr.cxx
ptlib/trunk/src/ptclib/httpsvc.cxx
ptlib/trunk/src/ptclib/inetmail.cxx
ptlib/trunk/src/ptclib/inetprot.cxx
ptlib/trunk/src/ptclib/ipacl.cxx
ptlib/trunk/src/ptclib/memfile.cxx
ptlib/trunk/src/ptclib/modem.cxx
ptlib/trunk/src/ptclib/pasn.cxx
ptlib/trunk/src/ptclib/pdns.cxx
ptlib/trunk/src/ptclib/pils.cxx
ptlib/trunk/src/ptclib/pldap.cxx
ptlib/trunk/src/ptclib/pnat.cxx
ptlib/trunk/src/ptclib/podbc.cxx
ptlib/trunk/src/ptclib/psasl.cxx
ptlib/trunk/src/ptclib/psoap.cxx
ptlib/trunk/src/ptclib/psockbun.cxx
ptlib/trunk/src/ptclib/pssl.cxx
ptlib/trunk/src/ptclib/pstun.cxx
ptlib/trunk/src/ptclib/ptts.cxx
ptlib/trunk/src/ptclib/pvfiledev.cxx
ptlib/trunk/src/ptclib/pvidfile.cxx
ptlib/trunk/src/ptclib/pwavfile.cxx
ptlib/trunk/src/ptclib/pwavfiledev.cxx
ptlib/trunk/src/ptclib/pxml.cxx
ptlib/trunk/src/ptclib/pxmlrpc.cxx
ptlib/trunk/src/ptclib/pxmlrpcs.cxx
ptlib/trunk/src/ptclib/qchannel.cxx
ptlib/trunk/src/ptclib/rfc1155.cxx
ptlib/trunk/src/ptclib/shttpsvc.cxx
ptlib/trunk/src/ptclib/snmp.cxx
ptlib/trunk/src/ptclib/snmpclnt.cxx
ptlib/trunk/src/ptclib/snmpserv.cxx
ptlib/trunk/src/ptclib/sockagg.cxx
ptlib/trunk/src/ptclib/socks.cxx
ptlib/trunk/src/ptclib/speex_echo/paec.cxx
ptlib/trunk/src/ptclib/telnet.cxx
ptlib/trunk/src/ptclib/vsdl.cxx
ptlib/trunk/src/ptclib/vxml.cxx
ptlib/trunk/src/ptclib/xmpp.cxx
ptlib/trunk/src/ptclib/xmpp_c2s.cxx
ptlib/trunk/src/ptclib/xmpp_muc.cxx
ptlib/trunk/src/ptclib/xmpp_roster.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusChannel.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusConChan.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusConfig.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusPDirectory.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusPFile.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusPFilePath.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusPTime.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusPtlib.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusSemaphore.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusSoundBite.cxx
ptlib/trunk/src/ptlib/Nucleus++/NucleusThread.cxx
ptlib/trunk/src/ptlib/Nucleus++/socket.cxx
ptlib/trunk/src/ptlib/common/collect.cxx
ptlib/trunk/src/ptlib/common/contain.cxx
ptlib/trunk/src/ptlib/common/notifier_ext.cxx
ptlib/trunk/src/ptlib/common/object.cxx
ptlib/trunk/src/ptlib/common/osutils.cxx
ptlib/trunk/src/ptlib/common/pchannel.cxx
ptlib/trunk/src/ptlib/common/pconfig.cxx
ptlib/trunk/src/ptlib/common/pethsock.cxx
ptlib/trunk/src/ptlib/common/pipechan.cxx
ptlib/trunk/src/ptlib/common/pluginmgr.cxx
ptlib/trunk/src/ptlib/common/ptime.cxx
ptlib/trunk/src/ptlib/common/pvidchan.cxx
ptlib/trunk/src/ptlib/common/safecoll.cxx
ptlib/trunk/src/ptlib/common/serial.cxx
ptlib/trunk/src/ptlib/common/sfile.cxx
ptlib/trunk/src/ptlib/common/sockets.cxx
ptlib/trunk/src/ptlib/common/sound.cxx
ptlib/trunk/src/ptlib/common/vconvert.cxx
ptlib/trunk/src/ptlib/common/vfakeio.cxx
ptlib/trunk/src/ptlib/common/videoio.cxx
ptlib/trunk/src/ptlib/msos/assert.cxx
ptlib/trunk/src/ptlib/msos/dossock.cxx
ptlib/trunk/src/ptlib/msos/doswin.cxx
ptlib/trunk/src/ptlib/msos/ethsock.cxx
ptlib/trunk/src/ptlib/msos/icmp.cxx
ptlib/trunk/src/ptlib/msos/mail.cxx
ptlib/trunk/src/ptlib/msos/msdos.cxx
ptlib/trunk/src/ptlib/msos/mswin.cxx
ptlib/trunk/src/ptlib/msos/pipe.cxx
ptlib/trunk/src/ptlib/msos/ptlib.cxx
ptlib/trunk/src/ptlib/msos/remconn.cxx
ptlib/trunk/src/ptlib/msos/sound_directsound.cxx
ptlib/trunk/src/ptlib/msos/sound_win32.cxx
ptlib/trunk/src/ptlib/msos/svcproc.cxx
ptlib/trunk/src/ptlib/msos/vfw.cxx
ptlib/trunk/src/ptlib/msos/vidinput_directx.cxx
ptlib/trunk/src/ptlib/msos/win32.cxx
ptlib/trunk/src/ptlib/msos/wincfg.cxx
ptlib/trunk/src/ptlib/msos/winserial.cxx
ptlib/trunk/src/ptlib/msos/winsock.cxx
ptlib/trunk/src/ptlib/unix/assert.cxx
ptlib/trunk/src/ptlib/unix/beaudio.cxx
ptlib/trunk/src/ptlib/unix/channel.cxx
ptlib/trunk/src/ptlib/unix/config.cxx
ptlib/trunk/src/ptlib/unix/dummyaudio.cxx
ptlib/trunk/src/ptlib/unix/dummyvideo.cxx
ptlib/trunk/src/ptlib/unix/maccoreaudio/circular_buffer.inl
ptlib/trunk/src/ptlib/unix/maccoreaudio/mute_hack.inl
ptlib/trunk/src/ptlib/unix/maccoreaudio.cxx
ptlib/trunk/src/ptlib/unix/macosaudio/SoundMangler.cxx
ptlib/trunk/src/ptlib/unix/macosaudio.cxx
ptlib/trunk/src/ptlib/unix/ossaix.cxx
ptlib/trunk/src/ptlib/unix/osutil.cxx
ptlib/trunk/src/ptlib/unix/pipechan.cxx
ptlib/trunk/src/ptlib/unix/qsa.cxx
ptlib/trunk/src/ptlib/unix/remconn.cxx
ptlib/trunk/src/ptlib/unix/serchan.cxx
ptlib/trunk/src/ptlib/unix/shmvideo.cxx
ptlib/trunk/src/ptlib/unix/socket.cxx
ptlib/trunk/src/ptlib/unix/sunaudio.cxx
ptlib/trunk/src/ptlib/unix/svcproc.cxx
ptlib/trunk/src/ptlib/unix/switch.cxx
ptlib/trunk/src/ptlib/unix/tlib.cxx
ptlib/trunk/src/ptlib/unix/tlibbe.cxx
ptlib/trunk/src/ptlib/unix/tlibmpthrd.cxx
ptlib/trunk/src/ptlib/unix/tlibthrd.cxx
ptlib/trunk/src/ptlib/unix/tlibvx.cxx
ptlib/trunk/src/ptlib/unix/udll.cxx
ptlib/trunk/src/ptlib/unix/uicmp.cxx
ptlib/trunk/src/ptlib/unix/video4beos.cxx
ptlib/trunk/src/ptlib/unix/vxaudio.cxx
ptlib/trunk/src/ptlib/wince/ConsoleCE/cevfw.cpp
ptlib/trunk/src/ptlib/wince/ConsoleCE/snmpdummy.cpp
ptlib/trunk/src/ptlib/wince/ConsoleCE/stdlibx.cpp
ptlib/trunk/src/ptlib/wince/ConsoleCE/time.cpp
ptlib/trunk/tools/MergeSym/MergeSym.cxx
ptlib/trunk/tools/StringTest/main.cxx
ptlib/trunk/tools/asnparser/main.cxx
ptlib/trunk/tools/asnparser/main.h
ptlib/trunk/tools/plugintest/main.cxx
ptlib/trunk/version.h
Modified: ptlib/trunk/ReadMe_QOS.txt
===================================================================
--- ptlib/trunk/ReadMe_QOS.txt 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/ReadMe_QOS.txt 2007-11-29 09:17:41 UTC (rev 19008)
@@ -8,7 +8,7 @@
============
Update 25.4.05:
802.1p/q is now supported natively however is disabled
-To enable set the Static PUDPSocket::disableQoS = FALSE;
+To enable set the Static PUDPSocket::disableQoS = PFalse;
QoS support is now negotiated between the calling parties
and will only functions when both parties have.
Modified: ptlib/trunk/configure
===================================================================
--- ptlib/trunk/configure 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/configure 2007-11-29 09:17:41 UTC (rev 19008)
@@ -1332,6 +1332,7 @@
--enable-minsize minimise the size of the lib by disabling least used options
--enable-openh323 include only options needed with openh323
--enable-opal include only options needed with opal
+ --disable-ansi-bool Use Windows-like integer BOOL over ANSI C++ bool
--enable-internalregex force internal regex library
--enable-plugins enable plugin support
--disable-resolver disable DNS resolver support
@@ -4869,6 +4870,26 @@
+# Check whether --enable-ansi-bool or --disable-ansi-bool was given.
+if test "${enable_ansi_bool+set}" = set; then
+ enableval="$enable_ansi_bool"
+
+fi;
+
+if test "${enable_ansi_bool}x" = "x" ; then
+ { echo "$as_me:$LINENO: Using ANSI C++ bool for PBoolean: (PFalse=false PTrue=true)" >&5
+echo "$as_me: Using ANSI C++ bool for PBoolean: (PFalse=false PTrue=true)" >&6;}
+ cat >>confdefs.h <<\_ACEOF
+#define P_USE_STANDARD_CXX_BOOL 1
+_ACEOF
+
+else
+ { echo "$as_me:$LINENO: Using Windows-like integer BOOL for PBoolean: (PFalse=0 PTrue=1)" >&5
+echo "$as_me: Using Windows-like integer BOOL for PBoolean: (PFalse=0 PTrue=1)" >&6;}
+fi
+
+
+
P_HAS_RECVMSG=
{ echo "$as_me:$LINENO: checking for recvmsg" >&5
echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6; }
Modified: ptlib/trunk/configure.ac
===================================================================
--- ptlib/trunk/configure.ac 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/configure.ac 2007-11-29 09:17:41 UTC (rev 19008)
@@ -630,6 +630,23 @@
dnl ########################################################################
+dnl check for Windows-like integer BOOL
+dnl
+dnl MSWIN_DISPLAY ansi-bool,ANSI C++ bool
+dnl MSWIN_DEFINE ansi-bool,P_USE_STANDARD_CXX_BOOL
+
+AC_ARG_ENABLE(ansi-bool,
+ [ --disable-ansi-bool Use Windows-like integer BOOL over ANSI C++ bool])
+
+if test "${enable_ansi_bool}x" = "x" ; then
+ AC_MSG_NOTICE(Using ANSI C++ bool for PBoolean: (PFalse=false PTrue=true))
+ AC_DEFINE(P_USE_STANDARD_CXX_BOOL)
+else
+ AC_MSG_NOTICE(Using Windows-like integer BOOL for PBoolean: (PFalse=0 PTrue=1))
+fi
+
+
+dnl ########################################################################
dnl check for recvmsg
P_HAS_RECVMSG=
Modified: ptlib/trunk/include/ptbuildopts.h.in
===================================================================
--- ptlib/trunk/include/ptbuildopts.h.in 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptbuildopts.h.in 2007-11-29 09:17:41 UTC (rev 19008)
@@ -576,6 +576,11 @@
#undef P_HAS_UPAD128_T
#undef P_HAS_INET_NTOP
+#undef P_USE_STANDARD_CXX_BOOL
+#if !defined(P_USE_STANDARD_CXX_BOOL)
+# define P_USE_INTEGER_BOOL
+#endif
+
#endif // _PT_BUILDOPTS_H
Modified: ptlib/trunk/include/ptclib/asnber.h
===================================================================
--- ptlib/trunk/include/ptclib/asnber.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/asnber.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -21,49 +21,49 @@
PBER_Stream & operator=(const PBYTEArray & bytes);
- virtual BOOL Read(PChannel & chan);
- virtual BOOL Write(PChannel & chan);
+ virtual PBoolean Read(PChannel & chan);
+ virtual PBoolean Write(PChannel & chan);
- virtual BOOL NullDecode(PASN_Null &);
+ virtual PBoolean NullDecode(PASN_Null &);
virtual void NullEncode(const PASN_Null &);
- virtual BOOL BooleanDecode(PASN_Boolean &);
+ virtual PBoolean BooleanDecode(PASN_Boolean &);
virtual void BooleanEncode(const PASN_Boolean &);
- virtual BOOL IntegerDecode(PASN_Integer &);
+ virtual PBoolean IntegerDecode(PASN_Integer &);
virtual void IntegerEncode(const PASN_Integer &);
- virtual BOOL EnumerationDecode(PASN_Enumeration &);
+ virtual PBoolean EnumerationDecode(PASN_Enumeration &);
virtual void EnumerationEncode(const PASN_Enumeration &);
- virtual BOOL RealDecode(PASN_Real &);
+ virtual PBoolean RealDecode(PASN_Real &);
virtual void RealEncode(const PASN_Real &);
- virtual BOOL ObjectIdDecode(PASN_ObjectId &);
+ virtual PBoolean ObjectIdDecode(PASN_ObjectId &);
virtual void ObjectIdEncode(const PASN_ObjectId &);
- virtual BOOL BitStringDecode(PASN_BitString &);
+ virtual PBoolean BitStringDecode(PASN_BitString &);
virtual void BitStringEncode(const PASN_BitString &);
- virtual BOOL OctetStringDecode(PASN_OctetString &);
+ virtual PBoolean OctetStringDecode(PASN_OctetString &);
virtual void OctetStringEncode(const PASN_OctetString &);
- virtual BOOL ConstrainedStringDecode(PASN_ConstrainedString &);
+ virtual PBoolean ConstrainedStringDecode(PASN_ConstrainedString &);
virtual void ConstrainedStringEncode(const PASN_ConstrainedString &);
- virtual BOOL BMPStringDecode(PASN_BMPString &);
+ virtual PBoolean BMPStringDecode(PASN_BMPString &);
virtual void BMPStringEncode(const PASN_BMPString &);
- virtual BOOL ChoiceDecode(PASN_Choice &);
+ virtual PBoolean ChoiceDecode(PASN_Choice &);
virtual void ChoiceEncode(const PASN_Choice &);
- virtual BOOL ArrayDecode(PASN_Array &);
+ virtual PBoolean ArrayDecode(PASN_Array &);
virtual void ArrayEncode(const PASN_Array &);
- virtual BOOL SequencePreambleDecode(PASN_Sequence &);
+ virtual PBoolean SequencePreambleDecode(PASN_Sequence &);
virtual void SequencePreambleEncode(const PASN_Sequence &);
- virtual BOOL SequenceKnownDecode(PASN_Sequence &, PINDEX, PASN_Object &);
+ virtual PBoolean SequenceKnownDecode(PASN_Sequence &, PINDEX, PASN_Object &);
virtual void SequenceKnownEncode(const PASN_Sequence &, PINDEX, const PASN_Object &);
- virtual BOOL SequenceUnknownDecode(PASN_Sequence &);
+ virtual PBoolean SequenceUnknownDecode(PASN_Sequence &);
virtual void SequenceUnknownEncode(const PASN_Sequence &);
virtual PASN_Object * CreateObject(unsigned tag,
PASN_Object::TagClass tagClass,
- BOOL primitive) const;
+ PBoolean primitive) const;
- BOOL HeaderDecode(unsigned & tagVal,
+ PBoolean HeaderDecode(unsigned & tagVal,
PASN_Object::TagClass & tagClass,
- BOOL & primitive,
+ PBoolean & primitive,
unsigned & len);
- BOOL HeaderDecode(PASN_Object & obj, unsigned & len);
+ PBoolean HeaderDecode(PASN_Object & obj, unsigned & len);
void HeaderEncode(const PASN_Object & obj);
};
Modified: ptlib/trunk/include/ptclib/asner.h
===================================================================
--- ptlib/trunk/include/ptclib/asner.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/asner.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -68,13 +68,13 @@
PINDEX GetObjectLength() const;
virtual PINDEX GetDataLength() const = 0;
- virtual BOOL IsPrimitive() const { return TRUE; }
+ virtual PBoolean IsPrimitive() const { return PTrue; }
- virtual BOOL Decode(PASN_Stream &) = 0;
+ virtual PBoolean Decode(PASN_Stream &) = 0;
virtual void Encode(PASN_Stream &) const = 0;
- BOOL IsExtendable() const { return extendable; }
- void SetExtendable(BOOL ext = TRUE) { extendable = ext; }
+ PBoolean IsExtendable() const { return extendable; }
+ void SetExtendable(PBoolean ext = PTrue) { extendable = ext; }
enum TagClass {
UniversalTagClass,
@@ -148,10 +148,10 @@
static void SetMaximumStringSize(PINDEX sz);
protected:
- PASN_Object(unsigned tag, TagClass tagClass, BOOL extend = FALSE);
+ PASN_Object(unsigned tag, TagClass tagClass, PBoolean extend = PFalse);
/// PER extension capability
- BOOL extendable;
+ PBoolean extendable;
/// BER tag class
TagClass tagClass;
/// ASN object tag
@@ -165,14 +165,14 @@
{
PCLASSINFO(PASN_ConstrainedObject, PASN_Object);
public:
- BOOL IsConstrained() const { return constraint != Unconstrained; }
+ PBoolean IsConstrained() const { return constraint != Unconstrained; }
int GetLowerLimit() const { return lowerLimit; }
unsigned GetUpperLimit() const { return upperLimit; }
- BOOL ConstrainedLengthDecode(PPER_Stream & strm, unsigned & length);
+ PBoolean ConstrainedLengthDecode(PPER_Stream & strm, unsigned & length);
void ConstrainedLengthEncode(PPER_Stream & strm, unsigned length) const;
- BOOL ConstraintEncode(PPER_Stream & strm, unsigned value) const;
+ PBoolean ConstraintEncode(PPER_Stream & strm, unsigned value) const;
protected:
virtual void SetConstraintBounds(ConstraintType type, int lower, unsigned upper);
@@ -199,7 +199,7 @@
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
};
@@ -210,13 +210,13 @@
{
PCLASSINFO(PASN_Boolean, PASN_Object);
public:
- PASN_Boolean(BOOL val = FALSE);
- PASN_Boolean(unsigned tag, TagClass tagClass, BOOL val = FALSE);
+ PASN_Boolean(PBoolean val = PFalse);
+ PASN_Boolean(unsigned tag, TagClass tagClass, PBoolean val = PFalse);
- PASN_Boolean & operator=(BOOL v) { value = v; return *this; }
- operator BOOL() const { return value; }
- BOOL GetValue() const { return value; }
- void SetValue(BOOL v) { value = v; }
+ PASN_Boolean & operator=(PBoolean v) { value = v; return *this; }
+ operator PBoolean() const { return value; }
+ PBoolean GetValue() const { return value; }
+ void SetValue(PBoolean v) { value = v; }
virtual Comparison Compare(const PObject & obj) const;
virtual PObject * Clone() const;
@@ -224,11 +224,11 @@
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
protected:
- BOOL value;
+ PBoolean value;
};
@@ -253,15 +253,15 @@
virtual void SetConstraintBounds(ConstraintType type, int lower, unsigned upper);
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
#ifdef P_INCLUDE_PER
- BOOL DecodePER(PPER_Stream & strm);
+ PBoolean DecodePER(PPER_Stream & strm);
void EncodePER(PPER_Stream & strm) const;
#endif
- BOOL IsUnsigned() const;
+ PBoolean IsUnsigned() const;
protected:
unsigned value;
@@ -282,12 +282,12 @@
PASN_Enumeration(unsigned tag,
TagClass tagClass,
unsigned nEnums = P_MAX_INDEX,
- BOOL extendable = FALSE,
+ PBoolean extendable = PFalse,
unsigned val = 0);
PASN_Enumeration(unsigned tag,
TagClass tagClass,
unsigned nEnums,
- BOOL extendable,
+ PBoolean extendable,
const PASN_Names * nameSpec,
unsigned namesCnt,
unsigned val = 0);
@@ -305,16 +305,16 @@
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
#ifdef P_INCLUDE_PER
- BOOL DecodePER(PPER_Stream & strm);
+ PBoolean DecodePER(PPER_Stream & strm);
void EncodePER(PPER_Stream & strm) const;
#endif
#ifdef P_INCLUDE_XER
- virtual BOOL DecodeXER(PXER_Stream & strm);
+ virtual PBoolean DecodeXER(PXER_Stream & strm);
virtual void EncodeXER(PXER_Stream & strm) const;
#endif
@@ -347,7 +347,7 @@
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
protected:
@@ -391,10 +391,10 @@
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
- BOOL CommonDecode(PASN_Stream & strm, unsigned dataLen);
+ PBoolean CommonDecode(PASN_Stream & strm, unsigned dataLen);
void CommonEncode(PBYTEArray & eObjId) const;
protected:
@@ -420,7 +420,7 @@
const BYTE * GetDataPointer() const { return bitData; }
unsigned GetSize() const { return totalBits; }
- BOOL SetSize(unsigned nBits);
+ PBoolean SetSize(unsigned nBits);
bool operator[](PINDEX bit) const;
void Set(unsigned bit);
@@ -434,20 +434,20 @@
virtual void SetConstraintBounds(ConstraintType type, int lower, unsigned upper);
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
#ifdef P_INCLUDE_BER
- BOOL DecodeBER(PBER_Stream & strm, unsigned len);
+ PBoolean DecodeBER(PBER_Stream & strm, unsigned len);
void EncodeBER(PBER_Stream & strm) const;
#endif
#ifdef P_INCLUDE_PER
- BOOL DecodePER(PPER_Stream & strm);
+ PBoolean DecodePER(PPER_Stream & strm);
void EncodePER(PPER_Stream & strm) const;
#endif
- BOOL DecodeSequenceExtensionBitmap(PPER_Stream & strm);
+ PBoolean DecodeSequenceExtensionBitmap(PPER_Stream & strm);
void EncodeSequenceExtensionBitmap(PPER_Stream & strm) const;
protected:
@@ -483,7 +483,7 @@
BYTE & operator[](PINDEX i) { return value[i]; }
BYTE * GetPointer(PINDEX sz = 0) { return value.GetPointer(sz); }
PINDEX GetSize() const { return value.GetSize(); }
- BOOL SetSize(PINDEX newSize);
+ PBoolean SetSize(PINDEX newSize);
virtual Comparison Compare(const PObject & obj) const;
virtual PObject * Clone() const;
@@ -492,15 +492,15 @@
virtual void SetConstraintBounds(ConstraintType type, int lower, unsigned upper);
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
#ifdef P_INCLUDE_PER
- BOOL DecodePER(PPER_Stream & strm);
+ PBoolean DecodePER(PPER_Stream & strm);
void EncodePER(PPER_Stream & strm) const;
#endif
- BOOL DecodeSubType(PASN_Object &) const;
+ PBoolean DecodeSubType(PASN_Object &) const;
void EncodeSubType(const PASN_Object &);
protected:
@@ -531,16 +531,16 @@
virtual void SetConstraintBounds(ConstraintType type, int lower, unsigned upper);
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
#ifdef P_INCLUDE_BER
- BOOL DecodeBER(PBER_Stream & strm, unsigned len);
+ PBoolean DecodeBER(PBER_Stream & strm, unsigned len);
void EncodeBER(PBER_Stream & strm) const;
#endif
#ifdef P_INCLUDE_PER
- BOOL DecodePER(PPER_Stream & strm);
+ PBoolean DecodePER(PPER_Stream & strm);
void EncodePER(PPER_Stream & strm) const;
#endif
@@ -612,22 +612,22 @@
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
#ifdef P_INCLUDE_BER
- BOOL DecodeBER(PBER_Stream & strm, unsigned len);
+ PBoolean DecodeBER(PBER_Stream & strm, unsigned len);
void EncodeBER(PBER_Stream & strm) const;
#endif
#ifdef P_INCLUDE_PER
- BOOL DecodePER(PPER_Stream & strm);
+ PBoolean DecodePER(PPER_Stream & strm);
void EncodePER(PPER_Stream & strm) const;
#endif
protected:
void Construct();
- BOOL IsLegalCharacter(WORD ch);
+ PBoolean IsLegalCharacter(WORD ch);
PWCharArray value;
PWCharArray characterSet;
@@ -684,7 +684,7 @@
virtual void SetTag(unsigned newTag, TagClass tagClass = DefaultTagClass);
PString GetTagName() const;
PASN_Object & GetObject() const;
- BOOL IsValid() const { return choice != NULL; }
+ PBoolean IsValid() const { return choice != NULL; }
#if defined(__GNUC__) && __GNUC__ <= 2 && __GNUC_MINOR__ < 9
@@ -740,24 +740,24 @@
#endif
- virtual BOOL CreateObject() = 0;
+ virtual PBoolean CreateObject() = 0;
virtual Comparison Compare(const PObject & obj) const;
virtual void PrintOn(ostream & strm) const;
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL IsPrimitive() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean IsPrimitive() const;
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
#ifdef P_INCLUDE_PER
- virtual BOOL DecodePER(PPER_Stream &);
+ virtual PBoolean DecodePER(PPER_Stream &);
virtual void EncodePER(PPER_Stream &) const;
#endif
#ifdef P_INCLUDE_XER
- BOOL DecodeXER(PXER_Stream &);
+ PBoolean DecodeXER(PXER_Stream &);
void EncodeXER(PXER_Stream &) const;
#endif
@@ -765,13 +765,13 @@
PINDEX GetValueByName(PString name) const;
protected:
- PASN_Choice(unsigned nChoices = 0, BOOL extend = FALSE);
- PASN_Choice(unsigned tag, TagClass tagClass, unsigned nChoices, BOOL extend);
- PASN_Choice(unsigned tag, TagClass tagClass, unsigned nChoices, BOOL extend, const PASN_Names * nameSpec,unsigned namesCnt);
+ PASN_Choice(unsigned nChoices = 0, PBoolean extend = PFalse);
+ PASN_Choice(unsigned tag, TagClass tagClass, unsigned nChoices, PBoolean extend);
+ PASN_Choice(unsigned tag, TagClass tagClass, unsigned nChoices, PBoolean extend, const PASN_Names * nameSpec,unsigned namesCnt);
PASN_Choice(const PASN_Choice & other);
- BOOL CheckCreate() const;
+ PBoolean CheckCreate() const;
unsigned numChoices;
PASN_Object * choice;
@@ -791,16 +791,16 @@
public:
PASN_Sequence(unsigned tag = UniversalSequence,
TagClass tagClass = UniversalTagClass,
- unsigned nOpts = 0, BOOL extend = FALSE, unsigned nExtend = 0);
+ unsigned nOpts = 0, PBoolean extend = PFalse, unsigned nExtend = 0);
PASN_Sequence(const PASN_Sequence & other);
PASN_Sequence & operator=(const PASN_Sequence & other);
PINDEX GetSize() const { return fields.GetSize(); }
- BOOL SetSize(PINDEX newSize);
+ PBoolean SetSize(PINDEX newSize);
PASN_Object & operator[](PINDEX i) const { return fields[i]; }
- BOOL HasOptionalField(PINDEX opt) const;
+ PBoolean HasOptionalField(PINDEX opt) const;
void IncludeOptionalField(PINDEX opt);
void RemoveOptionalField(PINDEX opt);
@@ -810,47 +810,47 @@
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL IsPrimitive() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean IsPrimitive() const;
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
- BOOL PreambleDecode(PASN_Stream & strm);
+ PBoolean PreambleDecode(PASN_Stream & strm);
void PreambleEncode(PASN_Stream & strm) const;
- BOOL KnownExtensionDecode(PASN_Stream & strm, PINDEX fld, PASN_Object & field);
+ PBoolean KnownExtensionDecode(PASN_Stream & strm, PINDEX fld, PASN_Object & field);
void KnownExtensionEncode(PASN_Stream & strm, PINDEX fld, const PASN_Object & field) const;
- BOOL UnknownExtensionsDecode(PASN_Stream & strm);
+ PBoolean UnknownExtensionsDecode(PASN_Stream & strm);
void UnknownExtensionsEncode(PASN_Stream & strm) const;
#ifdef P_INCLUDE_BER
- BOOL PreambleDecodeBER(PBER_Stream & strm);
+ PBoolean PreambleDecodeBER(PBER_Stream & strm);
void PreambleEncodeBER(PBER_Stream & strm) const;
- BOOL KnownExtensionDecodeBER(PBER_Stream & strm, PINDEX fld, PASN_Object & field);
+ PBoolean KnownExtensionDecodeBER(PBER_Stream & strm, PINDEX fld, PASN_Object & field);
void KnownExtensionEncodeBER(PBER_Stream & strm, PINDEX fld, const PASN_Object & field) const;
- BOOL UnknownExtensionsDecodeBER(PBER_Stream & strm);
+ PBoolean UnknownExtensionsDecodeBER(PBER_Stream & strm);
void UnknownExtensionsEncodeBER(PBER_Stream & strm) const;
#endif
#ifdef P_INCLUDE_PER
- BOOL PreambleDecodePER(PPER_Stream & strm);
+ PBoolean PreambleDecodePER(PPER_Stream & strm);
void PreambleEncodePER(PPER_Stream & strm) const;
- BOOL KnownExtensionDecodePER(PPER_Stream & strm, PINDEX fld, PASN_Object & field);
+ PBoolean KnownExtensionDecodePER(PPER_Stream & strm, PINDEX fld, PASN_Object & field);
void KnownExtensionEncodePER(PPER_Stream & strm, PINDEX fld, const PASN_Object & field) const;
- BOOL UnknownExtensionsDecodePER(PPER_Stream & strm);
+ PBoolean UnknownExtensionsDecodePER(PPER_Stream & strm);
void UnknownExtensionsEncodePER(PPER_Stream & strm) const;
#endif
#ifdef P_INCLUDE_XER
- virtual BOOL PreambleDecodeXER(PXER_Stream & strm);
+ virtual PBoolean PreambleDecodeXER(PXER_Stream & strm);
virtual void PreambleEncodeXER(PXER_Stream & strm) const;
- virtual BOOL KnownExtensionDecodeXER(PXER_Stream & strm, PINDEX fld, PASN_Object & field);
+ virtual PBoolean KnownExtensionDecodeXER(PXER_Stream & strm, PINDEX fld, PASN_Object & field);
virtual void KnownExtensionEncodeXER(PXER_Stream & strm, PINDEX fld, const PASN_Object & field) const;
- virtual BOOL UnknownExtensionsDecodeXER(PXER_Stream & strm);
+ virtual PBoolean UnknownExtensionsDecodeXER(PXER_Stream & strm);
virtual void UnknownExtensionsEncodeXER(PXER_Stream & strm) const;
#endif
protected:
- BOOL NoExtensionsToDecode(PPER_Stream & strm);
- BOOL NoExtensionsToEncode(PPER_Stream & strm);
+ PBoolean NoExtensionsToDecode(PPER_Stream & strm);
+ PBoolean NoExtensionsToEncode(PPER_Stream & strm);
PASN_ObjectArray fields;
PASN_BitString optionMap;
@@ -869,7 +869,7 @@
public:
PASN_Set(unsigned tag = UniversalSet,
TagClass tagClass = UniversalTagClass,
- unsigned nOpts = 0, BOOL extend = FALSE, unsigned nExtend = 0);
+ unsigned nOpts = 0, PBoolean extend = PFalse, unsigned nExtend = 0);
virtual PObject * Clone() const;
virtual PString GetTypeAsString() const;
@@ -883,7 +883,7 @@
PCLASSINFO(PASN_Array, PASN_ConstrainedObject);
public:
PINDEX GetSize() const { return array.GetSize(); }
- BOOL SetSize(PINDEX newSize);
+ PBoolean SetSize(PINDEX newSize);
PASN_Object & operator[](PINDEX i) const { return array[i]; }
void Append(PASN_Object * obj) { array.SetAt(array.GetSize(), obj); }
void RemoveAt(PINDEX i) { array.RemoveAt(i); }
@@ -895,8 +895,8 @@
virtual void SetConstraintBounds(ConstraintType type, int lower, unsigned upper);
virtual PString GetTypeAsString() const;
virtual PINDEX GetDataLength() const;
- virtual BOOL IsPrimitive() const;
- virtual BOOL Decode(PASN_Stream &);
+ virtual PBoolean IsPrimitive() const;
+ virtual PBoolean Decode(PASN_Stream &);
virtual void Encode(PASN_Stream &) const;
virtual PASN_Object * CreateObject() const = 0;
@@ -929,43 +929,43 @@
PINDEX GetPosition() const { return byteOffset; }
void SetPosition(PINDEX newPos);
- BOOL IsAtEnd() { return byteOffset >= GetSize(); }
+ PBoolean IsAtEnd() { return byteOffset >= GetSize(); }
void ResetDecoder();
void BeginEncoding();
void CompleteEncoding();
- virtual BOOL Read(PChannel & chan) = 0;
- virtual BOOL Write(PChannel & chan) = 0;
+ virtual PBoolean Read(PChannel & chan) = 0;
+ virtual PBoolean Write(PChannel & chan) = 0;
- virtual BOOL NullDecode(PASN_Null &) = 0;
+ virtual PBoolean NullDecode(PASN_Null &) = 0;
virtual void NullEncode(const PASN_Null &) = 0;
- virtual BOOL BooleanDecode(PASN_Boolean &) = 0;
+ virtual PBoolean BooleanDecode(PASN_Boolean &) = 0;
virtual void BooleanEncode(const PASN_Boolean &) = 0;
- virtual BOOL IntegerDecode(PASN_Integer &) = 0;
+ virtual PBoolean IntegerDecode(PASN_Integer &) = 0;
virtual void IntegerEncode(const PASN_Integer &) = 0;
- virtual BOOL EnumerationDecode(PASN_Enumeration &) = 0;
+ virtual PBoolean EnumerationDecode(PASN_Enumeration &) = 0;
virtual void EnumerationEncode(const PASN_Enumeration &) = 0;
- virtual BOOL RealDecode(PASN_Real &) = 0;
+ virtual PBoolean RealDecode(PASN_Real &) = 0;
virtual void RealEncode(const PASN_Real &) = 0;
- virtual BOOL ObjectIdDecode(PASN_ObjectId &) = 0;
+ virtual PBoolean ObjectIdDecode(PASN_ObjectId &) = 0;
virtual void ObjectIdEncode(const PASN_ObjectId &) = 0;
- virtual BOOL BitStringDecode(PASN_BitString &) = 0;
+ virtual PBoolean BitStringDecode(PASN_BitString &) = 0;
virtual void BitStringEncode(const PASN_BitString &) = 0;
- virtual BOOL OctetStringDecode(PASN_OctetString &) = 0;
+ virtual PBoolean OctetStringDecode(PASN_OctetString &) = 0;
virtual void OctetStringEncode(const PASN_OctetString &) = 0;
- virtual BOOL ConstrainedStringDecode(PASN_ConstrainedString &) = 0;
+ virtual PBoolean ConstrainedStringDecode(PASN_ConstrainedString &) = 0;
virtual void ConstrainedStringEncode(const PASN_ConstrainedString &) = 0;
- virtual BOOL BMPStringDecode(PASN_BMPString &) = 0;
+ virtual PBoolean BMPStringDecode(PASN_BMPString &) = 0;
virtual void BMPStringEncode(const PASN_BMPString &) = 0;
- virtual BOOL ChoiceDecode(PASN_Choice &) = 0;
+ virtual PBoolean ChoiceDecode(PASN_Choice &) = 0;
virtual void ChoiceEncode(const PASN_Choice &) = 0;
- virtual BOOL ArrayDecode(PASN_Array &) = 0;
+ virtual PBoolean ArrayDecode(PASN_Array &) = 0;
virtual void ArrayEncode(const PASN_Array &) = 0;
- virtual BOOL SequencePreambleDecode(PASN_Sequence &) = 0;
+ virtual PBoolean SequencePreambleDecode(PASN_Sequence &) = 0;
virtual void SequencePreambleEncode(const PASN_Sequence &) = 0;
- virtual BOOL SequenceKnownDecode(PASN_Sequence &, PINDEX, PASN_Object &) = 0;
+ virtual PBoolean SequenceKnownDecode(PASN_Sequence &, PINDEX, PASN_Object &) = 0;
virtual void SequenceKnownEncode(const PASN_Sequence &, PINDEX, const PASN_Object &) = 0;
- virtual BOOL SequenceUnknownDecode(PASN_Sequence &) = 0;
+ virtual PBoolean SequenceUnknownDecode(PASN_Sequence &) = 0;
virtual void SequenceUnknownEncode(const PASN_Sequence &) = 0;
BYTE ByteDecode();
Modified: ptlib/trunk/include/ptclib/asnper.h
===================================================================
--- ptlib/trunk/include/ptclib/asnper.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/asnper.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -9,75 +9,76 @@
#ifdef P_INCLUDE_PER
+
/** Class for ASN Packed Encoding Rules stream.
*/
class PPER_Stream : public PASN_Stream
{
PCLASSINFO(PPER_Stream, PASN_Stream);
public:
- PPER_Stream(BOOL aligned = TRUE);
- PPER_Stream(const PBYTEArray & bytes, BOOL aligned = TRUE);
- PPER_Stream(const BYTE * buf, PINDEX size, BOOL aligned = TRUE);
+ PPER_Stream(int aligned = PTrue);
+ PPER_Stream(const BYTE * buf, PINDEX size, PBoolean aligned = PTrue);
+ PPER_Stream(const PBYTEArray & bytes, PBoolean aligned = PTrue);
PPER_Stream & operator=(const PBYTEArray & bytes);
unsigned GetBitsLeft() const;
- virtual BOOL Read(PChannel & chan);
- virtual BOOL Write(PChannel & chan);
+ virtual PBoolean Read(PChannel & chan);
+ virtual PBoolean Write(PChannel & chan);
- virtual BOOL NullDecode(PASN_Null &);
+ virtual PBoolean NullDecode(PASN_Null &);
virtual void NullEncode(const PASN_Null &);
- virtual BOOL BooleanDecode(PASN_Boolean &);
+ virtual PBoolean BooleanDecode(PASN_Boolean &);
virtual void BooleanEncode(const PASN_Boolean &);
- virtual BOOL IntegerDecode(PASN_Integer &);
+ virtual PBoolean IntegerDecode(PASN_Integer &);
virtual void IntegerEncode(const PASN_Integer &);
- virtual BOOL EnumerationDecode(PASN_Enumeration &);
+ virtual PBoolean EnumerationDecode(PASN_Enumeration &);
virtual void EnumerationEncode(const PASN_Enumeration &);
- virtual BOOL RealDecode(PASN_Real &);
+ virtual PBoolean RealDecode(PASN_Real &);
virtual void RealEncode(const PASN_Real &);
- virtual BOOL ObjectIdDecode(PASN_ObjectId &);
+ virtual PBoolean ObjectIdDecode(PASN_ObjectId &);
virtual void ObjectIdEncode(const PASN_ObjectId &);
- virtual BOOL BitStringDecode(PASN_BitString &);
+ virtual PBoolean BitStringDecode(PASN_BitString &);
virtual void BitStringEncode(const PASN_BitString &);
- virtual BOOL OctetStringDecode(PASN_OctetString &);
+ virtual PBoolean OctetStringDecode(PASN_OctetString &);
virtual void OctetStringEncode(const PASN_OctetString &);
- virtual BOOL ConstrainedStringDecode(PASN_ConstrainedString &);
+ virtual PBoolean ConstrainedStringDecode(PASN_ConstrainedString &);
virtual void ConstrainedStringEncode(const PASN_ConstrainedString &);
- virtual BOOL BMPStringDecode(PASN_BMPString &);
+ virtual PBoolean BMPStringDecode(PASN_BMPString &);
virtual void BMPStringEncode(const PASN_BMPString &);
- virtual BOOL ChoiceDecode(PASN_Choice &);
+ virtual PBoolean ChoiceDecode(PASN_Choice &);
virtual void ChoiceEncode(const PASN_Choice &);
- virtual BOOL ArrayDecode(PASN_Array &);
+ virtual PBoolean ArrayDecode(PASN_Array &);
virtual void ArrayEncode(const PASN_Array &);
- virtual BOOL SequencePreambleDecode(PASN_Sequence &);
+ virtual PBoolean SequencePreambleDecode(PASN_Sequence &);
virtual void SequencePreambleEncode(const PASN_Sequence &);
- virtual BOOL SequenceKnownDecode(PASN_Sequence &, PINDEX, PASN_Object &);
+ virtual PBoolean SequenceKnownDecode(PASN_Sequence &, PINDEX, PASN_Object &);
virtual void SequenceKnownEncode(const PASN_Sequence &, PINDEX, const PASN_Object &);
- virtual BOOL SequenceUnknownDecode(PASN_Sequence &);
+ virtual PBoolean SequenceUnknownDecode(PASN_Sequence &);
virtual void SequenceUnknownEncode(const PASN_Sequence &);
- BOOL IsAligned() const { return aligned; }
+ PBoolean IsAligned() const { return aligned; }
- BOOL SingleBitDecode();
- void SingleBitEncode(BOOL value);
+ PBoolean SingleBitDecode();
+ void SingleBitEncode(PBoolean value);
- BOOL MultiBitDecode(unsigned nBits, unsigned & value);
+ PBoolean MultiBitDecode(unsigned nBits, unsigned & value);
void MultiBitEncode(unsigned value, unsigned nBits);
- BOOL SmallUnsignedDecode(unsigned & value);
+ PBoolean SmallUnsignedDecode(unsigned & value);
void SmallUnsignedEncode(unsigned value);
- BOOL LengthDecode(unsigned lower, unsigned upper, unsigned & len);
+ PBoolean LengthDecode(unsigned lower, unsigned upper, unsigned & len);
void LengthEncode(unsigned len, unsigned lower, unsigned upper);
- BOOL UnsignedDecode(unsigned lower, unsigned upper, unsigned & value);
+ PBoolean UnsignedDecode(unsigned lower, unsigned upper, unsigned & value);
void UnsignedEncode(int value, unsigned lower, unsigned upper);
void AnyTypeEncode(const PASN_Object * value);
protected:
- BOOL aligned;
+ PBoolean aligned;
};
#endif
Modified: ptlib/trunk/include/ptclib/asnxer.h
===================================================================
--- ptlib/trunk/include/ptclib/asnxer.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/asnxer.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -19,38 +19,38 @@
PXER_Stream(PXMLElement * elem, const PBYTEArray & bytes);
PXER_Stream(PXMLElement * elem, const BYTE * buf, PINDEX size);
- virtual BOOL Read(PChannel & chan);
- virtual BOOL Write(PChannel & chan);
+ virtual PBoolean Read(PChannel & chan);
+ virtual PBoolean Write(PChannel & chan);
- virtual BOOL NullDecode(PASN_Null &);
+ virtual PBoolean NullDecode(PASN_Null &);
virtual void NullEncode(const PASN_Null &);
- virtual BOOL BooleanDecode(PASN_Boolean &);
+ virtual PBoolean BooleanDecode(PASN_Boolean &);
virtual void BooleanEncode(const PASN_Boolean &);
- virtual BOOL IntegerDecode(PASN_Integer &);
+ virtual PBoolean IntegerDecode(PASN_Integer &);
virtual void IntegerEncode(const PASN_Integer &);
- virtual BOOL EnumerationDecode(PASN_Enumeration &);
+ virtual PBoolean EnumerationDecode(PASN_Enumeration &);
virtual void EnumerationEncode(const PASN_Enumeration &);
- virtual BOOL RealDecode(PASN_Real &);
+ virtual PBoolean RealDecode(PASN_Real &);
virtual void RealEncode(const PASN_Real &);
- virtual BOOL ObjectIdDecode(PASN_ObjectId &);
+ virtual PBoolean ObjectIdDecode(PASN_ObjectId &);
virtual void ObjectIdEncode(const PASN_ObjectId &);
- virtual BOOL BitStringDecode(PASN_BitString &);
+ virtual PBoolean BitStringDecode(PASN_BitString &);
virtual void BitStringEncode(const PASN_BitString &);
- virtual BOOL OctetStringDecode(PASN_OctetString &);
+ virtual PBoolean OctetStringDecode(PASN_OctetString &);
virtual void OctetStringEncode(const PASN_OctetString &);
- virtual BOOL ConstrainedStringDecode(PASN_ConstrainedString &);
+ virtual PBoolean ConstrainedStringDecode(PASN_ConstrainedString &);
virtual void ConstrainedStringEncode(const PASN_ConstrainedString &);
- virtual BOOL BMPStringDecode(PASN_BMPString &);
+ virtual PBoolean BMPStringDecode(PASN_BMPString &);
virtual void BMPStringEncode(const PASN_BMPString &);
- virtual BOOL ChoiceDecode(PASN_Choice &);
+ virtual PBoolean ChoiceDecode(PASN_Choice &);
virtual void ChoiceEncode(const PASN_Choice &);
- virtual BOOL ArrayDecode(PASN_Array &);
+ virtual PBoolean ArrayDecode(PASN_Array &);
virtual void ArrayEncode(const PASN_Array &);
- virtual BOOL SequencePreambleDecode(PASN_Sequence &);
+ virtual PBoolean SequencePreambleDecode(PASN_Sequence &);
virtual void SequencePreambleEncode(const PASN_Sequence &);
- virtual BOOL SequenceKnownDecode(PASN_Sequence &, PINDEX, PASN_Object &);
+ virtual PBoolean SequenceKnownDecode(PASN_Sequence &, PINDEX, PASN_Object &);
virtual void SequenceKnownEncode(const PASN_Sequence &, PINDEX, const PASN_Object &);
- virtual BOOL SequenceUnknownDecode(PASN_Sequence &);
+ virtual PBoolean SequenceUnknownDecode(PASN_Sequence &);
virtual void SequenceUnknownEncode(const PASN_Sequence &);
PXMLElement * GetCurrentElement() { return position; }
Modified: ptlib/trunk/include/ptclib/cypher.h
===================================================================
--- ptlib/trunk/include/ptclib/cypher.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/cypher.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -81,7 +81,7 @@
PBase64();
void StartEncoding(
- BOOL useCRLFs = TRUE // Use CR, LF pairs in end of line characters.
+ PBoolean useCRLFs = PTrue // Use CR, LF pairs in end of line characters.
);
// Begin a base 64 encoding operation, initialising the object instance.
@@ -139,12 +139,12 @@
/** Incorporate the specified data into the base 64 decoding.
@return
- TRUE if block was last in the Base64 encoded string.
+ PTrue if block was last in the Base64 encoded string.
*/
- BOOL ProcessDecoding(
+ PBoolean ProcessDecoding(
const PString & str // String to be encoded
);
- BOOL ProcessDecoding(
+ PBoolean ProcessDecoding(
const char * cstr // C String to be encoded
);
@@ -153,7 +153,7 @@
@return
Decoded data for the processed Base64 string.
*/
- BOOL GetDecodedData(
+ PBoolean GetDecodedData(
void * dataBlock, // Pointer to data to be decoded from base64
PINDEX length // Length of the data block.
);
@@ -166,14 +166,14 @@
@return
Decoded data for the processed Base64 string.
*/
- BOOL IsDecodeOK() { return perfectDecode; }
+ PBoolean IsDecodeOK() { return perfectDecode; }
/** Convert a printable text string to binary data using the Internet MIME
standard base 64 content transfer encoding.
- The base64 string is checked and TRUE returned if all perfectly correct.
- If FALSE is returned then the string had extraneous or illegal
+ The base64 string is checked and PTrue returned if all perfectly correct.
+ If PFalse is returned then the string had extraneous or illegal
characters in it that were ignored. This does not mean that the data is
not valid, only that it is suspect.
@@ -183,11 +183,11 @@
static PString Decode(
const PString & str // Encoded base64 string to be decoded.
);
- static BOOL Decode(
+ static PBoolean Decode(
const PString & str, // Encoded base64 string to be decoded.
PBYTEArray & data // Converted binary data from base64.
);
- static BOOL Decode(
+ static PBoolean Decode(
const PString & str, // Encoded base64 string to be decoded.
void * dataBlock, // Pointer to data to be decoded from base64
PINDEX length // Length of the data block.
@@ -203,9 +203,9 @@
BYTE saveTriple[3];
PINDEX saveCount;
PINDEX nextLine;
- BOOL useCRLFs;
+ PBoolean useCRLFs;
- BOOL perfectDecode;
+ PBoolean perfectDecode;
PINDEX quadPosition;
PBYTEArray decodedData;
PINDEX decodeSize;
@@ -535,12 +535,12 @@
const PString & cypher ///< Base64 Cypher text string to be decoded.
);
/**Decode the data. */
- BOOL Decode(
+ PBoolean Decode(
const PString & cypher, ///< Base64 Cypher text string to be decoded.
PString & clear ///< Clear text string decoded.
);
/**Decode the data. */
- BOOL Decode(
+ PBoolean Decode(
const PString & cypher, ///< Base64 Cypher text string to be decoded.
PBYTEArray & clear ///< Clear text binary data decoded.
);
@@ -571,7 +571,7 @@
@return
decoded string.
*/
- BOOL Decode(
+ PBoolean Decode(
const PBYTEArray & coded, ///< Encoded data (cyphertext).
PBYTEArray & clear ///< Clear text binary data decoded.
);
@@ -595,7 +595,7 @@
/** Initialise the encoding/decoding sequence. */
virtual void Initialise(
- BOOL encoding ///< Flag for encoding/decoding sequence about to start.
+ PBoolean encoding ///< Flag for encoding/decoding sequence about to start.
) = 0;
/** Encode an n bit block of memory according to the encryption algorithm. */
@@ -670,7 +670,7 @@
protected:
/** Initialise the encoding/decoding sequence. */
virtual void Initialise(
- BOOL encoding ///< Flag for encoding/decoding sequence about to start.
+ PBoolean encoding ///< Flag for encoding/decoding sequence about to start.
);
/** Encode an n bit block of memory according to the encryption algorithm. */
@@ -782,14 +782,14 @@
State of the validation keys.
*/
- BOOL ValidatePending();
+ PBoolean ValidatePending();
/* Validate a pending secured option list for the product. All secured
keys with the <CODE>pendingPrefix</CODE> name will be checked against
the value of the field <CODE>securityKey</CODE>. If they match then
they are copied to the secured variables.
@return
- TRUE if secure key values are valid.
+ PTrue if secure key values are valid.
*/
void ResetPending();
Modified: ptlib/trunk/include/ptclib/delaychan.h
===================================================================
--- ptlib/trunk/include/ptclib/delaychan.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/delaychan.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -95,10 +95,10 @@
than later" strategy).
@return
- TRUE if we are "too late" of @a time milliseconds (unrelated to
+ PTrue if we are "too late" of @a time milliseconds (unrelated to
the maximum slip time).
*/
- BOOL Delay(int time);
+ PBoolean Delay(int time);
/**Invalidate the timer. The timing of this function call is not
important, the timer will restart at the next call to Delay().
@@ -107,7 +107,7 @@
//@}
protected:
- BOOL firstTime;
+ PBoolean firstTime;
PTime targetTime;
PTimeInterval jitterLimit;
@@ -182,13 +182,13 @@
of bytes read.
The GetErrorCode() function should be consulted after Read() returns
- FALSE to determine what caused the failure.
+ PFalse to determine what caused the failure.
@return
- TRUE indicates that at least one character was read from the channel.
- FALSE means no bytes were read due to timeout or some other I/O error.
+ PTrue indicates that at least one character was read from the channel.
+ PFalse means no bytes were read due to timeout or some other I/O error.
*/
- virtual BOOL Read(
+ virtual PBoolean Read(
void * buf, ///< Pointer to a block of memory to receive the read bytes.
PINDEX len ///< Maximum number of bytes to read into the buffer.
);
@@ -198,11 +198,11 @@
of bytes written.
The GetErrorCode() function should be consulted after Write() returns
- FALSE to determine what caused the failure.
+ PFalse to determine what caused the failure.
- @return TRUE if at least len bytes were written to the channel.
+ @return PTrue if at least len bytes were written to the channel.
*/
- virtual BOOL Write(
+ virtual PBoolean Write(
const void * buf, ///< Pointer to a block of memory to write.
PINDEX len ///< Number of bytes to write.
);
Modified: ptlib/trunk/include/ptclib/enum.h
===================================================================
--- ptlib/trunk/include/ptclib/enum.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/enum.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -72,15 +72,15 @@
PDNS::NAPTRRecord * HandleDNSRecord(PDNS_RECORD dnsRecord, PDNS_RECORD results);
void UnlockOrder()
- { orderLocked = FALSE; }
+ { orderLocked = PFalse; }
protected:
PINDEX currentPos;
int lastOrder;
- BOOL orderLocked;
+ PBoolean orderLocked;
};
-inline BOOL GetRecords(const PString & domain, NAPTRRecordList & recordList)
+inline PBoolean GetRecords(const PString & domain, NAPTRRecordList & recordList)
{ return Lookup<NAPTR_SRV, NAPTRRecordList, NAPTRRecord>(domain, recordList); }
/**
@@ -92,13 +92,13 @@
* Perform a lookup of the specified DN using the specified service
* and domain list. Returns the resultant URL
*
- * @return TRUE if the DN could be resolved, else FALSE
+ * @return PTrue if the DN could be resolved, else PFalse
*/
-BOOL ENUMLookup(
+PBoolean ENUMLookup(
const PString & dn, ///< DN to lookup
const PString & service, ///< ENUM service to use
const PStringArray & domains, ///< list of ENUM domains to search
- PString & URL ///< resolved URL, if return value is TRUE
+ PString & URL ///< resolved URL, if return value is PTrue
);
/**
@@ -107,11 +107,11 @@
*
* This function uses the default domain list, which can be set by the SetENUMServers function
*
- * @return TRUE if the DN could be resolved, else FALSE
+ * @return PTrue if the DN could be resolved, else PFalse
*/
-BOOL ENUMLookup(const PString & dn, ///< DN to lookup
+PBoolean ENUMLookup(const PString & dn, ///< DN to lookup
const PString & service, ///< ENUM service to use
- PString & URL ///< resolved URL, if return value is TRUE
+ PString & URL ///< resolved URL, if return value is PTrue
);
@@ -143,12 +143,12 @@
* specified service. Returns the resultant corresponding
* signalling addresses
*
- * @return TRUE if the url could be resolved, else FALSE
+ * @return PTrue if the url could be resolved, else PFalse
*/
-BOOL RDSLookup(const PURL & url, ///< URL to lookup
+PBoolean RDSLookup(const PURL & url, ///< URL to lookup
const PString & service, ///< Service to use
- PStringList & dn ///< resolved addresses, if return value is TRUE
+ PStringList & dn ///< resolved addresses, if return value is PTrue
);
/**
@@ -156,13 +156,13 @@
* on the specified server list that uses the specified service
* Returns the resultant corresponding signalling addresses
*
- * @return TRUE if the url could be resolved, else FALSE
+ * @return PTrue if the url could be resolved, else PFalse
*/
-BOOL RDSLookup(const PURL & url, ///< URL to lookup
+PBoolean RDSLookup(const PURL & url, ///< URL to lookup
const PString & service, ///< Service to use
const PStringArray & naptrSpaces, ///< RDS Servers to lookup
- PStringList & returnStr ///< resolved addresses, if return value is TRUE
+ PStringList & returnStr ///< resolved addresses, if return value is PTrue
);
}; // namespace PDNS
Modified: ptlib/trunk/include/ptclib/ftp.h
===================================================================
--- ptlib/trunk/include/ptclib/ftp.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/ftp.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -77,7 +77,7 @@
/** Send the PORT command for a transfer.
@return Boolean indicated PORT command was successful
*/
- BOOL SendPORT(
+ PBoolean SendPORT(
const PIPSocket::Address & addr, ///< Address for PORT connection. IP address to connect back to
WORD port ///< Port number for PORT connection.
);
@@ -108,9 +108,9 @@
/** Close the socket, and if connected as a client, QUITs from server.
@return
- TRUE if the channel was closed and the QUIT accepted by the server.
+ PTrue if the channel was closed and the QUIT accepted by the server.
*/
- virtual BOOL Close();
+ virtual PBoolean Close();
//@}
@@ -119,9 +119,9 @@
/** Log in to the remote host for FTP.
@return
- TRUE if the log in was successfull.
+ PTrue if the log in was successfull.
*/
- BOOL LogIn(
+ PBoolean LogIn(
const PString & username, ///< User name for FTP log in.
const PString & password ///< Password for the specified user name.
);
@@ -136,18 +136,18 @@
/** Set the transfer type.
@return
- TRUE if transfer type set.
+ PTrue if transfer type set.
*/
- BOOL SetType(
+ PBoolean SetType(
RepresentationType type ///< RepresentationTypeof file to transfer
);
/** Change the current directory on the remote FTP host.
@return
- TRUE if the log in was successfull.
+ PTrue if the log in was successfull.
*/
- BOOL ChangeDirectory(
+ PBoolean ChangeDirectory(
const PString & dirPath ///< New directory
);
@@ -220,7 +220,7 @@
protected:
/// Call back to verify open succeeded in an PInternetProtocol class
- virtual BOOL OnOpen();
+ virtual PBoolean OnOpen();
PTCPSocket * NormalClientTransfer(
Commands cmd,
@@ -269,28 +269,28 @@
virtual PString GetSystemTypeString() const;
/// return the thirdPartyPort flag, allowing 3 host put and get.
- BOOL GetAllowThirdPartyPort() const { return thirdPartyPort; }
+ PBoolean GetAllowThirdPartyPort() const { return thirdPartyPort; }
/// Set the thirdPartyPort flag.
- void SetAllowThirdPartyPort(BOOL state) { thirdPartyPort = state; }
+ void SetAllowThirdPartyPort(PBoolean state) { thirdPartyPort = state; }
/** Process commands, dispatching to the appropriate virtual function. This
is used when the socket is acting as a server.
@return
- TRUE if more processing may be done, FALSE if the QUIT command was
- received or the #OnUnknown()# function returns FALSE.
+ PTrue if more processing may be done, PFalse if the QUIT command was
+ received or the #OnUnknown()# function returns PFalse.
*/
- BOOL ProcessCommand();
+ PBoolean ProcessCommand();
/** Dispatching to the appropriate virtual function. This is used when the
socket is acting as a server.
@return
- TRUE if more processing may be done, FALSE if the QUIT command was
- received or the #OnUnknown()# function returns FALSE.
+ PTrue if more processing may be done, PFalse if the QUIT command was
+ received or the #OnUnknown()# function returns PFalse.
*/
- virtual BOOL DispatchCommand(
+ virtual PBoolean DispatchCommand(
PINDEX code, ///< Parsed command code.
const PString & args ///< Arguments to command.
);
@@ -300,41 +300,41 @@
it may be processed.
@return
- TRUE if the command required the user to be logged in.
+ PTrue if the command required the user to be logged in.
*/
- virtual BOOL CheckLoginRequired(
+ virtual PBoolean CheckLoginRequired(
PINDEX cmd ///< Command to check if log in required.
);
/** Validate the user name and password for access. After three invalid
- attempts, the socket will close and FALSE is returned.
+ attempts, the socket will close and PFalse is returned.
- Default implementation returns TRUE for all strings.
+ Default implementation returns PTrue for all strings.
@return
- TRUE if user can access, otherwise FALSE
+ PTrue if user can access, otherwise PFalse
*/
- virtual BOOL AuthoriseUser(
+ virtual PBoolean AuthoriseUser(
const PString & user, ///< User name to authorise.
const PString & password, ///< Password supplied for the user.
- BOOL & replied ///< Indication that a reply was sent to client.
+ PBoolean & replied ///< Indication that a reply was sent to client.
);
/** Handle an unknown command.
@return
- TRUE if more processing may be done, FALSE if the
- #ProcessCommand()# function is to return FALSE.
+ PTrue if more processing may be done, PFalse if the
+ #ProcessCommand()# function is to return PFalse.
*/
- virtual BOOL OnUnknown(
+ virtual PBoolean OnUnknown(
const PCaselessString & command ///< Complete command line received.
);
/** Handle an error in command.
@return
- TRUE if more processing may be done, FALSE if the
- #ProcessCommand()# function is to return FALSE.
+ PTrue if more processing may be done, PFalse if the
+ #ProcessCommand()# function is to return PFalse.
*/
virtual void OnError(
PINDEX errorCode, ///< Error code to use
@@ -360,48 +360,48 @@
// the following commands must be implemented by all servers
// and can be performed without logging in
- virtual BOOL OnUSER(const PCaselessString & args);
- virtual BOOL OnPASS(const PCaselessString & args); // officially optional, but should be done
- virtual BOOL OnQUIT(const PCaselessString & args);
- virtual BOOL OnPORT(const PCaselessString & args);
- virtual BOOL OnSTRU(const PCaselessString & args);
- virtual BOOL OnMODE(const PCaselessString & args);
- virtual BOOL OnTYPE(const PCaselessString & args);
- virtual BOOL OnNOOP(const PCaselessString & args);
- virtual BOOL OnSYST(const PCaselessString & args);
- virtual BOOL OnSTAT(const PCaselessString & args);
+ virtual PBoolean OnUSER(const PCaselessString & args);
+ virtual PBoolean OnPASS(const PCaselessString & args); // officially optional, but should be done
+ virtual PBoolean OnQUIT(const PCaselessString & args);
+ virtual PBoolean OnPORT(const PCaselessString & args);
+ virtual PBoolean OnSTRU(const PCaselessString & args);
+ virtual PBoolean OnMODE(const PCaselessString & args);
+ virtual PBoolean OnTYPE(const PCaselessString & args);
+ virtual PBoolean OnNOOP(const PCaselessString & args);
+ virtual PBoolean OnSYST(const PCaselessString & args);
+ virtual PBoolean OnSTAT(const PCaselessString & args);
// the following commands must be implemented by all servers
// and cannot be performed without logging in
- virtual BOOL OnRETR(const PCaselessString & args);
- virtual BOOL OnSTOR(const PCaselessString & args);
- virtual BOOL OnACCT(const PCaselessString & args);
- virtual BOOL OnAPPE(const PCaselessString & args);
- virtual BOOL OnRNFR(const PCaselessString & args);
- virtual BOOL OnRNTO(const PCaselessString & args);
- virtual BOOL OnDELE(const PCaselessString & args);
- virtual BOOL OnCWD(const PCaselessString & args);
- virtual BOOL OnCDUP(const PCaselessString & args);
- virtual BOOL OnRMD(const PCaselessString & args);
- virtual BOOL OnMKD(const PCaselessString & args);
- virtual BOOL OnPWD(const PCaselessString & args);
- virtual BOOL OnLIST(const PCaselessString & args);
- virtual BOOL OnNLST(const PCaselessString & args);
- virtual BOOL OnPASV(const PCaselessString & args);
+ virtual PBoolean OnRETR(const PCaselessString & args);
+ virtual PBoolean OnSTOR(const PCaselessString & args);
+ virtual PBoolean OnACCT(const PCaselessString & args);
+ virtual PBoolean OnAPPE(const PCaselessString & args);
+ virtual PBoolean OnRNFR(const PCaselessString & args);
+ virtual PBoolean OnRNTO(const PCaselessString & args);
+ virtual PBoolean OnDELE(const PCaselessString & args);
+ virtual PBoolean OnCWD(const PCaselessString & args);
+ virtual PBoolean OnCDUP(const PCaselessString & args);
+ virtual PBoolean OnRMD(const PCaselessString & args);
+ virtual PBoolean OnMKD(const PCaselessString & args);
+ virtual PBoolean OnPWD(const PCaselessString & args);
+ virtual PBoolean OnLIST(const PCaselessString & args);
+ virtual PBoolean OnNLST(const PCaselessString & args);
+ virtual PBoolean OnPASV(const PCaselessString & args);
// the following commands are optional and can be performed without
// logging in
- virtual BOOL OnHELP(const PCaselessString & args);
- virtual BOOL OnSITE(const PCaselessString & args);
- virtual BOOL OnABOR(const PCaselessString & args);
+ virtual PBoolean OnHELP(const PCaselessString & args);
+ virtual PBoolean OnSITE(const PCaselessString & args);
+ virtual PBoolean OnABOR(const PCaselessString & args);
// the following commands are optional and cannot be performed
// without logging in
- virtual BOOL OnSMNT(const PCaselessString & args);
- virtual BOOL OnREIN(const PCaselessString & args);
- virtual BOOL OnSTOU(const PCaselessString & args);
- virtual BOOL OnALLO(const PCaselessString & args);
- virtual BOOL OnREST(const PCaselessString & args);
+ virtual PBoolean OnSMNT(const PCaselessString & args);
+ virtual PBoolean OnREIN(const PCaselessString & args);
+ virtual PBoolean OnSTOU(const PCaselessString & args);
+ virtual PBoolean OnALLO(const PCaselessString & args);
+ virtual PBoolean OnREST(const PCaselessString & args);
/// Send the specified file to the client.
@@ -412,11 +412,11 @@
protected:
/// Call back to verify open succeeded in an PInternetProtocol class
- BOOL OnOpen();
+ PBoolean OnOpen();
void Construct();
PString readyString;
- BOOL thirdPartyPort;
+ PBoolean thirdPartyPort;
enum {
NotConnected,
Modified: ptlib/trunk/include/ptclib/guid.h
===================================================================
--- ptlib/trunk/include/ptclib/guid.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/guid.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -117,9 +117,9 @@
/**Test if the GUID is null, ie consists of all zeros.
*/
- BOOL IsNULL() const;
+ PBoolean IsNULL() const;
- BOOL operator!() const { return !IsNULL(); }
+ PBoolean operator!() const { return !IsNULL(); }
//@}
};
Modified: ptlib/trunk/include/ptclib/html.h
===================================================================
--- ptlib/trunk/include/ptclib/html.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/html.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -133,7 +133,7 @@
// New functions for class.
- BOOL Is(ElementInSet elmt) const;
+ PBoolean Is(ElementInSet elmt) const;
void Set(ElementInSet elmt);
void Clr(ElementInSet elmt);
void Toggle(ElementInSet elmt);
@@ -582,7 +582,7 @@
virtual void Output(PHTML & html) const;
virtual void AddAttr(PHTML & html) const;
private:
- BOOL borderFlag;
+ PBoolean borderFlag;
};
friend class TableStart;
@@ -648,7 +648,7 @@
virtual ~FieldElement() {}
virtual void AddAttr(PHTML & html) const;
private:
- BOOL disabledFlag;
+ PBoolean disabledFlag;
};
class Select : public FieldElement {
@@ -695,7 +695,7 @@
protected:
virtual void AddAttr(PHTML & html) const;
private:
- BOOL selectedFlag;
+ PBoolean selectedFlag;
};
class FormField : public FieldElement {
@@ -877,7 +877,7 @@
virtual void AddAttr(PHTML & html) const;
private:
const char * valueString;
- BOOL checkedFlag;
+ PBoolean checkedFlag;
};
class CheckBox : public RadioButton {
Modified: ptlib/trunk/include/ptclib/http.h
===================================================================
--- ptlib/trunk/include/ptclib/http.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/http.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -78,9 +78,9 @@
path to another resource but not if it is a leaf node.
@return
- TRUE if resource added, FALSE if failed.
+ PTrue if resource added, PFalse if failed.
*/
- BOOL AddResource(
+ PBoolean AddResource(
PHTTPResource * resource, ///< Resource to add to the name space.
AddOptions overwrite = ErrorOnExist
///< Flag to overwrite an existing resource if it already exists.
@@ -91,9 +91,9 @@
path to another resource then the function will fail.
@return
- TRUE if resource deleted, FALSE if failed.
+ PTrue if resource deleted, PFalse if failed.
*/
- BOOL DelResource(
+ PBoolean DelResource(
const PURL & url ///< URL to search for in the name space.
);
@@ -145,7 +145,7 @@
} * root;
private:
- BOOL SetSize(PINDEX) { return FALSE; }
+ PBoolean SetSize(PINDEX) { return PFalse; }
};
#ifdef _WIN32_WCE
@@ -202,7 +202,7 @@
Conflict, ///< 409 - resource conflict on action
Gone, ///< 410 - resource gone away
LengthRequired, ///< 411 - no Content-Length
- UnlessTrue, ///< 412 - no Range header for TRUE Unless
+ UnlessTrue, ///< 412 - no Range header for PTrue Unless
InternalServerError = 500, ///< 500 - server has encountered an unexpected error
NotImplemented, ///< 501 - server does not implement request
BadGateway, ///< 502 - error whilst acting as gateway
@@ -250,7 +250,7 @@
<CODE>lastResponseCode</CODE> and <CODE>lastResponseInfo</CODE>.
The default bahaviour looks for a space or a '-' and splits the code
- and info either side of that character, then returns FALSE.
+ and info either side of that character, then returns PFalse.
@return
Position of continuation character in response, 0 if no continuation
@@ -303,7 +303,7 @@
200!
@return
- TRUE if all of header returned and ready to receive body.
+ PTrue if all of header returned and ready to receive body.
*/
int ExecuteCommand(
Commands cmd,
@@ -311,7 +311,7 @@
PMIMEInfo & outMIME,
const PString & dataBody,
PMIMEInfo & replyMime,
- BOOL persist = TRUE
+ PBoolean persist = PTrue
);
int ExecuteCommand(
const PString & cmdName,
@@ -319,17 +319,17 @@
PMIMEInfo & outMIME,
const PString & dataBody,
PMIMEInfo & replyMime,
- BOOL persist = TRUE
+ PBoolean persist = PTrue
);
/// Write a HTTP command to server
- BOOL WriteCommand(
+ PBoolean WriteCommand(
Commands cmd,
const PString & url,
PMIMEInfo & outMIME,
const PString & dataBody
);
- BOOL WriteCommand(
+ PBoolean WriteCommand(
const PString & cmdName,
const PString & url,
PMIMEInfo & outMIME,
@@ -337,16 +337,16 @@
);
/// Read a response from the server
- BOOL ReadResponse(
+ PBoolean ReadResponse(
PMIMEInfo & replyMIME
);
/// Read the body of the HTTP command
- BOOL ReadContentBody(
+ PBoolean ReadContentBody(
PMIMEInfo & replyMIME,
PBYTEArray & body
);
- BOOL ReadContentBody(
+ PBoolean ReadContentBody(
PMIMEInfo & replyMIME,
PString & body
);
@@ -355,69 +355,69 @@
/** Get the document specified by the URL.
@return
- TRUE if document is being transferred.
+ PTrue if document is being transferred.
*/
- BOOL GetTextDocument(
+ PBoolean GetTextDocument(
const PURL & url, ///< Universal Resource Locator for document.
PString & document, ///< Body read
- BOOL persist = TRUE ///< if TRUE, enable HTTP persistence
+ PBoolean persist = PTrue ///< if PTrue, enable HTTP persistence
);
/** Get the document specified by the URL.
@return
- TRUE if document is being transferred.
+ PTrue if document is being transferred.
*/
- BOOL GetDocument(
+ PBoolean GetDocument(
const PURL & url, ///< Universal Resource Locator for document.
PMIMEInfo & outMIME, ///< MIME info in request
PMIMEInfo & replyMIME, ///< MIME info in response
- BOOL persist = TRUE ///< if TRUE, enable HTTP persistence
+ PBoolean persist = PTrue ///< if PTrue, enable HTTP persistence
);
/** Get the header for the document specified by the URL.
@return
- TRUE if document header is being transferred.
+ PTrue if document header is being transferred.
*/
- BOOL GetHeader(
+ PBoolean GetHeader(
const PURL & url, ///< Universal Resource Locator for document.
PMIMEInfo & outMIME, ///< MIME info in request
PMIMEInfo & replyMIME, ///< MIME info in response
- BOOL persist = TRUE ///< if TRUE, enable HTTP persistence
+ PBoolean persist = PTrue ///< if PTrue, enable HTTP persistence
);
/** Post the data specified to the URL.
@return
- TRUE if document is being transferred.
+ PTrue if document is being transferred.
*/
- BOOL PostData(
+ PBoolean PostData(
const PURL & url, ///< Universal Resource Locator for document.
PMIMEInfo & outMIME, ///< MIME info in request
const PString & data, ///< Information posted to the HTTP server.
PMIMEInfo & replyMIME, ///< MIME info in response
- BOOL persist = TRUE ///< if TRUE, enable HTTP persistence
+ PBoolean persist = PTrue ///< if PTrue, enable HTTP persistence
);
/** Post the data specified to the URL.
@return
- TRUE if document is being transferred.
+ PTrue if document is being transferred.
*/
- BOOL PostData(
+ PBoolean PostData(
const PURL & url, ///< Universal Resource Locator for document.
PMIMEInfo & outMIME, ///< MIME info in request
const PString & data, ///< Information posted to the HTTP server.
PMIMEInfo & replyMIME, ///< MIME info in response
PString & replyBody, ///< Body of response
- BOOL persist = TRUE ///< if TRUE, enable HTTP persistence
+ PBoolean persist = PTrue ///< if PTrue, enable HTTP persistence
);
protected:
- BOOL AssureConnect(const PURL & url, PMIMEInfo & outMIME);
- BOOL InternalReadContentBody(
+ PBoolean AssureConnect(const PURL & url, PMIMEInfo & outMIME);
+ PBoolean InternalReadContentBody(
PMIMEInfo & replyMIME,
PAbstractArray & body
);
@@ -465,11 +465,11 @@
const PMIMEInfo & GetMIME() const { return mimeInfo; }
void SetMIME(const PString & tag, const PString & value);
- BOOL IsCompatible(int major, int minor) const;
+ PBoolean IsCompatible(int major, int minor) const;
- BOOL IsPersistant() const { return isPersistant; }
- BOOL WasPersistant() const { return wasPersistant; }
- BOOL IsProxyConnection() const { return isProxyConnection; }
+ PBoolean IsPersistant() const { return isPersistant; }
+ PBoolean WasPersistant() const { return wasPersistant; }
+ PBoolean IsProxyConnection() const { return isProxyConnection; }
int GetMajorVersion() const { return majorVersion; }
int GetMinorVersion() const { return minorVersion; }
@@ -502,16 +502,16 @@
PString GetEntityBody() const { return entityBody; }
protected:
- BOOL Initialise(PHTTPServer & server, PString & args);
+ PBoolean Initialise(PHTTPServer & server, PString & args);
void DecodeMultipartFormInfo(const PString & type, const PString & entityBody);
PHTTP::Commands commandCode;
PString commandName;
PURL url;
PMIMEInfo mimeInfo;
- BOOL isPersistant;
- BOOL wasPersistant;
- BOOL isProxyConnection;
+ PBoolean isPersistant;
+ PBoolean wasPersistant;
+ PBoolean isProxyConnection;
int majorVersion;
int minorVersion;
PString entityBody; // original entity body (POST only)
@@ -536,7 +536,7 @@
basic POP3 server functionality.
The server socket thread would continuously call the
- #ProcessMessage()# function until it returns FALSE. This will then
+ #ProcessMessage()# function until it returns PFalse. This will then
call the appropriate virtual function on parsing the POP3 protocol.
*/
class PHTTPServer : public PHTTP
@@ -582,12 +582,12 @@
is used when the socket is acting as a server.
@return
- TRUE if the request specified persistant mode and the request version
- allows it, FALSE if the socket closed, timed out, the protocol does not
+ PTrue if the request specified persistant mode and the request version
+ allows it, PFalse if the socket closed, timed out, the protocol does not
allow persistant mode, or the client did not request it
timed out
*/
- virtual BOOL ProcessCommand();
+ virtual PBoolean ProcessCommand();
/** Handle a GET command from a client.
@@ -596,11 +596,11 @@
#PHTTPResource# object contained therein.
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnGET(
+ virtual PBoolean OnGET(
const PURL & url, ///< Universal Resource Locator for document.
const PMIMEInfo & info, ///< Extra MIME information in command.
const PHTTPConnectionInfo & conInfo ///< HTTP connection information
@@ -615,11 +615,11 @@
#PHTTPResource# object contained therein.
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnHEAD(
+ virtual PBoolean OnHEAD(
const PURL & url, ///< Universal Resource Locator for document.
const PMIMEInfo & info, ///< Extra MIME information in command.
const PHTTPConnectionInfo & conInfo ///< HTTP connection information
@@ -632,11 +632,11 @@
#PHTTPResource# object contained therein.
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnPOST(
+ virtual PBoolean OnPOST(
const PURL & url, ///< Universal Resource Locator for document.
const PMIMEInfo & info, ///< Extra MIME information in command.
const PStringToString & data, ///< Variables provided in the POST data.
@@ -651,11 +651,11 @@
The default implementation returns OnError(BadGateway).
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnProxy(
+ virtual PBoolean OnProxy(
const PHTTPConnectionInfo & conInfo ///< HTTP connection information
);
@@ -671,9 +671,9 @@
/** Handle an unknown command.
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
*/
- virtual BOOL OnUnknown(
+ virtual PBoolean OnUnknown(
const PCaselessString & command, ///< Complete command line received.
const PHTTPConnectionInfo & connectInfo ///< HTTP connection information
);
@@ -694,9 +694,9 @@
nothing.
@return
- TRUE if requires v1.1 chunked transfer encoding.
+ PTrue if requires v1.1 chunked transfer encoding.
*/
- BOOL StartResponse(
+ PBoolean StartResponse(
StatusCode code, ///< Status code for the response.
PMIMEInfo & headers, ///< MIME variables included in response.
long bodySize ///< Size of the rest of the response.
@@ -709,9 +709,9 @@
viewer.
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
*/
- virtual BOOL OnError(
+ virtual PBoolean OnError(
StatusCode code, ///< Status code for the error response.
const PCaselessString & extra, ///< Extra information included in the response.
const PHTTPConnectionInfo & connectInfo ///< HTTP connection information
@@ -797,9 +797,9 @@
the realm specified by the class instance.
@return
- TRUE if the user and password are authorised in the realm.
+ PTrue if the user and password are authorised in the realm.
*/
- virtual BOOL Validate(
+ virtual PBoolean Validate(
const PHTTPRequest & request, ///< Request information.
const PString & authInfo ///< Authority information string.
) const = 0;
@@ -808,12 +808,12 @@
distinguish between net requiring authorisation and requiring autorisation
but having no password.
- The default behaviour is to return TRUE.
+ The default behaviour is to return PTrue.
@return
- TRUE if the authorisation in the realm is to be applied.
+ PTrue if the authorisation in the realm is to be applied.
*/
- virtual BOOL IsActive() const;
+ virtual PBoolean IsActive() const;
protected:
static void DecodeBasicAuthority(
@@ -869,9 +869,9 @@
the realm specified by the class instance.
@return
- TRUE if the user and password are authorised in the realm.
+ PTrue if the user and password are authorised in the realm.
*/
- virtual BOOL Validate(
+ virtual PBoolean Validate(
const PHTTPRequest & request, ///< Request information.
const PString & authInfo ///< Authority information string.
) const;
@@ -880,12 +880,12 @@
distinguish between net requiring authorisation and requiring autorisation
but having no password.
- The default behaviour is to return TRUE.
+ The default behaviour is to return PTrue.
@return
- TRUE if the authorisation in the realm is to be applied.
+ PTrue if the authorisation in the realm is to be applied.
*/
- virtual BOOL IsActive() const;
+ virtual PBoolean IsActive() const;
/** Get the user name allocated to this simple authorisation.
@@ -956,9 +956,9 @@
the realm specified by the class instance.
@return
- TRUE if the user and password are authorised in the realm.
+ PTrue if the user and password are authorised in the realm.
*/
- virtual BOOL Validate(
+ virtual PBoolean Validate(
const PHTTPRequest & request, ///< Request information.
const PString & authInfo ///< Authority information string.
) const;
@@ -967,12 +967,12 @@
distinguish between net requiring authorisation and requiring autorisation
but having no password.
- The default behaviour is to return TRUE.
+ The default behaviour is to return PTrue.
@return
- TRUE if the authorisation in the realm is to be applied.
+ PTrue if the authorisation in the realm is to be applied.
*/
- virtual BOOL IsActive() const;
+ virtual PBoolean IsActive() const;
/** Get the user name allocated to this simple authorisation.
@@ -1078,11 +1078,11 @@
a resource to be sent to the socket.
@return
- TRUE if the connection may persist, FALSE if the connection must close.
+ PTrue if the connection may persist, PFalse if the connection must close.
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnGET(
+ virtual PBoolean OnGET(
PHTTPServer & server, ///< HTTP server that received the request
const PURL & url, ///< Universal Resource Locator for document.
const PMIMEInfo & info, ///< Extra MIME information in command.
@@ -1094,11 +1094,11 @@
The default action calls #SendData()#.
@return
- TRUE if the connection may persist, FALSE if the connection must close.
+ PTrue if the connection may persist, PFalse if the connection must close.
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnGETData(
+ virtual PBoolean OnGETData(
PHTTPServer & server, ///< HTTP server that received the request
const PURL & url, ///< Universal Resource Locator for document
const PHTTPConnectionInfo & connectInfo, ///< HTTP connection information
@@ -1112,11 +1112,11 @@
be sent to the socket.
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnHEAD(
+ virtual PBoolean OnHEAD(
PHTTPServer & server, ///< HTTP server that received the request
const PURL & url, ///< Universal Resource Locator for document.
const PMIMEInfo & info, ///< Extra MIME information in command.
@@ -1130,11 +1130,11 @@
received.
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnPOST(
+ virtual PBoolean OnPOST(
PHTTPServer & server, ///< HTTP server that received the request
const PURL & url, ///< Universal Resource Locator for document.
const PMIMEInfo & info, ///< Extra MIME information in command.
@@ -1147,11 +1147,11 @@
The default action calls #Post()#.
@return
- TRUE if the connection may persist, FALSE if the connection must close.
+ PTrue if the connection may persist, PFalse if the connection must close.
If there is no ContentLength field in the response, this value must
- be FALSE for correct operation.
+ be PFalse for correct operation.
*/
- virtual BOOL OnPOSTData(
+ virtual PBoolean OnPOSTData(
PHTTPRequest & request, ///< request information
const PStringToString & data ///< Variables in the POST data.
);
@@ -1160,9 +1160,9 @@
specified.
@return
- TRUE if has been modified since.
+ PTrue if has been modified since.
*/
- virtual BOOL IsModifiedSince(
+ virtual PBoolean IsModifiedSince(
const PTime & when ///< Time to see if modified later than
);
@@ -1171,7 +1171,7 @@
@return
Status of load operation.
*/
- virtual BOOL GetExpirationDate(
+ virtual PBoolean GetExpirationDate(
PTime & when ///< Time that the resource expires
);
@@ -1194,9 +1194,9 @@
required by the resource and return the status for the load.
@return
- TRUE if all OK, FALSE if an error occurred.
+ PTrue if all OK, PFalse if an error occurred.
*/
- virtual BOOL LoadHeaders(
+ virtual PBoolean LoadHeaders(
PHTTPRequest & request ///< Information on this request.
) = 0;
@@ -1215,9 +1215,9 @@
if successful, call the #OnLoadedText()# function.
@return
- TRUE if there is still more to load.
+ PTrue if there is still more to load.
*/
- virtual BOOL LoadData(
+ virtual PBoolean LoadData(
PHTTPRequest & request, ///< Information on this request.
PCharArray & data ///< Data used in reply.
);
@@ -1251,9 +1251,9 @@
success.
@return
- TRUE if the connection may persist, FALSE if the connection must close
+ PTrue if the connection may persist, PFalse if the connection must close
*/
- virtual BOOL Post(
+ virtual PBoolean Post(
PHTTPRequest & request, ///< Information on this request.
const PStringToString & data, ///< Variables in the POST data.
PHTML & replyMessage ///< Reply message for post.
@@ -1263,12 +1263,12 @@
protected:
/** See if the resource is authorised given the mime info
*/
- virtual BOOL CheckAuthority(
+ virtual PBoolean CheckAuthority(
PHTTPServer & server, ///< Server to send response to.
const PHTTPRequest & request, ///< Information on this request.
const PHTTPConnectionInfo & conInfo ///< Information on the connection
);
- static BOOL CheckAuthority(
+ static PBoolean CheckAuthority(
PHTTPAuthority & authority,
PHTTPServer & server,
const PHTTPRequest & request,
@@ -1277,12 +1277,12 @@
/** common code for GET and HEAD commands */
- virtual BOOL OnGETOrHEAD(
+ virtual PBoolean OnGETOrHEAD(
PHTTPServer & server, ///< HTTP server that received the request
const PURL & url, ///< Universal Resource Locator for document.
const PMIMEInfo & info, ///< Extra MIME information in command.
const PHTTPConnectionInfo & conInfo,
- BOOL IsGet
+ PBoolean IsGet
);
/// Base URL for the resource, may accept URLS with a longer hierarchy
@@ -1346,9 +1346,9 @@
required by the resource and return the status for the load.
@return
- TRUE if all OK, FALSE if an error occurred.
+ PTrue if all OK, PFalse if an error occurred.
*/
- virtual BOOL LoadHeaders(
+ virtual PBoolean LoadHeaders(
PHTTPRequest & request // Information on this request.
);
@@ -1450,18 +1450,18 @@
required by the resource and return the status for the load.
@return
- TRUE if all OK, FALSE if an error occurred.
+ PTrue if all OK, PFalse if an error occurred.
*/
- virtual BOOL LoadHeaders(
+ virtual PBoolean LoadHeaders(
PHTTPRequest & request // Information on this request.
);
/** Get a block of data that the resource contains.
@return
- TRUE if more to load.
+ PTrue if more to load.
*/
- virtual BOOL LoadData(
+ virtual PBoolean LoadData(
PHTTPRequest & request, // Information on this request.
PCharArray & data // Data used in reply.
);
@@ -1563,18 +1563,18 @@
required by the resource and return the status for the load.
@return
- TRUE if all OK, FALSE if an error occurred.
+ PTrue if all OK, PFalse if an error occurred.
*/
- virtual BOOL LoadHeaders(
+ virtual PBoolean LoadHeaders(
PHTTPRequest & request // Information on this request.
);
/** Get a block of data that the resource contains.
@return
- TRUE if more to load.
+ PTrue if more to load.
*/
- virtual BOOL LoadData(
+ virtual PBoolean LoadData(
PHTTPRequest & request, // Information on this request.
PCharArray & data // Data used in reply.
);
@@ -1631,9 +1631,9 @@
required by the resource and return the status for the load.
@return
- TRUE if all OK, FALSE if an error occurred.
+ PTrue if all OK, PFalse if an error occurred.
*/
- virtual BOOL LoadHeaders(
+ virtual PBoolean LoadHeaders(
PHTTPRequest & request /// Information on this request.
);
@@ -1661,20 +1661,20 @@
/** Enable or disable directory listings when a default directory file does not exist
*/
- void AllowDirectories(BOOL enable = TRUE);
+ void AllowDirectories(PBoolean enable = PTrue);
protected:
- BOOL CheckAuthority(
+ PBoolean CheckAuthority(
PHTTPServer & server, // Server to send response to.
const PHTTPRequest & request, // Information on this request.
const PHTTPConnectionInfo & conInfo // Information on the connection
);
- BOOL FindAuthorisations(const PDirectory & dir, PString & realm, PStringToString & authorisations);
+ PBoolean FindAuthorisations(const PDirectory & dir, PString & realm, PStringToString & authorisations);
PDirectory basePath;
PString authorisationRealm;
- BOOL allowDirectoryListing;
+ PBoolean allowDirectoryListing;
};
Modified: ptlib/trunk/include/ptclib/httpform.h
===================================================================
--- ptlib/trunk/include/ptclib/httpform.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/httpform.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -161,7 +161,7 @@
@return
String for field value.
*/
- virtual PString GetValue(BOOL dflt = FALSE) const = 0;
+ virtual PString GetValue(PBoolean dflt = PFalse) const = 0;
/** Set the value of the field.
*/
@@ -186,9 +186,9 @@
/** Validate the new field value before #SetValue()# is called.
@return
- BOOL if the new field value is OK.
+ PBoolean if the new field value is OK.
*/
- virtual BOOL Validated(
+ virtual PBoolean Validated(
const PString & newVal, // Proposed new value for the field.
PStringStream & msg // Stream to take error HTML if value not valid.
) const;
@@ -210,23 +210,23 @@
/** Validate the new field value in a list before #SetValue()# is called.
@return
- BOOL if the all the new field values are OK.
+ PBoolean if the all the new field values are OK.
*/
- virtual BOOL ValidateAll(
+ virtual PBoolean ValidateAll(
const PStringToString & data, // Proposed new value for the field.
PStringStream & msg // Stream to take error HTML if value not valid.
) const;
- BOOL NotYetInHTML() const { return notInHTML; }
- void SetInHTML() { notInHTML = FALSE; }
+ PBoolean NotYetInHTML() const { return notInHTML; }
+ void SetInHTML() { notInHTML = PFalse; }
protected:
PCaselessString baseName;
PCaselessString fullName;
PString title;
PString help;
- BOOL notInHTML;
+ PBoolean notInHTML;
};
@@ -266,7 +266,7 @@
PHTML & html // HTML to receive the field info.
) const;
- virtual PString GetValue(BOOL dflt = FALSE) const;
+ virtual PString GetValue(PBoolean dflt = PFalse) const;
virtual void SetValue(
const PString & newValue // New value for the field.
@@ -284,7 +284,7 @@
const PStringToString & data // New value for the field.
);
- virtual BOOL ValidateAll(
+ virtual PBoolean ValidateAll(
const PStringToString & data, // Proposed new value for the field.
PStringStream & msg // Stream to take error HTML if value not valid.
) const;
@@ -338,7 +338,7 @@
public:
PHTTPFieldArray(
PHTTPField * baseField,
- BOOL ordered,
+ PBoolean ordered,
PINDEX fixedSize = 0
);
@@ -383,8 +383,8 @@
void SetArrayFieldName(PINDEX idx) const;
PHTTPField * baseField;
- BOOL orderedArray;
- BOOL canAddElements;
+ PBoolean orderedArray;
+ PBoolean canAddElements;
};
@@ -412,7 +412,7 @@
PHTML & html ///< HTML to receive the field info.
) const;
- virtual PString GetValue(BOOL dflt = FALSE) const;
+ virtual PString GetValue(PBoolean dflt = PFalse) const;
virtual void SetValue(
const PString & newVal
@@ -450,7 +450,7 @@
PHTML & html ///< HTML to receive the field info.
) const;
- virtual PString GetValue(BOOL dflt = FALSE) const;
+ virtual PString GetValue(PBoolean dflt = PFalse) const;
virtual void SetValue(
const PString & newVal
@@ -486,7 +486,7 @@
PHTML & html ///< HTML to receive the field info.
) const;
- virtual PString GetValue(BOOL dflt = FALSE) const;
+ virtual PString GetValue(PBoolean dflt = PFalse) const;
virtual void SetValue(
const PString & newVal
@@ -499,7 +499,7 @@
PConfig & cfg ///< Configuration for value transfer.
) const;
- virtual BOOL Validated(
+ virtual PBoolean Validated(
const PString & newVal,
PStringStream & msg
) const;
@@ -518,13 +518,13 @@
public:
PHTTPBooleanField(
const char * name,
- BOOL initVal = FALSE,
+ PBoolean initVal = PFalse,
const char * help = NULL
);
PHTTPBooleanField(
const char * name,
const char * title,
- BOOL initVal = FALSE,
+ PBoolean initVal = PFalse,
const char * help = NULL
);
@@ -538,7 +538,7 @@
const PString & input
) const;
- virtual PString GetValue(BOOL dflt = FALSE) const;
+ virtual PString GetValue(PBoolean dflt = PFalse) const;
virtual void SetValue(
const PString & newVal
@@ -553,7 +553,7 @@
protected:
- BOOL value, initialValue;
+ PBoolean value, initialValue;
};
@@ -632,7 +632,7 @@
const PString & input
) const;
- virtual PString GetValue(BOOL dflt = FALSE) const;
+ virtual PString GetValue(PBoolean dflt = PFalse) const;
virtual void SetValue(
const PString & newVal
@@ -686,7 +686,7 @@
PHTML & html ///< HTML to receive the field info.
) const;
- virtual PString GetValue(BOOL dflt = FALSE) const;
+ virtual PString GetValue(PBoolean dflt = PFalse) const;
virtual void SetValue(
const PString & newVal
@@ -731,7 +731,7 @@
PHTTPRequest & request, ///< Information on this request.
PString & text ///< Data used in reply.
);
- virtual BOOL Post(
+ virtual PBoolean Post(
PHTTPRequest & request, ///< Information on this request.
const PStringToString & data, ///< Variables in the POST data.
PHTML & replyMessage ///< Reply message for post.
@@ -800,7 +800,7 @@
PHTTPRequest & request, ///< Information on this request.
PString & text ///< Data used in reply.
);
- virtual BOOL Post(
+ virtual PBoolean Post(
PHTTPRequest & request, ///< Information on this request.
const PStringToString & data, ///< Variables in the POST data.
PHTML & replyMessage ///< Reply message for post.
@@ -877,7 +877,7 @@
PHTTPRequest & request, ///< Information on this request.
PString & text ///< Data used in reply.
);
- virtual BOOL Post(
+ virtual PBoolean Post(
PHTTPRequest & request, ///< Information on this request.
const PStringToString & data, ///< Variables in the POST data.
PHTML & replyMessage ///< Reply message for post.
Modified: ptlib/trunk/include/ptclib/httpsvc.h
===================================================================
--- ptlib/trunk/include/ptclib/httpsvc.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/httpsvc.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -104,21 +104,21 @@
PHTTPServiceProcess(const Info & inf);
~PHTTPServiceProcess();
- BOOL OnStart();
+ PBoolean OnStart();
void OnStop();
- BOOL OnPause();
+ PBoolean OnPause();
void OnContinue();
const char * GetServiceDependencies() const;
virtual void OnConfigChanged() = 0;
- virtual BOOL Initialise(const char * initMsg) = 0;
+ virtual PBoolean Initialise(const char * initMsg) = 0;
- BOOL ListenForHTTP(
+ PBoolean ListenForHTTP(
WORD port,
PSocket::Reusability reuse = PSocket::CanReuseAddress,
PINDEX stackSize = 0x4000
);
- BOOL ListenForHTTP(
+ PBoolean ListenForHTTP(
PSocket * listener,
PSocket::Reusability reuse = PSocket::CanReuseAddress,
PINDEX stackSize = 0x4000
@@ -138,18 +138,18 @@
const PTEACypher::Key & GetProductKey() const { return productKey; }
const PStringArray & GetSecuredKeys() const { return securedKeys; }
const PTEACypher::Key & GetSignatureKey() const { return signatureKey; }
- BOOL ShouldIgnoreSignatures() const { return ignoreSignatures; }
- void SetIgnoreSignatures(BOOL ig) { ignoreSignatures = ig; }
+ PBoolean ShouldIgnoreSignatures() const { return ignoreSignatures; }
+ void SetIgnoreSignatures(PBoolean ig) { ignoreSignatures = ig; }
static PHTTPServiceProcess & Current();
virtual void AddRegisteredText(PHTML & html);
virtual void AddUnregisteredText(PHTML & html);
- virtual BOOL SubstituteEquivalSequence(PHTTPRequest & request, const PString &, PString &);
+ virtual PBoolean SubstituteEquivalSequence(PHTTPRequest & request, const PString &, PString &);
virtual PHTTPServer * CreateHTTPServer(PTCPSocket & socket);
virtual PHTTPServer * OnCreateHTTPServer(const PHTTPSpace & urlSpace);
PTCPSocket * AcceptHTTP();
- BOOL ProcessHTTP(PTCPSocket & socket);
+ PBoolean ProcessHTTP(PTCPSocket & socket);
protected:
PSocket * httpListeningSocket;
@@ -159,7 +159,7 @@
PTEACypher::Key productKey;
PStringArray securedKeys;
PTEACypher::Key signatureKey;
- BOOL ignoreSignatures;
+ PBoolean ignoreSignatures;
PTime compilationDate;
PString manufacturersHomePage;
@@ -206,7 +206,7 @@
void OnLoadedText(PHTTPRequest &, PString & text);
- BOOL OnPOST(
+ PBoolean OnPOST(
PHTTPServer & server,
const PURL & url,
const PMIMEInfo & info,
@@ -214,14 +214,14 @@
const PHTTPConnectionInfo & connectInfo
);
- virtual BOOL Post(
+ virtual PBoolean Post(
PHTTPRequest & request, ///< Information on this request.
const PStringToString & data, ///< Variables in the POST data.
PHTML & replyMessage ///< Reply message for post.
);
protected:
- virtual BOOL GetExpirationDate(
+ virtual PBoolean GetExpirationDate(
PTime & when ///< Time that the resource expires
);
@@ -249,7 +249,7 @@
void OnLoadedText(PHTTPRequest &, PString & text);
- BOOL OnPOST(
+ PBoolean OnPOST(
PHTTPServer & server,
const PURL & url,
const PMIMEInfo & info,
@@ -257,14 +257,14 @@
const PHTTPConnectionInfo & connectInfo
);
- virtual BOOL Post(
+ virtual PBoolean Post(
PHTTPRequest & request, ///< Information on this request.
const PStringToString & data, ///< Variables in the POST data.
PHTML & replyMessage ///< Reply message for post.
);
protected:
- virtual BOOL GetExpirationDate(
+ virtual PBoolean GetExpirationDate(
PTime & when ///< Time that the resource expires
);
@@ -288,7 +288,7 @@
);
void OnLoadedText(PHTTPRequest & request, PString & text);
- virtual BOOL Post(
+ virtual PBoolean Post(
PHTTPRequest & request, ///< Information on this request.
const PStringToString & data, ///< Variables in the POST data.
PHTML & replyMessage ///< Reply message for post.
@@ -322,8 +322,8 @@
static PString CalculateSignature(const PString & out);
static PString CalculateSignature(const PString & out, const PTEACypher::Key & sig);
- BOOL CheckSignature();
- static BOOL CheckSignature(const PString & html);
+ PBoolean CheckSignature();
+ static PBoolean CheckSignature(const PString & html);
enum MacroOptions {
NoOptions = 0,
@@ -332,7 +332,7 @@
NoURLOverride = 4,
NoSignatureForFile = 8
};
- static BOOL ProcessMacros(PHTTPRequest & request,
+ static PBoolean ProcessMacros(PHTTPRequest & request,
PString & text,
const PString & filename,
unsigned options);
@@ -344,8 +344,8 @@
class PServiceMacro : public PObject
{
public:
- PServiceMacro(const char * name, BOOL isBlock);
- PServiceMacro(const PCaselessString & name, BOOL isBlock);
+ PServiceMacro(const char * name, PBoolean isBlock);
+ PServiceMacro(const PCaselessString & name, PBoolean isBlock);
Comparison Compare(const PObject & obj) const;
virtual PString Translate(
PHTTPRequest & request,
@@ -354,7 +354,7 @@
) const;
protected:
const char * macroName;
- BOOL isMacroBlock;
+ PBoolean isMacroBlock;
PServiceMacro * link;
static PServiceMacro * list;
friend class PServiceMacros_list;
@@ -366,7 +366,7 @@
#define PCREATE_SERVICE_MACRO(name, request, args) \
class PServiceMacro_##name : public PServiceMacro { \
public: \
- PServiceMacro_##name() : PServiceMacro(#name, FALSE) { } \
+ PServiceMacro_##name() : PServiceMacro(#name, PFalse) { } \
PString Translate(PHTTPRequest &, const PString &, const PString &) const; \
}; \
static const PServiceMacro_##name serviceMacro_##name; \
@@ -377,7 +377,7 @@
#define PCREATE_SERVICE_MACRO_BLOCK(name, request, args, block) \
class PServiceMacro_##name : public PServiceMacro { \
public: \
- PServiceMacro_##name() : PServiceMacro(#name, TRUE) { } \
+ PServiceMacro_##name() : PServiceMacro(#name, PTrue) { } \
PString Translate(PHTTPRequest &, const PString &, const PString &) const; \
}; \
static const PServiceMacro_##name serviceMacro_##name; \
@@ -409,7 +409,7 @@
PString LoadText(PHTTPRequest &);
protected:
- virtual BOOL GetExpirationDate(
+ virtual PBoolean GetExpirationDate(
PTime & when ///< Time that the resource expires
);
};
@@ -419,43 +419,45 @@
{
PCLASSINFO(PServiceHTTPFile, PHTTPFile)
public:
- PServiceHTTPFile(const PString & filename, BOOL needSig = FALSE)
+ PServiceHTTPFile(const PString & filename, PBoolean needSig = PFalse)
: PHTTPFile(filename) { needSignature = needSig; }
- PServiceHTTPFile(const PString & filename, const PFilePath & file, BOOL needSig = FALSE)
+ PServiceHTTPFile(const PString & filename, const PFilePath & file, PBoolean needSig = PFalse)
: PHTTPFile(filename, file) { needSignature = needSig; }
- PServiceHTTPFile(const PString & filename, const PHTTPAuthority & auth, BOOL needSig = FALSE)
+ PServiceHTTPFile(const PString & filename, const PString & file, PBoolean needSig = PFalse)
+ : PHTTPFile(filename, file) { needSignature = needSig; }
+ PServiceHTTPFile(const PString & filename, const PHTTPAuthority & auth, PBoolean needSig = PFalse)
: PHTTPFile(filename, auth) { needSignature = needSig; }
- PServiceHTTPFile(const PString & filename, const PFilePath & file, const PHTTPAuthority & auth, BOOL needSig = FALSE)
+ PServiceHTTPFile(const PString & filename, const PFilePath & file, const PHTTPAuthority & auth, PBoolean needSig = PFalse)
: PHTTPFile(filename, file, auth) { needSignature = needSig; }
void OnLoadedText(PHTTPRequest &, PString & text);
protected:
- virtual BOOL GetExpirationDate(
+ virtual PBoolean GetExpirationDate(
PTime & when ///< Time that the resource expires
);
- BOOL needSignature;
+ PBoolean needSignature;
};
class PServiceHTTPDirectory : public PHTTPDirectory
{
PCLASSINFO(PServiceHTTPDirectory, PHTTPDirectory)
public:
- PServiceHTTPDirectory(const PURL & url, const PDirectory & dirname, BOOL needSig = FALSE)
+ PServiceHTTPDirectory(const PURL & url, const PDirectory & dirname, PBoolean needSig = PFalse)
: PHTTPDirectory(url, dirname) { needSignature = needSig; }
- PServiceHTTPDirectory(const PURL & url, const PDirectory & dirname, const PHTTPAuthority & auth, BOOL needSig = FALSE)
+ PServiceHTTPDirectory(const PURL & url, const PDirectory & dirname, const PHTTPAuthority & auth, PBoolean needSig = PFalse)
: PHTTPDirectory(url, dirname, auth) { needSignature = needSig; }
void OnLoadedText(PHTTPRequest &, PString & text);
protected:
- virtual BOOL GetExpirationDate(
+ virtual PBoolean GetExpirationDate(
PTime & when ///< Time that the resource expires
);
- BOOL needSignature;
+ PBoolean needSignature;
};
Modified: ptlib/trunk/include/ptclib/inetmail.h
===================================================================
--- ptlib/trunk/include/ptclib/inetmail.h 2007-11-29 09:17:08 UTC (rev 19007)
+++ ptlib/trunk/include/ptclib/inetmail.h 2007-11-29 09:17:41 UTC (rev 19008)
@@ -67,7 +67,7 @@
capabilities, but these two will give a basic SMTP server functionality.
The server socket thread would continuously call the
- <A>ProcessMessage()</A> function until it returns FALSE. This will then
+ <A>ProcessMessage()</A> function until it returns PFalse. This will then
call the appropriate virtual function on parsing the SMTP protocol.
*/
class PSMTP : public PInternetProtocol
@@ -128,9 +128,9 @@
/** Close the socket, and if connected as a client, QUITs from server.
@return
- TRUE if the channel was closed and the QUIT accepted by the server.
+ PTrue if the channel was closed and the QUIT accepted by the server.
*/
- virtual BOOL Close();
+ virtual PBoolean Close();
// New functions for class.
@@ -139,9 +139,9 @@
and a common method is found
@return
- TRUE if logged in.
+ PTrue if logged in.
*/
- BOOL LogIn(
+ PBoolean LogIn(
const PString & username, ///< User name on remote system.
const PString & password ///< Password for user name.
);
@@ -152,39 +152,39 @@
@@ Diff output truncated at 100000 characters. @@
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|