Norbert Federa
b2108839b0
utils: fix broken stopwatch implementation
...
Stopwatch (in the way it is used) must be able to measure the wall
clock time with high resolution but used clock() which is not
appropriate for this purpose:
On POSIX systems clock() returns the processor time used by the
program. On Windows clock() does measure the wall clock time but
has only a resolution of 1ms (if at all).
This also renders the freerdp profiler unusable.
This commit changes stopwatch to use the performance counters
on Windows and gettimeofday() for the rest.
Also added a warning about invalid profiling results to the
RemoteFX codec if rfxcontext->priv->UseThreads is enabled because
stopwatch is currently not used in a thread safe way.
Also see GitHub Issue #1325
2013-06-27 13:00:54 +02:00
Norbert Federa
9df9c7d28a
libfreerdp-utils/pcap: open pcap in binary mode
...
Use 'b' in fopen's mode string to force binary (untranslated) mode
when reading or writing the pcap file.
This is required on WIN32 and maybe on other non POSIX conforming
systems.
This fixes the mstsc internal error disconnect followed by a crash
of the sample server when latter is used to serve a pcap file on
WIN32.
2013-06-25 17:11:36 +02:00
Vic Lee
96d5910a75
libfreerdp-utils: fix profiler on Windows.
2013-06-14 13:21:29 +08:00
Marc-André Moreau
ba0b4ee524
libfreerdp-client: load rdpdr when rdpsnd is loaded
2013-05-10 16:39:16 -04:00
Marc-André Moreau
fdf3ddcf9e
freerdp: purge deprecated stream utils
2013-05-08 17:48:30 -04:00
Marc-André Moreau
5b92413843
freerdp: purge deprecated stream utils
2013-05-08 16:09:16 -04:00
Marc-André Moreau
b4cac74136
xfreerdp-server: fix RemoteFX encoding
2013-05-01 18:15:55 -04:00
Marc-André Moreau
51715636a5
freerdp: remove some deprecated stream utils
2013-04-29 22:35:15 -04:00
Marc-André Moreau
0cbdd6b641
freerdp: merge with master
2013-04-09 10:18:03 -04:00
Nigel Reeves
777dff2d0b
Further changes to fix issue 574\685.
...
There appear to be some additional problems with the impact of daylight
savings time kicking in. Calculations of BIAS, Standard BIAS &
Daylight BIAS are wrong.
This is showing up with Outlook 2010 meeting appointments, for example
select America\Vancouver, appointments, once accepted get assigned an hour
early.
I have also applied a fix to correctly send the Timezone information
currently commented out of code referencing this issue number in
libfreerdp_locale/timezone.c function freerdp_time_zone_detect()
2013-04-08 14:42:49 +01:00
Marc-André Moreau
506c665df2
channels/client: start breaking down into smaller blocks channel code
2013-03-29 17:53:18 -04:00
Marc-André Moreau
d187becc28
freerdp: merge with master
2013-03-28 21:20:36 -04:00
Marc-André Moreau
3417a3aab5
freerdp: merge RDP_EVENT type with wMessage
2013-03-28 21:13:56 -04:00
Marc-André Moreau
f757623f7f
channels: replace event_type, event_class with id for events
2013-03-28 20:23:16 -04:00
Marc-André Moreau
8ad5932a3d
channels: continue event refactoring
2013-03-28 19:33:31 -04:00
Marc-André Moreau
72bf8ea032
libfreerdp-utils: start migrating old eventing system
2013-03-28 18:29:57 -04:00
Hardening
7701c9d934
Replace printf(...) by fprintf(stderr, ...)
2013-03-28 23:06:34 +01:00
Marc-André Moreau
068f0de4d4
libfreerdp-utils: purge old file utils
2013-03-22 15:52:43 -04:00
Marc-André Moreau
edf6e7258d
libwinpr-path: add path detection functions
2013-03-22 00:42:09 -04:00
Marc-André Moreau
93a752b546
libfreerdp-utils: purge old string utils
2013-03-21 22:31:17 -04:00
Marc-André Moreau
dbbb341098
libfreerdp-utils: purge thread utils
2013-03-21 17:58:18 -04:00
Marc-André Moreau
8c8a82c31f
libfreerdp-utils: purge old STREAM utils
2013-03-21 16:45:25 -04:00
Marc-André Moreau
a8201b0d1b
libwinpr-utils: combine old and new stream utils
2013-03-21 15:19:33 -04:00
Marc-André Moreau
62eec0c2b5
libfreerdp-utils: rename internal members of STREAM to match new wStream
2013-03-21 15:01:46 -04:00
Marc-André Moreau
afa7f4b945
channels/rdpsnd: fix crashes on termination
2013-02-26 11:16:33 -05:00
Marc-André Moreau
fe34a529d5
freerdp: fix build and warnings on Mac OS X
2013-02-21 21:09:42 -05:00
Marc-André Moreau
05bd6cff73
channels/rdpsnd: further experimentation with async alsa
2013-02-21 10:46:11 -05:00
Marc-André Moreau
385d0daced
channels: get rid of semaphore locking, replace queues
2013-02-21 02:56:57 -05:00
Marc-André Moreau
7a289423c0
channels/rdpsnd: refactor scheduling of sending of sound PDUs
2013-02-20 21:34:47 -05:00
Marc-André Moreau
41fbdbeb0d
libfreerdp-utils: don't use freerdp_thread util in svc_plugin
2013-02-20 19:44:14 -05:00
Marc-André Moreau
6c922a24e8
libfreerdp/utils: get rid of old svc_plugin queuing items
2013-02-20 18:53:47 -05:00
Marc-André Moreau
814177ea54
libfreerdp-utils: svc_plugin: make use of MessagePipe
2013-02-20 18:44:52 -05:00
Marc-André Moreau
9164d2245e
libfreerdp-utils: make use of ArrayList in Static Virtual Channel Plugin interface
2013-02-20 15:33:42 -05:00
Marc-André Moreau
22c804e6ad
channels/rdpsnd: refactoring
2013-02-19 17:47:55 -05:00
Bernhard Miklautz
f91b88f714
added missing defined() in #elif
...
gcc >= 4.4 requires a condition in #elif.
2013-01-25 17:50:40 +01:00
Vic Lee
ec54a44449
rdpsnd: fix some null pointer crashes.
2013-01-22 23:26:55 +08:00
rdp.effort
71c37bdfc3
call time instead of gmtime (makes valgrind happy)
2013-01-16 00:06:56 +01:00
Marc-André Moreau
9f4b41d377
Merge pull request #895 from bmiklautz/renamedebug
...
utils/debug: renamed DEBUG to DEBUG_MSG
2013-01-14 06:28:51 -08:00
Bernhard Miklautz
49c3641b6e
utils/debug: renamed DEBUG to DEBUG_MSG
2013-01-14 11:47:24 +01:00
ArvidNorr
8bdeb78f06
Wrong max socket value fix
2013-01-14 02:12:30 -08:00
rdp.effort
dc9777bea0
checks stream size when reading rail strings
2013-01-11 01:29:34 +01:00
rdp.effort
2f97638e98
checks stream sizes when reading redirection packets
2013-01-11 01:21:24 +01:00
Vic Lee
ed5ad30d4f
libfreerdp-core/transport: select sockfd instead of sleep when blocking.
2012-12-21 16:24:26 +08:00
Marc-André Moreau
d19e2042c3
libfreerdp-utils: remove deprecrated unicode utils in favor of WinPR
2012-12-17 10:20:25 -05:00
Marc-André Moreau
af9be28000
libfreerdp-utils: purge deprecated freerdp_UnicodeToAsciiAlloc util in favor of WinPR ConvertFromUnicode
2012-12-16 23:34:07 -05:00
Marc-André Moreau
a02090c09b
libfreerdp-utils: fix unicode conversion
2012-12-16 23:00:40 -05:00
Marc-André Moreau
36a1683a5d
libwinpr-crt: initial WideCharToMultiByte and MultiByteToWideChar replacement implementation
2012-12-16 16:21:48 -05:00
Marc-André Moreau
3e1ac9a55e
libfreerdp-utils: fix build
2012-12-14 13:15:27 -05:00
Marc-André Moreau
6cdb09740c
wfreerdp: fix build
2012-12-14 13:11:07 -05:00
Marc-André Moreau
92bf3e4ae0
libfreerdp-utils: remove sleep utils in favor of WinPR
2012-12-14 00:58:48 -05:00