remotesp

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	RemotespSyntaxUUID = &uuid.UUID{TimeLow: 0x2f5f6521, TimeMid: 0xca47, TimeHiAndVersion: 0x1068, ClockSeqHiAndReserved: 0xb3, ClockSeqLow: 0x19, Node: [6]uint8{0x0, 0xdd, 0x1, 0x6, 0x62, 0xdb}}
	// Syntax ID
	RemotespSyntaxV1_0 = &dcerpc.SyntaxID{IfUUID: RemotespSyntaxUUID, IfVersionMajor: 1, IfVersionMinor: 0}
)
View Source
var (
	// import guard
	GoPackage = "trp"
)

Functions

func NewRemotespServerHandle

func NewRemotespServerHandle(o RemotespServer) dcerpc.ServerHandle

func RegisterRemotespServer

func RegisterRemotespServer(conn dcerpc.Conn, o RemotespServer, opts ...dcerpc.Option)

func RemotespServerHandle

func RemotespServerHandle(ctx context.Context, o RemotespServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)

Types

type AttachRequest

type AttachRequest struct {
}

AttachRequest structure represents the RemoteSPAttach operation request

func (*AttachRequest) MarshalNDR

func (o *AttachRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AttachRequest) UnmarshalNDR

func (o *AttachRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type AttachResponse

type AttachResponse struct {
	// pphContext: Client handle of type PCONTEXT_HANDLE_TYPE2.
	Context *Type2 `idl:"name:pphContext" json:"context"`
	// Return: The RemoteSPAttach return value.
	Return int32 `idl:"name:Return" json:"return"`
}

AttachResponse structure represents the RemoteSPAttach operation response

func (*AttachResponse) MarshalNDR

func (o *AttachResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*AttachResponse) UnmarshalNDR

func (o *AttachResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DetachRequest

type DetachRequest struct {
	// pphContext: Pointer to a PCONTEXT_HANDLE_TYPE2 handle to the binding instance being
	// terminated.
	//
	// This method has no return values.
	//
	// On success, the binding instance is removed from the Server List.
	Context *Type2 `idl:"name:pphContext" json:"context"`
}

DetachRequest structure represents the RemoteSPDetach operation request

func (*DetachRequest) MarshalNDR

func (o *DetachRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DetachRequest) UnmarshalNDR

func (o *DetachRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type DetachResponse

type DetachResponse struct {
	// pphContext: Pointer to a PCONTEXT_HANDLE_TYPE2 handle to the binding instance being
	// terminated.
	//
	// This method has no return values.
	//
	// On success, the binding instance is removed from the Server List.
	Context *Type2 `idl:"name:pphContext" json:"context"`
}

DetachResponse structure represents the RemoteSPDetach operation response

func (*DetachResponse) MarshalNDR

func (o *DetachResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*DetachResponse) UnmarshalNDR

func (o *DetachResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type EventProcRequest

type EventProcRequest struct {
	// phContext: Client handle of type PCONTEXT_HANDLE_TYPE2.
	Context *Type2 `idl:"name:phContext" json:"context"`
	// pBuffer: Packet MUST contain a list of ASYNCEVENTMSG structures, each of which MUST
	// be ASYNCEVENTMSG.TotalSize bytes in size.
	Buffer []byte `idl:"name:pBuffer;size_is:(lSize);length_is:(lSize)" json:"buffer"`
	// lSize: Size of the pBuffer.
	Size int32 `idl:"name:lSize" json:"size"`
}

EventProcRequest structure represents the RemoteSPEventProc operation request

func (*EventProcRequest) MarshalNDR

func (o *EventProcRequest) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*EventProcRequest) UnmarshalNDR

func (o *EventProcRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type EventProcResponse

type EventProcResponse struct {
}

EventProcResponse structure represents the RemoteSPEventProc operation response

func (*EventProcResponse) MarshalNDR

func (o *EventProcResponse) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*EventProcResponse) UnmarshalNDR

func (o *EventProcResponse) UnmarshalNDR(ctx context.Context, r ndr.Reader) error

type RemotespClient

type RemotespClient interface {

	// The RemoteSPAttach method is called by the server to establish a binding instance
	// in response to a client call to the server's ClientAttach method.
	//
	// Return Values: The method returns 0 on success; otherwise, it returns a nonzero error
	// code, as specified in [MS-ERREF]. On success, the Server List is updated with the
	// binding instance.
	//
	// Exceptions Thrown:
	//
	// The client raises an RPC_S_ACCESS_DENIED exception if it fails to obtain the RPC
	// call attributes. The client also raises an RPC_S_ACCESS_DENIED exception if it determines
	// from the call attributes that the server did not specify RPC_C_AUTHN_LEVEL_PKT_PRIVACY,
	// and the client configuration requires this authentication level.
	//
	// Except as noted above, no exceptions are thrown beyond those thrown by the underlying
	// RPC protocol, as specified in [MS-RPCE].
	//
	// The opnum field value for this method is 0.<10>
	Attach(context.Context, *AttachRequest, ...dcerpc.CallOption) (*AttachResponse, error)

	// The RemoteSPEventProc method is called by the server to "push" completion notifications
	// and unsolicited events to the client. The server MUST call this method of the remotesp
	// interface with the endpoint and protocol sequence as specified by the connection-oriented
	// client in the ClientAttach RPC packet.
	//
	// Return Values: This method has no return values.
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol, as specified
	// in [MS-RPCE].
	//
	// The opnum field value for this method is 1.
	EventProc(context.Context, *EventProcRequest, ...dcerpc.CallOption) (*EventProcResponse, error)

	// The RemoteSPDetach method is called by the server in response to a Client call to
	// the server's ClientDetach method to free the binding instance and to release the
	// associated resources.
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol, as specified
	// in [MS-RPCE].
	//
	// The opnum field value for this method is 2.
	Detach(context.Context, *DetachRequest, ...dcerpc.CallOption) (*DetachResponse, error)

	// AlterContext alters the client context.
	AlterContext(context.Context, ...dcerpc.Option) error
}

remotesp interface.

func NewRemotespClient

func NewRemotespClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (RemotespClient, error)

type RemotespServer

type RemotespServer interface {

	// The RemoteSPAttach method is called by the server to establish a binding instance
	// in response to a client call to the server's ClientAttach method.
	//
	// Return Values: The method returns 0 on success; otherwise, it returns a nonzero error
	// code, as specified in [MS-ERREF]. On success, the Server List is updated with the
	// binding instance.
	//
	// Exceptions Thrown:
	//
	// The client raises an RPC_S_ACCESS_DENIED exception if it fails to obtain the RPC
	// call attributes. The client also raises an RPC_S_ACCESS_DENIED exception if it determines
	// from the call attributes that the server did not specify RPC_C_AUTHN_LEVEL_PKT_PRIVACY,
	// and the client configuration requires this authentication level.
	//
	// Except as noted above, no exceptions are thrown beyond those thrown by the underlying
	// RPC protocol, as specified in [MS-RPCE].
	//
	// The opnum field value for this method is 0.<10>
	Attach(context.Context, *AttachRequest) (*AttachResponse, error)

	// The RemoteSPEventProc method is called by the server to "push" completion notifications
	// and unsolicited events to the client. The server MUST call this method of the remotesp
	// interface with the endpoint and protocol sequence as specified by the connection-oriented
	// client in the ClientAttach RPC packet.
	//
	// Return Values: This method has no return values.
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol, as specified
	// in [MS-RPCE].
	//
	// The opnum field value for this method is 1.
	EventProc(context.Context, *EventProcRequest) (*EventProcResponse, error)

	// The RemoteSPDetach method is called by the server in response to a Client call to
	// the server's ClientDetach method to free the binding instance and to release the
	// associated resources.
	//
	// Exceptions Thrown:
	//
	// No exceptions are thrown beyond those thrown by the underlying RPC protocol, as specified
	// in [MS-RPCE].
	//
	// The opnum field value for this method is 2.
	Detach(context.Context, *DetachRequest) (*DetachResponse, error)
}

remotesp server interface.

type Type2

type Type2 dcetypes.ContextHandle

Type2 structure represents PCONTEXT_HANDLE_TYPE2 RPC structure.

func (*Type2) ContextHandle

func (o *Type2) ContextHandle() *dcetypes.ContextHandle

func (*Type2) MarshalNDR

func (o *Type2) MarshalNDR(ctx context.Context, w ndr.Writer) error

func (*Type2) UnmarshalNDR

func (o *Type2) UnmarshalNDR(ctx context.Context, w ndr.Reader) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL