Commit graph

145 commits

Author SHA1 Message Date
paulc
8e07545b79 Double the system idle interval when running in client mode, make it adjustable from the config file.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3163 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-31 09:36:58 +00:00
oana
51b082375f Yate has been ported on Mac OS X.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3153 acf43c95-373e-0410-b603-e72c3f656dc1
2010-03-30 11:49:43 +00:00
marian
2682cdb12e A list parameter can now be removed by pointer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3089 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-18 12:59:50 +00:00
paulc
9eccfa1130 Fixed building in Windows, added sigtransport to build and installer.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3069 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-04 12:50:06 +00:00
paulc
a2fb02ff9e Added method to set the desired SCTP protocol payload identification (PPID).
git-svn-id: http://yate.null.ro/svn/yate/trunk@3066 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-04 01:59:27 +00:00
andrei
e85bb9b262 Added suport for abstract SCTP Socket
git-svn-id: http://yate.null.ro/svn/yate/trunk@3057 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-02 14:21:02 +00:00
paulc
f8311873ee Added a set of classes for evaluating C or SQL style expressions.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3055 acf43c95-373e-0410-b603-e72c3f656dc1
2010-02-01 20:53:47 +00:00
paulc
8ed8bd3095 Added method to retrieve the name of the Thread currently owning a Mutex.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3022 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-16 20:42:25 +00:00
paulc
749f559c9c Made more Socket methods virtual to allow implementing non kernel-based sockets.
Removed SCTP specific methods, they will go in a separate class.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2984 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-14 16:37:08 +00:00
paulc
966a1201b9 Added possibility to repeat the -Dm option to halve the mutex maximum wait time.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2982 acf43c95-373e-0410-b603-e72c3f656dc1
2009-12-10 11:20:50 +00:00
paulc
3a41506f48 Fixed a missing parameter in Lock2::lock() spotted by Allan. Thanks!
git-svn-id: http://yate.null.ro/svn/yate/trunk@2933 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-11 20:37:27 +00:00
paulc
655783fb6b String::uriEscape() takes an extra optional parameter with characters that should not be escaped, for specific cases when a protocol makes some characters unreserved.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2816 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-01 14:32:00 +00:00
paulc
bdbbbc5076 Added NamedList constructor and method to copy subparameters from another list.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2811 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-31 13:36:37 +00:00
paulc
ebd41dfaec Use the platform idle time in various sleeps in SIP and Jabber.
Fixed a compiler warning about the copy constructor of Mutex and 
Semaphore.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2763 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-22 15:41:28 +00:00
paulc
a2812051f2 Added Semaphore class, made Mutex derive from (new class) Lockable, made Lock able to get a lock on any Lockable - Mutex or Semaphore.
Use pthread_mutex_timedlock and sem_timedwait if available on platform.
Fixed a bug in the IAX channel exposed by Mutex having virtual methods.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2761 acf43c95-373e-0410-b603-e72c3f656dc1
2009-07-22 12:57:14 +00:00
paulc
f4b1496a46 Added an unified Thread::idle method, use it instead of arbitrary
sleeps.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2737 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-24 16:47:29 +00:00
paulc
65fa4adbd4 Fixed warnings and a few minor bugs when compiling on a different architecture.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2724 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-19 11:19:20 +00:00
paulc
a6a9d71e8f Allow skipping mutex operations until main() on platforms where mutexes
are unsafe in global object constructors.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2721 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-18 12:21:23 +00:00
paulc
ca829d943a Made some dangerous constructors explicit, fix potential problems exposed by this.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2705 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-12 15:15:36 +00:00
paulc
61ab284c4e Check define of IPTOS_MINCOST separately as on some platforms it's not
defined to avoid an usage conflict.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2674 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-01 16:37:48 +00:00
paulc
3ab68886ff Added version of String::safe that provides an user defined safe value.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2649 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-25 14:39:50 +00:00
paulc
d57dc7d1e8 Added mehod to remove and optionally destruct an ObjList item by its String value.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2637 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-20 12:49:13 +00:00
paulc
8e99bcb53f Added handy NamedList dump method.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2627 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-13 10:13:45 +00:00
paulc
85da36395b Added names to the Mutex class to ease debugging of deadlocks.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2611 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-05 12:25:31 +00:00
marian
045895ebdc Added remove directory method to File.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2608 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-01 14:42:12 +00:00
paulc
73dd0b02f1 Added parameters to make a newly created file public readable or writable.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2583 acf43c95-373e-0410-b603-e72c3f656dc1
2009-04-15 13:55:44 +00:00
paulc
65249a8246 Added method to clear all parameters.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2547 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-28 22:52:42 +00:00
paulc
bd956e7bf3 Added MemoryStream class that provides basic I/O to an internal DataBlock.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2529 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-22 20:34:33 +00:00
paulc
dfb3a9e5e4 Added method to take out an object from an array.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2528 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-22 20:32:21 +00:00
marian
fdf919acbe Added static method to File used to list directory content.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2517 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-06 17:20:09 +00:00
paulc
d46d577cbd Moved length() and seek() methods to the Stream class so seekable streams can be implemented.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2513 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-05 13:10:31 +00:00
marian
a3589c8a65 The URI class remembers now the extra parameters found after the uri host/port.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2507 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-03 12:20:42 +00:00
paulc
2c3dd2bc2a Added support for SQL escaping a binary DataBlock.
Replacing with SQL escaping a NamedPointer parameter of a NamedList that holds a DataBlock will insert the escaped binary data instead.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2475 acf43c95-373e-0410-b603-e72c3f656dc1
2009-02-06 19:37:01 +00:00
paulc
f26414d168 Added macros to implement getObject for classes that multiple inherit GenObject.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2448 acf43c95-373e-0410-b603-e72c3f656dc1
2009-01-21 14:50:12 +00:00
paulc
23470f3d82 Added optional parameter for the default value returned by DataBlock::at().
git-svn-id: http://yate.null.ro/svn/yate/trunk@2446 acf43c95-373e-0410-b603-e72c3f656dc1
2009-01-20 11:44:24 +00:00
paulc
9fb0f52abb Added more data access methods to DataBlock.
Added unsigned indexing operator to ObjList to prevent unexpected conversions.


