var aLongTimeAgo = time.Unix(1, 0)
-type UCSPIAddr struct {
+type Addr struct {
ip string
port string
}
-func (addr *UCSPIAddr) Network() string { return "tcp" }
+func (addr *Addr) Network() string { return "tcp" }
-func (addr *UCSPIAddr) String() string { return addr.ip + ":" + addr.port }
+func (addr *Addr) String() string { return addr.ip + ":" + addr.port }
type Conn struct {
R *os.File
}
func (conn *Conn) LocalAddr() net.Addr {
- return &UCSPIAddr{ip: os.Getenv("TCPLOCALIP"), port: os.Getenv("TCPLOCALPORT")}
+ return &Addr{ip: os.Getenv("TCPLOCALIP"), port: os.Getenv("TCPLOCALPORT")}
}
func (conn *Conn) RemoteAddr() net.Addr {
- return &UCSPIAddr{ip: os.Getenv("TCPREMOTEIP"), port: os.Getenv("TCPREMOTEPORT")}
+ return &Addr{ip: os.Getenv("TCPREMOTEIP"), port: os.Getenv("TCPREMOTEPORT")}
}
func (conn *Conn) SetDeadline(t time.Time) error {