Commit Graph

280 Commits

Author SHA1 Message Date
marian 2b6e7b8f94 String. Added append(char) method, added optional parameter to insert(char) used to indicate how many chars to insert. Aded methods for uri (un)escape receiving the destination string as parameter.
git-svn-id: http://voip.null.ro/svn/yate@6567 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-11 10:05:03 +00:00
marian 21d6241621 Added optional extra parameter to NamedList::clearParam() used to clear paraemter(s) matching a given value. Fixed documentation.
git-svn-id: http://voip.null.ro/svn/yate@6562 acf43c95-373e-0410-b603-e72c3f656dc1
2022-06-27 08:22:54 +00:00
marian 1b2871a212 Added template for generic simple object vector.
git-svn-id: http://voip.null.ro/svn/yate@6549 acf43c95-373e-0410-b603-e72c3f656dc1
2022-03-08 11:28:30 +00:00
oana 24711be282 Implemented NamedCounter method that allows adding a specific value to the counter.
git-svn-id: http://voip.null.ro/svn/yate@6541 acf43c95-373e-0410-b603-e72c3f656dc1
2022-02-03 15:49:57 +00:00
marian 2f04202afb Added String::insert().
git-svn-id: http://voip.null.ro/svn/yate@6512 acf43c95-373e-0410-b603-e72c3f656dc1
2021-08-16 06:40:44 +00:00
marian 9512084039 Added NamedList method used to retrieve an unsigned 64bit parameter value.
git-svn-id: http://voip.null.ro/svn/yate@6487 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-14 07:12:02 +00:00
paulc ad17f7adb7 Fixed a buffer overflow in the regexroute $(timestamp) function.
git-svn-id: http://voip.null.ro/svn/yate@6486 acf43c95-373e-0410-b603-e72c3f656dc1
2021-05-04 09:31:13 +00:00
oana 47ad22c8ef Fix compilation errors for hashing functions on Windows.
git-svn-id: http://voip.null.ro/svn/yate@6450 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-30 15:51:34 +00:00
oana 8c81cec648 Fix compilation error introduced by previous commit that was only detected by older compilers: replace erroneous #elif directive with #else.
git-svn-id: http://voip.null.ro/svn/yate@6449 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-30 14:55:13 +00:00
oana 6c73b96287 Add hashing functions for uint32, uint64 and pointer types.
Use pointer hashing function in accessing list that tracks JS objects.



git-svn-id: http://voip.null.ro/svn/yate@6448 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-30 13:56:33 +00:00
oana 100d644ce6 Add methods to HashList that allow adding and removing of an object with arbitrary associated hashes.
git-svn-id: http://voip.null.ro/svn/yate@6441 acf43c95-373e-0410-b603-e72c3f656dc1
2020-10-21 10:44:33 +00:00
oana 8bb8e83faf Add YATE library support for setting and getting the affinity of a thread.
git-svn-id: http://voip.null.ro/svn/yate@6429 acf43c95-373e-0410-b603-e72c3f656dc1
2020-09-23 15:26:34 +00:00
oana 1214822e83 Fix compilation errors on Windows due to lack of definition for strtoull function.
git-svn-id: http://voip.null.ro/svn/yate@6428 acf43c95-373e-0410-b603-e72c3f656dc1
2020-09-23 14:45:59 +00:00
marian 33573bc840 Added support to set a Regexp in message handler filter.
git-svn-id: http://voip.null.ro/svn/yate@6425 acf43c95-373e-0410-b603-e72c3f656dc1
2020-09-22 11:25:41 +00:00
oana aaf34c810a Add String::toUInt64() method which parses an uint64_t from a string.
git-svn-id: http://voip.null.ro/svn/yate@6418 acf43c95-373e-0410-b603-e72c3f656dc1
2020-08-05 13:02:53 +00:00
oana 326e4941d7 Add a trace ID to objects.
Add debugging methods variants that print the trace ID.



git-svn-id: http://voip.null.ro/svn/yate@6402 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 12:00:37 +00:00
paulc 1fd6d25f05 Added support for retrieving the timezone at any time, not just now.
Fixed the Javascript Date getTimezoneOffset() result.


