Mantis - Squeak
Viewing Issue Advanced Details
3035 VM minor always 02-22-06 11:21 09-18-07 09:19
MichaelPiel  
andreas  
normal  
closed  
fixed  
none    
none 3.9  
0003035: Socket>>receiveUDPDataInto: doesn't work under Windows
The Win32 VM function for Socket>>primSocket:receiveUDPDataInto:StartingAt:count: has a bug.

in file sqWin32NewNet.c of SocketPlugin the function sqSocketReceiveUDPDataBufCountaddressportmoreFlag doesn't receive any data:
...
  /* receive data */
  nRead = sqSocketSendDataBufCount(s, buf, bufSize);
...

This bug seems to be present in all win32 VMs since the function is implemented (at least 3.4).
One can use Socket>>ReceiveDataInto: instead of Socket>>receiveUDPDataInto: since it checks if the socket is TCP or UDP.

Notes
(0004553)
andreas   
03-23-06 22:39   
Oops. Good find, thanks. I've fixed it in the source code already, the next VMs will have it.
(0004583)
MarcusDenker   
03-27-06 22:55   
fixed
(0011141)
gaelli   
09-18-07 09:05   
Does not yet with windows VM 3.7.1

To reprodzuce load the latest OSC package from SqueakSource and run the tests on Windows -> bang.
On Apple the OSCServerTest works.

Using Socket>>receiveDataInto: instead of Socket>>receiveUDPDataInto: helps, but nonetheless this bug does not seem to be fixed yet.
(0011142)
andreas   
09-18-07 09:19   
Fixes don't apply to VMs that were released two years before the fix. Unless someone explains to me how to do the time-travel thing that is...