A new version of Network was added to project The Inbox:
http://source.squeak.org/inbox/Network-dtl.128.mcz==================== Summary ====================
Name: Network-dtl.128
Author: dtl
Time: 15 June 2012, 8:15:28.057 pm
UUID: 83e412ce-fcdf-40ab-814b-8f1d08d00ce5
Ancestors: Network-dtl.127
primitiveSocketSendUDPDataBufCount expects an ipv4 byte array address, so do hostAddress asByteArray in sendUDPData:toHost:port:
=============== Diff against Network-dtl.127 ===============
Item was changed:
----- Method: Socket>>sendUDPData:toHost:port: (in category 'datagrams') -----
sendUDPData: aStringOrByteArray toHost: hostAddress port: portNumber
"Send a UDP packet containing the given data to the specified host/port."
| bytesToSend bytesSent count |
bytesToSend := aStringOrByteArray size.
bytesSent := 0.
[bytesSent < bytesToSend] whileTrue: [
(self waitForSendDoneFor: 20)
ifFalse: [ConnectionTimedOut signal: 'send data timeout; data not sent'].
count := self primSocket: socketHandle
sendUDPData: aStringOrByteArray
+ toHost: hostAddress asByteArray
- toHost: hostAddress
port: portNumber
startIndex: bytesSent + 1
count: bytesToSend - bytesSent.
bytesSent := bytesSent + count].
^ bytesSent
!