Hi, I've been working with distributed objects for the last few days and came across a behaviour in NSConnection that seems to be a bug, or at least sub-optimal.
My client application communicates with the server using Unix Domain Sockets. After creating a properly configured NSSocketPort (sendPort) for the client, I create the NSConnection as follows: [NSConnection connectionWithReceivePort:nil sendPort:sendPort]; Since UDSs are bidirectional, I don't need an explicit receivePort. The documentation for NSConnection states that if receivePort is nil, then a port of the same type as sendPort will be automatically created. My guess is that this is done to provide support for distributed objects over NSMachPorts (as they are unidirectional). Thus far I have no problem with this. The issue is that NSSocketPort's init message, described as follows in the documentation, "Initializes the receiver as a local TCP/IP socket of type SOCK_STREAM.", creates a socket that listens on a random port for _any_ inbound connection. I guess my question is, why does [NSSocketPort init] listen on 0.0.0.0 instead of 127.0.0.1, and is this a valid issue that I should report to Apple? Thanks in advance, -Tim *********************************************************************** This e-mail and its attachments are confidential, legally privileged, may be subject to copyright and sent solely for the attention of the addressee(s). Any unauthorized use or disclosure is prohibited. Statements and opinions expressed in this e-mail may not represent those of Radialpoint. Le contenu de ce courriel est confidentiel, privilégié et peut être soumis à des droits d'auteur. Il est envoyé à l'intention exclusive de son ou de ses destinataires. Il est interdit de l'utiliser ou de le divulguer sans autorisation. Les opinions exprimées dans le présent courriel peuvent diverger de celles de Radialpoint. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com