tcp: fix arguments creation
tcp: add documentation and specs
udp: fix arguments creation
test: add some TCP tests