git-svn-id: http://voip.null.ro/svn/yate@6396 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-01 07:38:14 +00:00
marian 2775f7bec8 Added String split method using a regular expression to match the delimiter.
git-svn-id: http://voip.null.ro/svn/yate@6382 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-21 14:13:44 +00:00
marian e7c575815e Added Time methods used to encode to and parse from string containing internet/javascript date and time.
git-svn-id: http://voip.null.ro/svn/yate@6364 acf43c95-373e-0410-b603-e72c3f656dc1
2019-11-08 11:07:12 +00:00
marian b55aeef403 Constifyed String::encodeFlags() methods.
git-svn-id: http://voip.null.ro/svn/yate@6349 acf43c95-373e-0410-b603-e72c3f656dc1
2019-03-28 13:55:51 +00:00
sabina 70c892c42c Implementation of encodeFlags() and decodeFlags functions.
git-svn-id: http://voip.null.ro/svn/yate@6341 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-17 15:24:55 +00:00
marian a0307d368f Added TokenDict64 structure and lookup functions.
git-svn-id: http://voip.null.ro/svn/yate@6340 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-14 14:57:27 +00:00
marian b60d9d067c Added Time methods for 32bit NTP time conversion.
git-svn-id: http://voip.null.ro/svn/yate@6338 acf43c95-373e-0410-b603-e72c3f656dc1
2019-01-14 09:19:22 +00:00
oana c1e5a20c9e Add UTF-16 encoding support to UChar class.
git-svn-id: http://voip.null.ro/svn/yate@6313 acf43c95-373e-0410-b603-e72c3f656dc1
2018-04-25 12:16:54 +00:00
paulc 871aeae4c5 Added a helper class SocketRef and use it instead of all ad-hoc similar classes.
Fixed a memory leak in Jabber SSL listeners.


git-svn-id: http://voip.null.ro/svn/yate@6299 acf43c95-373e-0410-b603-e72c3f656dc1
2018-02-20 11:58:02 +00:00
paulc 277e34b576 Renamed DebugGoOn to DebugCrit so it better matches its purpose.
Swapped order of DebugCall and DebugNote so DebugCall is less visible.
Changed default debug level to DebugNote.
Modified a few inadequate uses of DebugCrit.


git-svn-id: http://voip.null.ro/svn/yate@6250 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 13:08:23 +00:00
paulc afbeb65da9 Added method for URI escaping an entire list of characters.
Escape status detail characters that may disturb status parsing.


git-svn-id: http://voip.null.ro/svn/yate@6184 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-16 11:24:25 +00:00
paulc 59067e6edf Added extra checks for race conditions where CallEndpoint::setEndpoint() may fail.
Added convenience static RefObject::alive() method to check a RefObject pointer.


git-svn-id: http://voip.null.ro/svn/yate@6177 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-27 11:25:29 +00:00
paulc 6b07fea7da Check if YSTRING and YATOM are used incorrectly on a non-literal srting.
git-svn-id: http://voip.null.ro/svn/yate@6161 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-07 12:26:19 +00:00
marian 1a7706033c Added missing getObject() to SocketAddr.
git-svn-id: http://voip.null.ro/svn/yate@6123 acf43c95-373e-0410-b603-e72c3f656dc1
2016-06-28 09:01:13 +00:00
marian eda0aa0102 Added Regexp flag used to avoid regexp re-compile if not changed. Removed valid() method.
git-svn-id: http://voip.null.ro/svn/yate@6099 acf43c95-373e-0410-b603-e72c3f656dc1
2016-03-04 10:24:01 +00:00
marian cf2e0b8842 Added method used to check if a Regexp is valid.
git-svn-id: http://voip.null.ro/svn/yate@6094 acf43c95-373e-0410-b603-e72c3f656dc1
2016-02-19 12:36:51 +00:00
paulc abc755f814 Added support for specifying the mode to mkdir.
git-svn-id: http://voip.null.ro/svn/yate@6061 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-11 17:58:05 +00:00
paulc 1f525da6e9 Added method to retrieve the TOS/DSCP of a Socket.
git-svn-id: http://voip.null.ro/svn/yate@5977 acf43c95-373e-0410-b603-e72c3f656dc1
2015-06-03 14:18:07 +00:00
paulc aa0a6b6a06 Added overallocation support for DataBlock.
This provides improved performance for repeated binary data appending.


