Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.
/mnet/ -> peer.php (source)

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 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: 308 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 = null, $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