On 25/03/2009, at 6:03 AM, Brian Chapados wrote:
Since you have an NSData object, you should be able to convert it to a
String (NSString) and then use unpack. For example:
socket_port = NSSocketPort.alloc.initWithTCPPort(1)
addr = socket_port.address
addr_str = NSString.alloc.initWithData
from an NSSocketPort. NSSocketPort's address method returns an NSData,
which should contain a sockaddr_in, out of which I should be able to
pull the port.
Thanks,
Pete Yandell
http://notahat.com/
___
MacRuby-devel mailing list
MacRuby-devel@lists.