func parsePort(portstring string) (port int, err error) {
	port, err = strconv.Atoi(portstring)
	if err == nil && port < 0 || port > 65535 {
		err = errors.New("Port number outside of valid range 0 <= port <= 65535")
	}
	return
}
// parsePort parses a valid port
parsePort parses a valid port
// parsePort parses a valid port
func parsePort(portstring string) (port int, err error) {
	port, err = strconv.Atoi(portstring)
	if err == nil && port < 0 || port > 65535 {
		err = errors.New("Port number outside of valid range 0 <= port <= 65535")
	}
	return
}
func parsePort ( portstring string ) ( port int , err error ) { port , err = strconv . Atoi ( portstring ) if err == nil && port < 0 || port > 65535 { err = errors . New ( " " ) } return }
parsePort parses a valid port
parsePort parses a valid port