// ReadFrom implements the PacketConn ReadFrom method.
ReadFrom implements the PacketConn ReadFrom method.
// ReadFrom implements the PacketConn ReadFrom method .
func (c *IPConn) ReadFrom(b []byte) (int, Addr, error) {
	if !c.ok() {
		return 0, nil, syscall.EINVAL
	}
	n, uaddr, err := c.ReadFromIP(b)
	return n, uaddr.toAddr(), err
}
func ( c * IPConn ) ReadFrom ( b [ ] byte ) ( int , Addr , error ) { if ! c . ok ( ) { return 0 , nil , syscall . EINVAL } n , uaddr , err := c . ReadFromIP ( b ) return n , uaddr . toAddr ( ) , err }
ReadFrom implements the PacketConn ReadFrom method.
ReadFrom implements the PacketConn ReadFrom method .