[ENH] Serial Ports on OS-X

John M McIntosh johnmci at smalltalkconsulting.com
Wed Jun 11 00:59:29 UTC 2003


EnhancedSerialPorts-JMM.11.cs.gz attached

Change to serialportextended plugin to return 32bit positive integers  
for read/write number of bytes, versus a
SmallInteger to avoid issues with reading/writting billions of bytes.

Adds Weak support to SerialPortExtended class so instances that are  
GCed now will close the port.
Before this you could loose them on a GC event if you didn't have  
anymore strong references, which could mean you
could loose the ability to access the port since it could be hung open,  
which would require you to
restart Squeak to recover.

{As usual it was painful to add this registry logic, because it's a bit  
tricky}


======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EnhancedSerialPorts-JMM.11.cs.gz
Type: application/x-gzip
Size: 17375 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20030610/5ed379b1/EnhancedSerialPorts-JMM.11.cs.bin


More information about the Squeak-dev mailing list