added TCP and UDP examples and documentation