diff -r 6f539dd9921c -r 50dc5502ef46 maindocs.h
--- a/maindocs.h Thu May 29 16:40:36 2008 -0700
+++ b/maindocs.h Sun May 10 19:05:52 2009 -0700
@@ -12,117 +12,10 @@
By Jens Alfke
-
-
-\section intro_sec Introduction
+
- MYNetwork is a set of Objective-C networking classes for Cocoa applications on Mac OS X.
- It consists of:
-
- - Networking utility classes (presently only IPAddress);
-
- A generic TCP client/server implementation,
- useful for implementing your own network protocols; (see TCPListener and TCPConnection)
-
- An implementation of BLIP, a lightweight network protocol I've invented as an easy way
- to send request and response messages between peers. (see BLIPListener, BLIPConnection, BLIPRequest, etc.)
-
+ Class documentation
-\section license License and Disclaimer
-
- MYNetwork is released under a BSD license, which means you can freely use it in open-source
- or commercial projects, provided you give credit in your documentation or About box.
-
- As I write this (May 2008), MYNetwork is still very much under development. I am using it as the foundation of my own commercial products, at least one of which is currently at about the alpha stage. I'm making changes to this code as I see fit, fairly often.
-
-That's good, in that the code is getting real-world use. But it also means that APIs and functionality are subject to change. (Of course, the entire revision tree is always available, so you're free to stick with any revision you like, and even "cherry-pick" desired changes from future ones.)
-
-Not all of this code gets thoroughly exercised by my test cases or my applications, so some things may not work. Obviously, this code comes with no warranty nor any guarantee of tech support, though I will try to do my best to help out. Hopefully the source code is clear enough to let you figure out what's going on.
-
-If you come across bugs, please tell me about them. If you fix them, I would love to get your fixes and incorporate them. If you add features I would love to know about them, and I will incorporate them if I think they make sense for the project. Thanks!
-
-\section blipdesc What's BLIP?
-
-
-
-BLIP is a message-oriented network protocol that lets the two peers on either end of a TCP socket send request and response messages to each other. It's a generic protocol, in that the requests and responses can contain any kind of data you like.
-
-BLIP was inspired by BEEP (in fact BLIP stands for "BEEP-LIke Protocol") but is
-deliberately simpler and somewhat more limited. That results in a smaller and cleaner implementation, especially since it takes advantage of Cocoa's and CFNetwork's existing support for network streams, SSL and Bonjour. (BLIP is currently a bit under 2,000 lines of code, and the rest of the MYNetwork classes it builds on add up to another 1,500. That's at least an order of magnitude smaller than existing native-code BEEP libraries.)
-
-\subsection blipfeatures BLIP Features:
-
-
- - Each message is very much like a MIME body, as in email or HTTP: it consists of a
-blob of data of arbitrary length, plus a set of key/value pairs called "properties". The
-properties are mostly ignored by BLIP itself, but clients can use them for metadata about the
-body, and for delivery information (i.e. something like BEEP's "profiles".)
-
-
- Either peer can send a request at any time; there's no notion of "client" and "server" roles.
-
-
- Multiple messages can be transmitted simultaneously in the same direction over the same connection, so a very long
-message does not block any other messages from being delivered. This means that message ordering
-is a bit looser than in BEEP or HTTP 1.1: the receiver will see the beginnings of messages in the
-same order in which the sender posted them, but they might not end in that same order. (For
-example, a long message will take longer to be delivered, so it may finish after messages that
-were begun after it.)
-
-
- The sender can indicate whether or not a message needs to be replied to; the response is tagged with the
-identity of the original message, to make it easy for the sender to recognize. This makes it
-straighforward to implement RPC-style (or REST-style) interactions. (Responses
-cannot be replied to again, however.)
-
-
- A message can be flagged as "urgent". Urgent messages are pushed ahead in the outgoing queue and
-get a higher fraction of the available bandwidth.
-
-
- A message can be flagged as "compressed". This runs its body through the gzip algorithm, ideally
-making it faster to transmit. (Common markup-based data formats like XML and JSON compress
-extremely well, at ratios up to 10::1.) The message is decompressed on the receiving end,
-invisibly to client code.
-
-
- The implementation supports SSL connections (with optional client-side certificates), and Bonjour service advertising.
-
-
-\section config Configuration
-
- MYNetwork requires Mac OS X 10.5 or later, since it uses Objective-C 2 features like
- properties and for...in loops.
-
- MYNetwork uses my MYUtilities library. You'll need to have downloaded that library, and added
- the necessary source files and headers to your project. See the MYNetwork Xcode project,
- which contains the minimal set of MYUtilities files needed to build MYUtilities. (That project
- has its search paths set up to assume that MYUtilities is in a directory next to MYNetwork.)
-
-\section download How To Get It
-
-
- - Download the current source code
-
- To check out the source code using Mercurial:
- \verbatim hg clone /hg/hgwebdir.cgi/MYNetwork/ MYNetwork \endverbatim
-
- As described above, you'll also need to download or check out MYUtilities and put it in
- a directory next to MYNetwork.
-
-
- Or if you're just looking:
-
-
-
- There isn't any conceptual documentation yet, beyond what's in the API docs, but you can
- look
- at the sample BLIPEcho client and server, which are based on Apple's
- CocoaEcho sample code.
+ Overview, instructions, conceptual documentation
*/