* some C++ness correction in wxStream.
* added support for DLL on Borland32 * fixed export bugs * fixed a portability problem in socket.cpp * added a missing function in utilsexc.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1022,10 +1022,11 @@ void wxSocketBase::WantSpeedBuffer(char *buffer, size_t nbytes,
|
||||
switch (evt) {
|
||||
case EVT_PEEK:
|
||||
case EVT_READ:
|
||||
ret = read(m_fd, buffer, nbytes);
|
||||
ret = recv(m_fd, buffer, nbytes,
|
||||
(evt == EVT_PEEK) ? MSG_PEEK : 0);
|
||||
break;
|
||||
case EVT_WRITE:
|
||||
ret = write(m_fd, buffer, nbytes);
|
||||
ret = send(m_fd, buffer, nbytes, 0);
|
||||
break;
|
||||
}
|
||||
if (ret < 0) {
|
||||
|
Reference in New Issue
Block a user