Documentation ¶
Overview ¶
Package xnet Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
View Source
const ( MinPort = 0 MaxPort = 65535 )
Maximum and minimum ports number.
Variables ¶
This section is empty.
Functions ¶
func IsDomainName ¶
Source: https://golang.org/src/net/dnsclient.go IsDomainName checks if a string is a presentation-format domain name (currently restricted to hostname-compatible "preferred name" LDH labels and SRV-like "underscore labels"; see golang.org/issue/12421).
func JoinHostPort ¶
JoinHostPort combines host and port into a network address of the form "host:port" or, if host contains a colon or a percent sign, "[host]:port".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.