git-svn-id: http://yate.null.ro/svn/yate/trunk@2445 acf43c95-373e-0410-b603-e72c3f656dc1
2009-01-20 11:29:07 +00:00
marian
31350b4fbe Added File manipulation methods. Added Time conversion methods. Thread last error string can now be obtained from the system.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2416 acf43c95-373e-0410-b603-e72c3f656dc1
2009-01-09 14:30:05 +00:00
paulc
9aa7bb2325 Added new String method trimSpaces.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2403 acf43c95-373e-0410-b603-e72c3f656dc1
2008-12-19 14:16:53 +00:00
paulc
25c446db47 Added more String related utility functions.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2372 acf43c95-373e-0410-b603-e72c3f656dc1
2008-11-26 18:33:13 +00:00
paulc
6b8c73b30c Added String indexing with unsigned int to provide shortest conversion.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2365 acf43c95-373e-0410-b603-e72c3f656dc1
2008-11-25 16:20:32 +00:00
paulc
7d85799cdf Fixed minor bug in documentation generating comment.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2291 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-28 11:47:15 +00:00
paulc
fae10b7ecd Added abstract Cipher class for encryption related tasks.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2290 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-28 11:36:28 +00:00
paulc
6e24d52c38 Added static empty instances of ObjList and NamedList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2280 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-22 13:32:25 +00:00
paulc
e23d5cfcda Added a copyParams version that copies all parameters of a NamedList.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2258 acf43c95-373e-0410-b603-e72c3f656dc1
2008-10-14 10:15:01 +00:00
paulc
2a36be841a Added methods index() to find index of objects in a list.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2206 acf43c95-373e-0410-b603-e72c3f656dc1
2008-09-17 12:22:24 +00:00
paulc
fbd1c99baf Added method to check if a socket handle is valid for select()ing it.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2057 acf43c95-373e-0410-b603-e72c3f656dc1
2008-07-10 17:47:49 +00:00
paulc
7e180c38aa Added UTF-8 fixing and overlongs detection.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1995 acf43c95-373e-0410-b603-e72c3f656dc1
2008-05-26 11:09:24 +00:00
paulc
2d82c82e91 Added methods to get the length of an UTF-8 string, can be used for validation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1994 acf43c95-373e-0410-b603-e72c3f656dc1
2008-05-23 17:21:28 +00:00
paulc
b74bc9bdb4 Added YATE_API specifier to the Base64 class.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1879 acf43c95-373e-0410-b603-e72c3f656dc1
2008-04-08 07:38:03 +00:00
marian
d9703a0089 Added Base64 class: encode/decode data using BASE64 alphabet.
git-svn-id: http://yate.null.ro/svn/yate/trunk@1870 acf43c95-373e-0410-b603-e72c3f656dc1
2008-04-02 15:04:56 +00:00