Documentation
¶
Index ¶
- Constants
- func GetIntranetIPv4() (ipList []net.IP, e error)
- type IP
- type IPInfo
- type TCPConn
- func (conn *TCPConn) ClientIP() string
- func (conn *TCPConn) Close() (err error)
- func (conn *TCPConn) ReadSafe(data []byte) (err error)
- func (conn *TCPConn) RemoteAddr() string
- func (conn *TCPConn) SetReadTimeout(to uint)
- func (conn *TCPConn) SetTimeout(to uint)
- func (conn *TCPConn) SetWriteTimeout(to uint)
- func (conn *TCPConn) WriteSafe(data []byte) (err error)
- type TCPListener
Constants ¶
View Source
const Server string = "http://ip.taobao.com/service/getIpInfo.php?ip="
Server 获取ip地址信息的url地址
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IP ¶
type IP struct { Country string `json:"country"` CountryID string `json:"country_id"` Area string `json:"area"` AreaID string `json:"area_id"` Region string `json:"region"` RegionID string `json:"region_id"` City string `json:"city"` CityID string `json:"city_id"` Isp string `json:"isp"` }
IP IP信息
type TCPConn ¶
type TCPConn struct {
// contains filtered or unexported fields
}
func (*TCPConn) RemoteAddr ¶
func (*TCPConn) SetReadTimeout ¶
func (*TCPConn) SetTimeout ¶
func (*TCPConn) SetWriteTimeout ¶
type TCPListener ¶
type TCPListener net.TCPListener
func (*TCPListener) Accept ¶
func (l *TCPListener) Accept() (conn *TCPConn, err error)
Click to show internal directories.
Click to hide internal directories.