Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.
/mnet/ -> peer.php (source)

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

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: 2 times
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