Commit Graph

294 Commits

Author SHA1 Message Date
Ioana Stanciu c56216f5a8 Updated copyright notices. 2023-05-23 17:01:06 +03:00
marian 4c2de15148 Added String methods used to append using printf.
Added static String methods to be used with plain C strings: starts/end check, skip string or characters in given set.
Added support to build an AutoGenObject not owning the pointer.
MatchingItem: added dump support, added matching parameters, added random matching.
2023-05-18 15:10:38 +03:00
marian 4b9310defc Added missing virtual to Socket::accept(). 2023-05-18 14:48:26 +03:00
Ioana Stanciu 75bd7e1ee6 Add base class for capture packet class.
Add base classes for capturing packets: CaptureInfo and Capture.
Allow installing filter in sockets for sending packets also.
2023-05-15 16:47:07 +03:00
marian e53907837b Added matching item classes to be used for multiple parameter(s) matching.
Includes support to match using regular expressions and list of matching items.
Conditions may be negated.
2023-03-27 15:55:48 +03:00
marian 2e328ade82 Added AutoGenObject class holding and owning a GenObject pointer. Suitable to be used for temporary stack variables.
Added ObjVector resize() method: change ObjVector length, keep old data if requested.
2023-03-02 16:24:38 +02:00
marian c917a77169 Constified String::hexify() input data parameter. 2023-03-02 15:02:17 +02:00
marian bf023b8eb9 Fixed documentation.
git-svn-id: http://voip.null.ro/svn/yate@6578 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 10:27:15 +00:00
marian 5c88e2acf8 Added DataBlock utility methods used to insert/append hex strings. Added methods used to insert/append integers using lsb/msb direction. Added static methods used to manipulate raw data (copy/move). Added optimized sqlEscape() method variant: append data to a given string.
git-svn-id: http://voip.null.ro/svn/yate@6575 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 07:26:09 +00:00
marian 39815923a3 Apply module debug from main config file when initializing plugins at startup. This allows a module to show debug messages on first init.
git-svn-id: http://voip.null.ro/svn/yate@6574 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 06:57:11 +00:00
marian f7df31d03d Added NamedList utility methods used to add/set a parameter from basic types. Added method used to copy parameter from another list with option to add instead of replace.
git-svn-id: http://voip.null.ro/svn/yate@6573 acf43c95-373e-0410-b603-e72c3f656dc1
2022-12-13 06:41:03 +00:00
oana 664f85e763 Add support for read-write lock.
git-svn-id: http://voip.null.ro/svn/yate@6570 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-27 13:51:32 +00:00
marian 44b4069218 Added older version of virtual Socket::bind() using sockaddr pointer with no iface parameters: avoid errors in other (non yate) modules re-implementing it.
git-svn-id: http://voip.null.ro/svn/yate@6569 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-17 08:23:58 +00:00
marian d730689641 Handle interface to bind on along with ip (ip%iface_name) in SocketAddr. Added socket support to bind on interface.
git-svn-id: http://voip.null.ro/svn/yate@6568 acf43c95-373e-0410-b603-e72c3f656dc1
2022-10-11 10:24:50 +00:00
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