This repo contains three things:
- A set of classes based on Apple's WiTap example code which advertise and find each other via bonjour and then create a socket connection over which data can be transfered. (client+server+connection)
- A set of classes for implementing a simple chat client. (chat)
- An example chat server daemon. (simplechatd)
This repo also contains a copy of Apple's TCPServer class. NOTE: While the rest of the code is written using ARC, this class isn't, and so should be compiled using -fno-objc-arc
.
The chat client classes (and thus the daemon) require FMDB, which is used for message storage.