func NewTCP(id, address string, auth mqtt.Auth) *TCP {
	tcp := &TCP{
		id:      id,
		address: address,
		auth:    auth,
	}

	if tcp.auth == nil {
		tcp.auth = &mqtt.AuthAllow{}
	}

	return tcp
}
// NewTCP initialises and returns a new TCP listener, listening on an address.
NewTCP initialises and returns a new TCP listener, listening on an address.
// NewTCP initialises and returns a new TCP listener listening on an address .
func NewTCP(id, address string, auth mqtt.Auth) *TCP {
	tcp := &TCP{
		id:      id,
		address: address,
		auth:    auth,
	}
	if tcp.auth == nil {
		tcp.auth = &mqtt.AuthAllow{}
	}
	return tcp
}
func NewTCP ( id , address string , auth mqtt . Auth ) * TCP { tcp := & TCP { id : id , address : address , auth : auth , } if tcp . auth == nil { tcp . auth = & mqtt . AuthAllow { } } return tcp }
NewTCP initialises and returns a new TCP listener, listening on an address.
NewTCP initialises and returns a new TCP listener listening on an address .