Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.
/mnet/ -> peer.php (source)

Differences Between: [Versions 310 and 400] [Versions 39 and 400] [Versions 400 and 402] [Versions 400 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

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

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.

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

get_public_key()   X-Ref
No description