TCPAddr
type TCPAddr struct {
IP IP
Port int
}
ResolveTCPAddr function creates TCPAddr
Wherein the parameter is a net "tcp", "tcp4" " tcp6" or one, addr is a string of the host name or IP address of the composition, followed by ":" followed by the port number, for example " www.google.com:80 " or "127.0.0.1:22".
Client
test
server
ListenTCP server listening port, Accept on behalf locked, waiting for client connections