paulc
fd39111d4f
Added static method to check at runtime if Socket::select() is efficient.
...
Use select() on the MGCP reader socket if it worths.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3798 acf43c95-373e-0410-b603-e72c3f656dc1
2010-11-05 16:08:11 +00:00
paulc
82ad37c3af
Detect if available and use poll() instead of select() on sockets.
...
This save a lot on performance by not FD_ZEROing large sets.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3797 acf43c95-373e-0410-b603-e72c3f656dc1
2010-11-05 15:06:57 +00:00
paulc
eb82c7d2ac
Optimized SocketAddr::assign to avoid assigning same address.
...
Saves many malloc+free+sprintf calls especially in RTP streams.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3712 acf43c95-373e-0410-b603-e72c3f656dc1
2010-10-12 15:39:04 +00:00
paulc
d95cb2fec6
Spelling cleanup of a very common error: Retrive -> Retrieve
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@3371 acf43c95-373e-0410-b603-e72c3f656dc1
2010-06-11 11:25:10 +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
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
639f1bcedd
Fixed a bug introduced in Rev. 2935 - in Windows HANDLE and SOCKET are different.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2941 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-13 10:44:28 +00:00
paulc
c464d42a67
Fixed a bug causing incorrect result and potential crashes if a socket was terminated while in select().
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2935 acf43c95-373e-0410-b603-e72c3f656dc1
2009-11-12 14:49:18 +00:00
paulc
435cb3ab9c
Extended gethostbyname_r buffer to 576 bytes for more demanding versions of libc.
...
Use single threaded gethostbyname as fallback if buffer is still too small.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2860 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-02 13:09:02 +00:00
paulc
d98cc424eb
Use inet_ntop, inet_pton and gethostbyname_r if available on system.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2859 acf43c95-373e-0410-b603-e72c3f656dc1
2009-10-02 10:00:23 +00:00
paulc
935d62a35d
Fixed Socket::canRetry() on Windows.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2778 acf43c95-373e-0410-b603-e72c3f656dc1
2009-08-03 10:26:02 +00:00
paulc
c23251c4d0
Fixed more warnings on different platforms.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2726 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-19 11:58:33 +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
a68b1553c0
Changed the name of the mutex protecting name resolution to reveal its real usage.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2711 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-15 04:10:36 +00:00
paulc
6dfcdcbd11
Fixed several warnings detected by stricter compilers.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2679 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-01 20:05:02 +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
marian
a5c7c43846
Allow a file to be shared when opened read only. Return success when reading past the end of file.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2541 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-25 17:35:08 +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
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
c80ee5b9ad
Changed file truncate conditions (truncate a file only if not opened for read).
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2512 acf43c95-373e-0410-b603-e72c3f656dc1
2009-03-05 12:53:01 +00:00
paulc
b3fdaf8fcb
Truncate a file that is opened writable and non-appending.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2500 acf43c95-373e-0410-b603-e72c3f656dc1
2009-02-27 17:15:32 +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
95e005df49
Operations on an invalid socket cannot be retried.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2311 acf43c95-373e-0410-b603-e72c3f656dc1
2008-11-09 23:42:27 +00:00
paulc
d9bf89c7d3
Make files written by Yate non-executable.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@2207 acf43c95-373e-0410-b603-e72c3f656dc1
2008-09-17 17:08:27 +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
97e5b1e5fb
Added a maximum wait time for the shared resource of gethostbyname().
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1230 acf43c95-373e-0410-b603-e72c3f656dc1
2007-03-26 15:13:07 +00:00
paulc
08403476e8
Added timerTick method in Socket and SocketFilter.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1064 acf43c95-373e-0410-b603-e72c3f656dc1
2006-10-03 14:24:20 +00:00
paulc
3e6d46d564
Check data validity before passing to packet filters.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1060 acf43c95-373e-0410-b603-e72c3f656dc1
2006-09-27 09:43:08 +00:00
paulc
14161da7a1
Added a socket packet data filter - preparing for a nice STUN implementation.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1058 acf43c95-373e-0410-b603-e72c3f656dc1
2006-09-26 18:26:36 +00:00
paulc
0b5e34a34a
Added support for socket address reuse and connection lingering.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@1032 acf43c95-373e-0410-b603-e72c3f656dc1
2006-09-13 21:42:58 +00:00
paulc
d9d961cf01
On Windows wave files are opened in binary mode.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@918 acf43c95-373e-0410-b603-e72c3f656dc1
2006-07-01 00:02:45 +00:00
paulc
cda2d9f1c2
Updated copyright and FSF address.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@815 acf43c95-373e-0410-b603-e72c3f656dc1
2006-05-27 15:08:43 +00:00
paulc
934c2cc102
Added missing include for S_IRWXU
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@795 acf43c95-373e-0410-b603-e72c3f656dc1
2006-05-17 15:23:45 +00:00
paulc
8c6951eebb
Added help file support in client.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@794 acf43c95-373e-0410-b603-e72c3f656dc1
2006-05-17 15:14:43 +00:00
paulc
8eb77992e6
Added support for socket shutdown and SCTP association peel-off.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@771 acf43c95-373e-0410-b603-e72c3f656dc1
2006-05-04 12:24:44 +00:00
paulc
ec13d8c086
Fixes in Windows
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@730 acf43c95-373e-0410-b603-e72c3f656dc1
2006-03-30 00:21:37 +00:00
paulc
8ba0ab46b4
Improved the external module - supports connecting on sockets, watching
...
message answers and option settings.
git-svn-id: http://yate.null.ro/svn/yate/trunk@729 acf43c95-373e-0410-b603-e72c3f656dc1
2006-03-29 23:05:36 +00:00
paulc
c44947b6a1
Added RADIUS client module.
...
Applied various related and unrelated changes and fixes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@714 acf43c95-373e-0410-b603-e72c3f656dc1
2006-03-22 18:22:34 +00:00
paulc
7bf746e26d
Added some needed File and Socket methods. Added answered flag in Channel.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@631 acf43c95-373e-0410-b603-e72c3f656dc1
2006-01-05 21:33:15 +00:00
paulc
8a168f420b
Changed the way pipes and socket pairs are built to ease implementation.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@623 acf43c95-373e-0410-b603-e72c3f656dc1
2005-12-29 19:26:51 +00:00
paulc
9511c61f01
no message
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@471 acf43c95-373e-0410-b603-e72c3f656dc1
2005-08-11 00:29:56 +00:00
paulc
14c3a10eeb
Added Stream and File classes, fixed a data related bug in extmodule.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@470 acf43c95-373e-0410-b603-e72c3f656dc1
2005-08-06 19:37:31 +00:00
paulc
1d7c54d6d7
Made FD_SETSIZE configurable on glibc >= 2.2 - thanks, Squid authors!
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@458 acf43c95-373e-0410-b603-e72c3f656dc1
2005-07-20 04:42:29 +00:00
paulc
9e29ce8476
*** empty log message ***
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@321 acf43c95-373e-0410-b603-e72c3f656dc1
2005-05-02 18:31:05 +00:00
paulc
b52a90a618
Updated copyright years, fixed %ll formatting.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@320 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-29 22:05:07 +00:00
paulc
c1e975decd
*** empty log message ***
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@317 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-28 17:56:56 +00:00
paulc
76dc980fda
Removed broken Windows 9x/Me support for IPv6.
...
git-svn-id: http://yate.null.ro/svn/yate/trunk@316 acf43c95-373e-0410-b603-e72c3f656dc1
2005-04-28 17:52:50 +00:00