Continued work on network protocol; can now handle the headers and magic numbers