code: func (d *Data) RemoteAddr(remote net.Addr) error {
  	switch addr := remote.(type) {
  	case *net.TCPAddr:
  		d.Address = addr.IP
  		d.Port = uint32(addr.Port)
  		d.SocketProto = tap.SocketProtocol_TCP
  	case *net.UDPAddr:
  		d.Address = addr.IP
  		d.Port = uint32(addr.Port)
  		d.SocketProto = tap.SocketProtocol_UDP
  	default:
  		return errors.New("unknown remote address type")
  	}
  
  	if a := net.IP(d.Address); a.To4() != nil {
  		d.SocketFam = tap.SocketFamily_INET
  	} else {
  		d.SocketFam = tap.SocketFamily_INET6
  	}
  
  	return nil
  }
docs: // RemoteAddr parses the information about the remote address into Data.