Documentation ¶
Index ¶
- Variables
- func NewRemotespServerHandle(o RemotespServer) dcerpc.ServerHandle
- func RegisterRemotespServer(conn dcerpc.Conn, o RemotespServer, opts ...dcerpc.Option)
- func RemotespServerHandle(ctx context.Context, o RemotespServer, opNum int, r ndr.Reader) (dcerpc.Operation, error)
- type AttachRequest
- type AttachResponse
- type DetachRequest
- type DetachResponse
- type EventProcRequest
- type EventProcResponse
- type RemotespClient
- type RemotespServer
- type Type2
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)
Types ¶
type AttachRequest ¶
type AttachRequest struct { }
AttachRequest structure represents the RemoteSPAttach operation request
func (*AttachRequest) MarshalNDR ¶
func (*AttachRequest) UnmarshalNDR ¶
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 (*AttachResponse) UnmarshalNDR ¶
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 (*DetachRequest) UnmarshalNDR ¶
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 (*DetachResponse) UnmarshalNDR ¶
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 (*EventProcRequest) UnmarshalNDR ¶
type EventProcResponse ¶
type EventProcResponse struct { }
EventProcResponse structure represents the RemoteSPEventProc operation response
func (*EventProcResponse) MarshalNDR ¶
func (*EventProcResponse) UnmarshalNDR ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.