git-svn-id: http://voip.null.ro/svn/yate@5973 acf43c95-373e-0410-b603-e72c3f656dc1
2015-05-18 13:12:02 +00:00
paulc f5a5ad41b9 Made String::printf(const char* format, ...) grow with the format string length.
The helper function string_printf is now static.


git-svn-id: http://voip.null.ro/svn/yate@5963 acf43c95-373e-0410-b603-e72c3f656dc1
2015-03-23 15:37:43 +00:00
marian 4b61ebb6a6 Added String constructor from double. Added assignment and append operators from double.
git-svn-id: http://voip.null.ro/svn/yate@5962 acf43c95-373e-0410-b603-e72c3f656dc1
2015-03-19 13:11:45 +00:00
andrei 5faef36bb6 Added a better description and more suggestive parameters for String::appendFixed method.
Clear the String in 'printf' method if 'malloc' fails.


git-svn-id: http://voip.null.ro/svn/yate@5960 acf43c95-373e-0410-b603-e72c3f656dc1
2015-03-13 16:03:42 +00:00
andrei e6c6214688 Added printf style format method for String.
Added utility method to append and align a string on a specified size.


git-svn-id: http://voip.null.ro/svn/yate@5959 acf43c95-373e-0410-b603-e72c3f656dc1
2015-03-13 13:25:35 +00:00
marian 1960b82520 Debug output can now be hooked using a custom function. Added Debugger method used to relay preformatted strings. Added Engine method used to build a command line from current settings. Added Engine methods used to init and cleanup libyate based applications.
git-svn-id: http://voip.null.ro/svn/yate@5942 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-26 09:32:36 +00:00
marian 2c1a6213fe Added accessor for Lockable safety flag.
git-svn-id: http://voip.null.ro/svn/yate@5941 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-19 13:53:38 +00:00
marian daeb8611cc Semaphore initial count can now be set in constructor.
git-svn-id: http://voip.null.ro/svn/yate@5939 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-18 11:36:25 +00:00
paulc c47e08f97a Added NIST FIPS 186-2 change notice 1 Pseudo Random Function with 160 bits SHA-1.
git-svn-id: http://voip.null.ro/svn/yate@5936 acf43c95-373e-0410-b603-e72c3f656dc1
2015-02-05 17:58:39 +00:00
paulc 6f941b4282 Added getInt64Value to NamedList and Configuration classes.
Added getIntValue and getBoolValue to Javascript ConfigFile and ConfigSection.


git-svn-id: http://voip.null.ro/svn/yate@5930 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-22 11:56:16 +00:00
paulc 2659c482e0 Added engine and Javascript methods for packing and unpacking IP addresses.
git-svn-id: http://voip.null.ro/svn/yate@5929 acf43c95-373e-0410-b603-e72c3f656dc1
2014-12-18 15:11:42 +00:00
oana a04eb2606f Add function to the String API for locating the last instance of a substring in a string.
git-svn-id: http://voip.null.ro/svn/yate@5916 acf43c95-373e-0410-b603-e72c3f656dc1
2014-10-16 12:34:11 +00:00
paulc 6ad019ac9c Store TTL in retrieved DNS records.
Add ttl, order and preference to JS returned NAPTR and SRV records.


git-svn-id: http://voip.null.ro/svn/yate@5889 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-31 13:32:54 +00:00
paulc f4a12d2bc4 Added YIGNORE macro to silence compiler warnings about unused values.
Cleaned up a number of compiler warnings.


git-svn-id: http://voip.null.ro/svn/yate@5888 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-31 12:13:52 +00:00
paulc a820bdcf8a Added Resolver support for A, AAAA and TXT records.
git-svn-id: http://voip.null.ro/svn/yate@5874 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-22 11:03:38 +00:00
paulc 3f68863afd Made static String::hash() capable of incremental hashing.
git-svn-id: http://voip.null.ro/svn/yate@5859 acf43c95-373e-0410-b603-e72c3f656dc1
2014-07-02 07:30:37 +00:00