[Pkg] The Trunk: Network-dtl.128.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jun 20 00:18:40 UTC 2012

David T. Lewis uploaded a new version of Network to project The Trunk:

==================== 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

More information about the Packages mailing list