* 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:
Guilhem Lavaux
1998-09-08 17:19:16 +00:00
parent 6f5f3ca0fe
commit c740f49634
12 changed files with 165 additions and 26 deletions

View File

@@ -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) {