tcp: rename private record
web: add connect/1
web: fix exception handling
udp: rename private record