On Jun 2, 2011, at 2:10 AM, jodischla...@gmx.de wrote: > Hi all, > > I wanted to have a very basic TCP server that could return arbitrary bytes > when a client connected to it to test whether some protocol (on top of TCP) > code I wrote works as expected. To do so I adapted the CocoaEcho example > (http://developer.apple.com/library/mac/samplecode/CocoaEcho/Introduction/Intro.html > ).
You might want to look at my MYNetwork library <http://bitbucket.org/snej/mynetwork> which is a higher-level TCP networking API. > But the inputDataStream seems to never get closed. I would have expected it > to be closed when it reaches the end of the underlying data. No, that’s not how streams behave. They close when you close them, not automatically. —Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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