rpcinterface_2f5f6521ca471068b31900dd010662db_1_0
import "github.com/TheManticoreProject/Manticore/network/dcerpc/interfaces/2f5f6521-ca47-1068-b319-00dd010662db/1.0"
Package rpcinterface_2f5f6521ca471068b31900dd010662db_1_0 is the descriptor for the remotesp (Remote Service Provider) RPC interface, abstract syntax 2f5f6521-ca47-1068-b319-00dd010662db version 1.0 ([MS-TRP]).
remotesp is a reverse/callback interface: the telephony server acts as the RPC client and invokes these methods on the client, which hosts the remotesp server, to push asynchronous TAPI event notifications.
An RPC interface is identified by its UUID and version, never by the transport it is reached over: the directory is named after the UUID with the version in the nested <maj>.<min>/ directory.
This package holds only the interface-level descriptor (abstract syntax, transport endpoint, opnums, opnum<->name maps, status constants). NDR types live in the windows/protocols/ms-trp package (imported as mstrp) and method stubs in functions; both depend on this package, never the reverse.
Index
Constants
Opnums for the on-the-wire methods.
const (
OpnumRemoteSPAttach uint16 = 0
OpnumRemoteSPEventProc uint16 = 1
OpnumRemoteSPDetach uint16 = 2
)
PipeName is empty for the remotesp interface: [MS-TRP] 2.1 specifies that the client chooses the RPC protocol sequence and endpoint when it calls ClientAttach, and the telephony server establishes the reverse connection to that client-supplied endpoint. There is therefore no fixed well-known named pipe. It is retained, empty, for descriptor uniformity across interfaces.
const PipeName = ``
Status codes for this interface. RemoteSPAttach returns 0 on success and a nonzero error code otherwise ([MS-TRP] 3.1.4.1); the void methods (RemoteSPEventProc, RemoteSPDetach) carry no RPC return value. [MS-TRP] does not enumerate a named error-code table for the RPC return, so only success is modeled; StatusString renders any other value as hex.
const (
StatusSuccess uint32 = 0x00000000 // success (return value 0)
)
Variables
NameToOpnum is the reverse of OpnumToName, built at init so the two never drift.
var NameToOpnum = func() map[string]uint16 {
m := make(map[string]uint16, len(OpnumToName))
for op, name := range OpnumToName {
m[name] = op
}
return m
}()
OpnumToName maps each on-the-wire opnum to its method name; the single source of truth.
var OpnumToName = map[uint16]string{
OpnumRemoteSPAttach: "RemoteSPAttach",
OpnumRemoteSPEventProc: "RemoteSPEventProc",
OpnumRemoteSPDetach: "RemoteSPDetach",
}
func StatusString
func StatusString(status uint32) string
StatusString returns a mnemonic for the documented status codes, otherwise the hex value.
func SyntaxID
func SyntaxID() syntax.SyntaxID
SyntaxID returns the remotesp abstract syntax identifier: 2f5f6521-ca47-1068-b319-00dd010662db, version 1.0.