()
| 33 | } |
| 34 | } |
| 35 | func (this *testConn) RemoteAddr() net.Addr { |
| 36 | if this.addr != nil { |
| 37 | return this.addr |
| 38 | } |
| 39 | this.addr = &net.TCPAddr{ |
| 40 | IP: net.ParseIP(testutils.RandIP()), |
| 41 | Port: 1234, |
| 42 | } |
| 43 | return this.addr |
| 44 | } |
| 45 | func (this *testConn) SetDeadline(t time.Time) error { |
| 46 | return nil |
| 47 | } |