Improved the buffer implementation.
Extended the tcp interface.
Implemented extended tcp interface.