Hub discovery

SAMP.SAMPHubType
SAMPHub <: [`SAMP.AbstractSAMPHub`](@ref)

A local SAMP hub.

Can be created by a simple call SAMPHub(): all fields are automatically set following the SAMP protocol.

Members

  • proxy: the XMLRPC proxy associated with the hub
  • url: the hub URL
  • secret: the hub secret (used for the client registration)
  • version: the hub version, as a string
  • conf: a dictionary with all hub configuration parameters
source
SAMP.SAMPWebHubType
SAMPWebHub <: [`SAMP.AbstractSAMPHub`](@ref)

A Web SAMP hub.

Can be created by a simple call SAMPWebHub(): all fields are automatically set following the SAMP protocl.

Members

  • proxy: the XMLRPC proxy associated with the hub
  • url: the hub URL (always equal to "http://localhost:21012/")
source
SAMP.defaultHubConstant
defaultHub::Union{SAMPHub,Nothing}

The default hub.

Can be obtained (and set, if it is nothing) using getHub.

source
SAMP.getHubFunction
getHub()

Return the default hub.

This function also sets it the first time it is called.

source
SAMP.pingFunction
ping(hub)

Ping the hub.

This function retunrs nothing if the hub can be pinged; otherwise, an error is thrown.

source
ping(client, dest=client.client_id)
pint(dest)

Ping id; return nothing in case of success.

source