TCP socket examples