Modified implementation to support latest Spec.
Fixed simple TCP network transport.
Added unit test.