/* This Source Code Form is subject to the terms of the Mozilla Public
* License , v . 2 . 0 . If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nsISupports.idl"
#include "nsrootidl.idl"
/**
* nsINamedPipeDataObserver
*
* This is the callback interface for nsINamedPipeService .
* The functions are called by the internal thread in the nsINamedPipeService .
*/
[uuid(de4f460b-
94 fd-
442 c-
9002 -
1637 beb2185a)]
interface nsINamedPipeDataObserver : nsISupports
{
/**
* onDataAvailable
*
* @ param aBytesTransferred
* Transfered bytes during last transmission .
* @ param aOverlapped
* Corresponding overlapped structure used by the async I / O
*/
void onDataAvailable(in
unsigned long aBytesTransferred,
in voidPtr aOverlapped);
/**
* onError
*
* @ param aError
* Error code of the error .
* @ param aOverlapped
* Corresponding overlapped structure used by the async I / O
*/
void onError(in
unsigned long aError,
in voidPtr aOverlapped);
};
/**
* nsINamedPipeService
*/
[uuid(
1 bf19133-
5625 -
4 ac8-
836 a-
80 b1c215f72b)]
interface nsINamedPipeService : nsISupports
{
/**
* addDataObserver
*
* @ param aHandle
* The handle that is going to be monitored for read / write operations .
* Only handles that are opened with overlapped IO are supported .
* @ param aObserver
* The observer of the handle , the service strong - refs of the observer .
*/
void addDataObserver(in voidPtr aHandle,
in nsINamedPipeDataObserver aObserver);
/**
* removeDataObserver
*
* @ param aHandle
The handle associated to the observer , and will be closed by the
service .
* @ param aObserver
* The observer to be removed .
*/
void removeDataObserver(in voidPtr aHandle,
in nsINamedPipeDataObserver aObserver);
/**
* isOnCurrentThread
*
* @ return the caller runs within the internal thread .
*/
boolean isOnCurrentThread();
};
Messung V0.5 in Prozent C=93 H=100 G=96
¤ Dauer der Verarbeitung: 0.4 Sekunden
¤
*© Formatika GbR, Deutschland