[Live-devel] [PATCH] BasicUsageEnvironment: Properly get socket error messages on Windows
Stas Tsymbalov
tsymbalov at trueconf.ru
Mon Jun 1 05:21:20 PDT 2015
On Windows strerror() doesn't work with winsocket error codes (returned by WSAGetLastError()).
This patch changes the way BasicUsageEnvironment0::setResultMsg()
gets error message on Windows, now it gets it using FormatMessage()
with a backup solution of simply providing error code in the message
(FormatMessage() apparently can fail too).
---
BasicUsageEnvironment/BasicUsageEnvironment0.cpp | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
--
Stas Tsymbalov
TrueConf LLC
http://trueconf.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-BasicUsageEnvironment-Properly-get-socket-error-mess.patch
Type: text/x-patch
Size: 1569 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150601/cedb0829/attachment.bin>
More information about the live-devel
mailing list