SimpleCocoaServer is a basic server class written in objective-c for use in cocoa applications for Mac OS X. Features: receiving & sending data from & to all clients. NEW: SimpleCocoaClient is a Client class. Connects to any IP/Port, sends/receives Data.
Be the first to post a text review of SimpleCocoaServer and Client. Rate and review a project by clicking thumbs up or thumbs down in the right column.
Version 0.3 - Added functions for setting String encodings (only relevant for sending at this moment) - Added functions for setting the client up to stay connected to the server. Both, staying connected and disconnecting after receiving data works fully now. - Default timeout set and used now. (defined in header file) - Please see changes on how to set up the delegate!!! New methods: - (BOOL)sendString:(NSString *)string withEncoding:(NSStringEncoding)encoding; - (BOOL)stayingConnected; - (void)setStayingConnected:(BOOL)flag; - (NSStringEncoding)defaultStringEncoding; - (void)setDefaultStringEncoding:(NSStringEncoding)encoding; These are all methods sent to the delegate if it implements them: - processData:fromClient: (first object is one of NSData *, the second is the SimpleCocoaClient itself) - connectionWillClose: (object is the SimpleCocoaClient itself) - connectionDidClose: (object is the SimpleCocoaClient itself)
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?