asyncemsmdb

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Syntax UUID
	AsyncemsmdbSyntaxUUID = &uuid.UUID{TimeLow: 0x5261574a, TimeMid: 0x4572, TimeHiAndVersion: 0x206e, ClockSeqHiAndReserved: 0xb2, ClockSeqLow: 0x68, Node: [6]uint8{0x6b, 0x19, 0x92, 0x13, 0xb4, 0xe4}}
	// Syntax ID
	AsyncemsmdbSyntaxV0_1 = &dcerpc.SyntaxID{IfUUID: AsyncemsmdbSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 1}
)
View Source
var (
	// import guard
	GoPackage = "oxcrpc"
)

Functions

func AsyncemsmdbServerHandle

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

func NewAsyncemsmdbServerHandle

func NewAsyncemsmdbServerHandle(o AsyncemsmdbServer) dcerpc.ServerHandle

func RegisterAsyncemsmdbServer

func RegisterAsyncemsmdbServer(conn dcerpc.Conn, o AsyncemsmdbServer, opts ...dcerpc.Option)

Types

type AsyncemsmdbClient

type AsyncemsmdbClient interface {

	// The EcDoAsyncWaitEx method is an asynchronous call that the server does not complete
	// until events are pending on the Session Context, up to a 5-minute duration of no
	// client activity. If no events are available within 5 minutes of the time that the
	// client last accessed the server<36> through a call to the EcDoRpcExt2 method, as
	// specified in section 3.1.4.2, the server returns the call and does not set the NotificationPending
	// flag in the pulFlagsOut parameter. If an event is pending, the server completes the
	// call immediately and returns the NotificationPending flag in the pulFlagsOut parameter.
	// This call requires an active asynchronous context handle to be returned from the
	// EcDoAsyncConnectEx method on the EMSMDB interface, as specified in section 3.1.4.1.
	// The asynchronous context handle is associated with the Session Context.
	//
	// This method is part of notification handling. For more information about notifications,
	// see [MS-OXCNOTIF].
	//
	// Return Values: If the method succeeds, the return value is 0. If the method fails,
	// the return value is an implementation-specific error code or one of the protocol-defined
	// error codes listed in the following table.
	//
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//	|   ERROR CODE    |            |                                                                                  |
	//	|      NAME       |   VALUE    |                                     MEANING                                      |
	//	|                 |            |                                                                                  |
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//	| Rejected        | 0x000007EE | An EcDoAsyncWaitEx method call is already outstanding on this asynchronous       |
	//	|                 |            | context handle.<37>                                                              |
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//	| Exiting         | 0x000003ED | The server is shutting down.                                                     |
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol as specified in [MS-RPCE].
	DoAsyncWaitEx(context.Context, *DoAsyncWaitExRequest, ...dcerpc.CallOption) (*DoAsyncWaitExResponse, error)

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

asyncemsmdb interface.

func NewAsyncemsmdbClient

func NewAsyncemsmdbClient(ctx context.Context, cc dcerpc.Conn, opts ...dcerpc.Option) (AsyncemsmdbClient, error)

type AsyncemsmdbServer

type AsyncemsmdbServer interface {

	// The EcDoAsyncWaitEx method is an asynchronous call that the server does not complete
	// until events are pending on the Session Context, up to a 5-minute duration of no
	// client activity. If no events are available within 5 minutes of the time that the
	// client last accessed the server<36> through a call to the EcDoRpcExt2 method, as
	// specified in section 3.1.4.2, the server returns the call and does not set the NotificationPending
	// flag in the pulFlagsOut parameter. If an event is pending, the server completes the
	// call immediately and returns the NotificationPending flag in the pulFlagsOut parameter.
	// This call requires an active asynchronous context handle to be returned from the
	// EcDoAsyncConnectEx method on the EMSMDB interface, as specified in section 3.1.4.1.
	// The asynchronous context handle is associated with the Session Context.
	//
	// This method is part of notification handling. For more information about notifications,
	// see [MS-OXCNOTIF].
	//
	// Return Values: If the method succeeds, the return value is 0. If the method fails,
	// the return value is an implementation-specific error code or one of the protocol-defined
	// error codes listed in the following table.
	//
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//	|   ERROR CODE    |            |                                                                                  |
	//	|      NAME       |   VALUE    |                                     MEANING                                      |
	//	|                 |            |                                                                                  |
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//	| Rejected        | 0x000007EE | An EcDoAsyncWaitEx method call is already outstanding on this asynchronous       |
	//	|                 |            | context handle.<37>                                                              |
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//	| Exiting         | 0x000003ED | The server is shutting down.                                                     |
	//	+-----------------+------------+----------------------------------------------------------------------------------+
	//
	// Exceptions Thrown: No exceptions are thrown beyond those thrown by the underlying
	// RPC protocol as specified in [MS-RPCE].
	DoAsyncWaitEx(context.Context, *DoAsyncWaitExRequest) (*DoAsyncWaitExResponse, error)
}

asyncemsmdb server interface.

type DoAsyncWaitExRequest

type DoAsyncWaitExRequest struct {
	// acxh: An asynchronous context handle. On input, the client MUST pass a valid asynchronous
	// context handle that was created by calling the EcDoAsyncConnectEx method on the EMSMDB
	// interface. The server uses the asynchronous context handle to identify the Session
	// Context to use for this call. If the asynchronous context handle is not valid, the
	// server successfully completes the call, setting the NotificationPending flag in the
	// pulFlagsOut parameter.
	AsyncSession *oxcrpc.AsyncSession `idl:"name:acxh" json:"async_session"`
	// ulFlagsIn: Unused. Reserved for future use. Client MUST pass a value of 0x00000000.
	FlagsIn uint32 `idl:"name:ulFlagsIn" json:"flags_in"`
}

DoAsyncWaitExRequest structure represents the EcDoAsyncWaitEx operation request

func (*DoAsyncWaitExRequest) MarshalNDR

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

func (*DoAsyncWaitExRequest) UnmarshalNDR

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

type DoAsyncWaitExResponse

type DoAsyncWaitExResponse struct {
	// pulFlagsOut: The output flags for the client. Flag values are specified in the following
	// table.
	//
	//	+---------------------+------------+----------------------------------------------------------------------------------+
	//	|        FLAG         |            |                                                                                  |
	//	|        NAME         |   VALUE    |                                   DESCRIPTION                                    |
	//	|                     |            |                                                                                  |
	//	+---------------------+------------+----------------------------------------------------------------------------------+
	//	+---------------------+------------+----------------------------------------------------------------------------------+
	//	| NotificationPending | 0x00000001 | Signals that events are pending for the client on the Session Context on the     |
	//	|                     |            | server. The client MUST call the EcDoRpcExt2 method (with additional data in the |
	//	|                     |            | ROP request buffer if there is additional data to send to the server, or with an |
	//	|                     |            | empty ROP request buffer if there is no additional data to send to the server).  |
	//	|                     |            | The server will return the event details in the ROP response buffer.             |
	//	+---------------------+------------+----------------------------------------------------------------------------------+
	FlagsOut uint32 `idl:"name:pulFlagsOut" json:"flags_out"`
	// Return: The EcDoAsyncWaitEx return value.
	Return int32 `idl:"name:Return" json:"return"`
}

DoAsyncWaitExResponse structure represents the EcDoAsyncWaitEx operation response

func (*DoAsyncWaitExResponse) MarshalNDR

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

func (*DoAsyncWaitExResponse) UnmarshalNDR

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

Jump to

Keyboard shortcuts

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