Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.
/mnet/ -> peer.php (source)

Differences Between: [Versions 310 and 401] [Versions 39 and 401] [Versions 401 and 402] [Versions 401 and 403]

An object to represent lots of information about an RPC-peer machine

Author: Donal McMullan donal@catalyst.net.nz
License: http://www.gnu.org/copyleft/gpl.html GNU Public License
Version: 0.0.1
File Size: 309 lines (11 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

mnet_peer:: (15 methods):
  bootstrap()
  delete()
  count_live_sessions()
  delete_expired_sessions()
  delete_all_sessions()
  check_common_name()
  check_credentials()
  commit()
  touch()
  set_name()
  set_applicationid()
  set_wwwroot()
  set_id()
  populate()
  get_public_key()


Class: mnet_peer  - X-Ref

bootstrap($wwwroot, $pubkey, $application)   X-Ref
No description

delete()   X-Ref
No description

count_live_sessions()   X-Ref
No description

delete_expired_sessions()   X-Ref
No description

delete_all_sessions()   X-Ref
No description

check_common_name($key)   X-Ref
No description

check_credentials($key)   X-Ref
No description

commit()   X-Ref
No description

touch()   X-Ref
No description

set_name($newname)   X-Ref
No description

set_applicationid($applicationid)   X-Ref
No description

set_wwwroot($wwwroot)   X-Ref
Load information from db about an mnet peer into this object's properties

param: string $wwwroot - address of peer whose details we want to load
return: bool - indication of success or failure

set_id($id)   X-Ref
No description

populate($hostinfo)   X-Ref
Several methods can be used to get an 'mnet_host' record. They all then
send it to this private method to populate this object's attributes.

param: object  $hostinfo   A database record from the mnet_host table
return: void

get_public_key()   X-Ref
No description