Table 4.1. Qore Class List
Name | Description |
---|---|
For reading and writing files. | |
For handling of directories, listing files, and creating/removing subdirectories. | |
For communicating with FTP servers. | |
For processing command-line options. | |
For parsing and executing application-embedded or user-supplied logic. | |
For communication with IPv4 sockets with and without TSL/SSL encryption. | |
Used when getting or setting terminal settings. | |
For communication with HTTP servers with and without TSL/SSL encryption. | |
For communication using the XML-RPC protocol with and without TSL/SSL encryption. | |
For communication using the JSON-RPC protocol with and without TSL/SSL encryption. | |
For working with X.509 certificates. | |
For working with private key data. | |
For working with databases; provides the user interface to qore DBI drivers. | |
Provides transparent per-thread, per-transaction Datasource connection pooling. | |
A helper class for the Gate class for exception-safe Gate handling. | |
A helper class for the Mutex class for exception-safe Mutex handling. | |
A helper class for the RWLock class for exception-safe read lock handling. | |
A helper class for the RWLock class for exception-safe write lock handling. | |
For blocking a thread until a condition becomes true. | |
For blocking a thread until a counter becomes zero. | |
A reentrant thread lock. | |
A simple thread lock. | |
A blocking, thread-safe queue class, useful for message passing (can also be used as a stack). | |
DEPRECATED: A reentrant thread lock; use Gate instead. | |
A read-write thread lock. | |
A thread-safe integral counter. | |
For analyzing and manipulating XML documents. | |
Gives information about XML data in an XML document. | |
For parsing or iterating through the elements of an XML document. |
The following constants are defined in the Qore namespace.
Table 4.2. Build and Version Constants
Key | Description |
---|---|
| The operating system used to build the Qore library. |
| The CPU used as a target for the Qore library build. |
| The full version string for this version of the Qore library. |
| An integer giving the Qore library's major version number. |
| An integer giving the Qore library's minor version number. |
| An integer giving the Qore library's release version number. |
| An integer giving the Qore library's subversion revision number. |
| A string giving information about the host used to compile the Qore library. |
| The compiler used to build the Qore library. |
| The compiler flags used to compile the Qore library. |
| The linker flags used to link the Qore library. |
Table 4.3. Library Options
Name | Type | Description |
---|---|---|
| Boolean | Indicates if the Qore library supports fast atomic reference counting |
| Boolean | Indicates if protection against stack overruns is provided |
| Boolean | Indicates if active thread stack tracing has been enabled as a debugging option and if the getAllThreadCallStacks() function is available. |
| Boolean | Indicates if the round() function is available. |
| Boolean | Indicates if the timegm() function is available. |
| Boolean | Indicates if the seteuid() function is available. |
| Boolean | Indicates if the setegid() function is available. |
| Boolean | Indicates if the parseXMLWithSchema() function is available. |
| Boolean | Indicates if the openssl library used to build the qore library supported the SHA224 algorithm and therefore if the SHA224() and SHA224_bin() functions are available. |
| Boolean | Indicates if the openssl library used to build the qore library supported the SHA256 algorithm and therefore if the SHA256() and SHA256_bin() functions are available. |
| Boolean | Indicates if the openssl library used to build the qore library supported the SHA384 algorithm and therefore if the SHA384() and SHA384_bin() functions are available. |
| Boolean | Indicates if the openssl library used to build the qore library supported the SHA512 algorithm and therefore if the SHA512() and SHA512_bin() functions are available. |
| Boolean | Indicates if the openssl library used to build the qore library supported the MDC2 algorithm and therefore if the MDC2() and MDC2_bin() functions are available. |
| Boolean | Indicates if the openssl library used to build the qore library supported the RC5 encryption algorithm and therefore if the rc5_encrypt_cbc(), rc5_decrypt_cbc() and rc5_encrypt_cbc_to_string() functions are available. |
Table 4.4. Boolean Constants in the Qore Namespace
Name | Type | Description |
---|---|---|
| Boolean | True |
| Boolean | False |
Table 4.6. Event Constants
Name | Value | Description |
---|---|---|
| Raised when a network packet is received. | |
| Raised when a network packet is sent. | |
| Raised when the HTTP "Content-Length" header is received. | |
| Raised when HTTP chunked data is about to be received. | |
| Raised when all HTTP chunked data has been received. | |
| Raised when an HTTP redirect message is received. | |
| Raised when a socket is closed. | |
| Raised when the object being monitored is deleted. | |
| Raised immediately before an FTP control message is sent. | |
| Raised when an FTP reply is received on the control channel. | |
| Raised when a hostname lookup is attempted. | |
| Raised when a hostname lookup is resolved. | |
| Raised when an HTTP message is sent. | |
| Raised when an HTTP message is received. | |
| Raised when HTTP footers are received. | |
| Raised when a block of HTTP chunked data is received. | |
| Raised when the next chunk size for HTTP chunked data is known. | |
| Raised right before a socket connection attempt is made. | |
| Raised when the socket connection has been established. | |
| Raised when socket SSL negotiation starts. | |
| Raised when SSL communication has been negotiated and established. | |
| Raised right before a file is opened. | |
| Raised when a file has been successfully opened. | |
| Raised when data has been read from a file. | |
| Raised when data has been written to a file. | |
This constant is a hash that maps event numbers to string descriptions as described in this table. |
Table 4.7. Event Map Hash Constant
Key | String Value |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Table 4.9. Network Address Type Constants
Name | Description |
---|---|
| Designates an IPv4 network addresses. |
| Designates an IPv6 network addresses. |
| Designates a local socket file name (interchangeable with |
| POSIX synonym for |
Table 4.10. Terminal Attributes Local Mode Constants
Name | Description |
---|---|
| visual erase for line kill |
| visually erase chars |
| enable echoing |
| echo NL even if ECHO is off |
| visual erase mode for hardcopy |
| enable signals INTR, QUIT, [D]SUSP |
| canonicalize input lines |
| enable DISCARD and LNEXT |
| stop background jobs from output |
| output being flushed (state) |
| retype pending input (state) |
| don't flush after interrupt |
| use alternate WERASE algorithm (this constant is only available on some systems; do not use in portable programs) |
| external processing (this constant is only available on some systems; do not use in portable programs) |
| no kernel output from VSTATUS (this constant is only available on some systems; do not use in portable programs) |
Table 4.11. Terminal Attributes Control Mode Constants
Name | Description |
---|---|
| character size mask |
| 5 bits (pseudo) |
| 6 bits |
| 7 bits |
| 8 bits |
| send 2 stop bits |
| enable receiver |
| parity enable |
| odd parity, else even |
| hang up on last close |
| ignore modem status lines |
| CTS flow control of output (this constant is only available on some systems; do not use in portable programs) |
| same as CCTS_OFLOW (this constant is only available on some systems; do not use in portable programs) |
| RTS flow control of input (this constant is only available on some systems; do not use in portable programs) |
| flow control output via Carrier (this constant is only available on some systems; do not use in portable programs) |
Table 4.12. Terminal Attributes Output Mode Constants
Name | Description |
---|---|
| enable following output processing |
| map NL to CR-NL (ala CRMOD) |
| map CR to NL |
| No CR output at column 0 |
| NL performs CR function |
| expand tabs to spaces (this constant is only available on some systems; do not use in portable programs) |
| discard EOT's ctrl-D on output (this constant is only available on some systems; do not use in portable programs) |
| translate lower case to upper case (this constant is only available on some systems; do not use in portable programs) |
Table 4.13. Terminal Attributes Input Mode Constants
Name | Description |
---|---|
| ignore BREAK condition |
| map BREAK to SIGINTR |
| ignore (discard) parity errors |
| mark parity and framing errors |
| enable checking of parity errors |
| strip 8th bit off chars |
| map NL into CR |
| ignore CR |
| map CR to NL (ala CRMOD) |
| enable output flow control |
| enable input flow control |
| any char will restart after stop |
| ring bell on input queue full |
| translate upper case to lower case (this constant is only available on some systems; do not use in portable programs) |
Table 4.14. Terminal Attributes Control Character Constants
Name | Special Character | Default Value |
---|---|---|
|
| ^D |
|
| _POSIX_VDISABLE |
|
| _POSIX_VDISABLE |
|
| ^? `177' |
|
| ^W |
|
| ^U |
|
| ^C |
|
| ^\ `34' |
|
| ^Z |
|
| ^Q |
|
| ^S |
|
| ^V |
| n/a | 1 |
| n/a | 0 |
|
| ^R (this constant is only available on some systems; do not use in portable programs) |
|
| ^Y (this constant is only available on some systems; do not use in portable programs) |
|
| ^O (this constant is only available on some systems; do not use in portable programs) |
| n/a | ^T (this constant is only available on some systems; do not use in portable programs) |
The X509_VerificationReasons_Hash
is a constant in the Qore namespace that maps verfication code strings (as returned from FtpClient::verifyPeerCertificate() and Socket::verifyPeerCertificate()) to textual descriptions.
Table 4.15. X506_VerificationReasons Hash
Key | Value |
---|---|
|
|
| Unable to get issuer certificate |
| Unable to get certificate CRL |
| Unable to decrypt certificate's signature. This means that the actual signature value could not be determined rather than it not matching the expected value; this is only meaningful for RSA |
| Unable to decrypt CRL's signature |
| Unable to decode issuer public key (SubjectPublicKeyInfo) |
| Certificate signature failure; the signature of the certificate is invalid |
| CRL signature failure; the signature of the certificate is invalid |
| Certificate is not yet valid |
| Certificate has expired |
| CRL is not yet valid |
| CRL has expired |
| Format error in certificate's notBefore field (invalid time) |
| Format error in certificate's notAfter field (invalid time) |
| Format error in CRL's lastUpdate field (invalid time) |
| Format error in CRL's nextUpdate field (invalid time) |
| Out of memory error |
| Certificate is self-signed and cannot be found in the trusted list |
| Self signed certificate in certificate chain |
| Unable to get local issuer certificate. This normally means the list of trusted certificates is not complete |
| Unable to verify the first certificate |
| Certificate chain too long |
| Certificate has been revoked |
| Invalid CA certificate |
| The basicConstraints pathlength parameter has been exceeded |
| The certificate cannot be used for the specified purpose |
| Root CA is not marked as trusted for the specified purpose |
| Root CA is marked to reject the specified purpose |
| The current candidate issuer certificate was rejected because its subject name did not match the issuer name of the current certificate |
| The current candidate issuer certificate was rejected because its subject key identifier was present and did not match the authority key identifier of the current certificate |
| Issuer name and serial number of candidate certificate do not match the authority key identifier of the current certificate |
| The keyUsage extension does not permit certificate signing |
| Verification failure |
The following gives a list of signal constants that may be present in Qore. Signal constants and their values are system-dependent; only signals that the host system defines will be present in Qore, therefore not all of the signals in the following list will be present in any given version of Qore.
Table 4.16. Signal Constants in the Qore Namespace
Name | Description |
---|---|
| Hangup signal. |
| Interrupt signal. |
| Quit signal. |
| Illegal instruction signal. |
| Trace trap signal. |
| Abort signal. |
| Pollable event signal. |
| Synonym for SIBABRT |
| EMT instruction signal. |
| Floating-point exception signal. |
| Kill signal (cannot be caught) |
| Bus error signal. |
| Segmentation violation signal. |
| Bad arugment to a system call. |
| Write on pipe with no reader (this signal is always ignored in Qore). |
| Alarm clock signal. |
| Software termination signal. |
| Urgent condition on I/O channel. |
| Sendable stop signal (not from tty). |
| Stop signal from tty. |
| Continue a stopped process. |
| To parent on child stop or exit. |
| To reader's process group on background tty read. |
| To writer's process group on background tty write. |
| Input/Output possible signal. |
| Exceeded CPU time limit. |
| Exceeded file size limit. |
| Virtual time alarm signal. |
| Profiling time alarm signal. |
| Window size changes signal. |
| Information request signal. |
| User-defined signal 1. |
| User-defined signal 2. |
| Stack fault on coprocessor. |
| Synonym for SIGCHLD on some systems. |
| Power failure signal. |
| Resource (ex: file lock) lost signal. |
| (Solaris) Waiting signal. |
| (Solaris) Light-weight process (thread) signal. |
| (Solaris) Checkpoint freeze signal. |
| (Solaris) Checkpoint freeze thaw signal. |
| (Solaris) Cancel signal. |
| (Solaris) Resource control exceeded. |
| (Solaris) Java virtual machine 1 signal. |
| (Solaris) Java virtual machine 2 signal. |
There are two special system-specific constants mapping signal names to signal number and vice-versa as given in the following table.
Table 4.17. Signal Mapping Hash Constants in the Qore Namespace
Name | Description |
---|---|
| A hash mapping signal numbers to signal names (ex: |
| A hash mapping signal names to signal numbers (ex: |
The Err namespace contains error constants, returned by the errno() function.
Table 4.18. Error Constants in the Err Namespace
Name | Type | Description |
---|---|---|
| Integer | System-dependent integer ERRNO constants (ex: ENOMEM, etc) |
Table 4.19. Exception Constants in the Qore Namespace
Name | Type | Description |
---|---|---|
| String | Exception Type System: used for system exceptions. |
| String | Exception Type User: used for user exceptions (thrown using the throw statement. |
| Integer | Call Type User: used for user function/method calls in a call stack. |
| Integer | Call Type Builtin: used for builtin function/method calls in a call stack. |
| Integer | Call Type New Thread: used in a call stack when a new thread is started with the background expression. |
| Integer | Call Type Rethrow: a marker for a rethrown exception in a call stack. |
Table 4.20. Regular Expression Option Constants in the Qore Namespace
Name | Type and Value | Description |
---|---|---|
| Integer: 1 | Ignores case when matching regular expressions, equivalent to /i |
| Integer: 2 | makes start-of-line (^) or end-of-line ($) match after or before any newline in the subject string, equivalent to /m |
| Integer: 4 | makes a dot (.) match a newline character, equivalent to /s |
| Integer: 8 | ignores whitespace characters and enables comments prefixed by #, equivalent to /x |