검색 결과


    아직 자원 봉사자들이 한국어로 현재 문서를 번역하지 않았습니다. 가입해서 이 문서가 번역되는 일에 함께 해 주세요!


    « Gecko Plugin API Reference « Plug-in Side Plug-in API


    Tells the plug-in that a stream is about to be closed or destroyed.


    #include <npapi.h>
    NPError NPP_DestroyStream(NPP       instance, 
                               NPStream* stream, 
                               NPReason  reason);


    The function has the following parameters:

    Pointer to current plug-in instance.
    Pointer to current stream.
    Reason the stream was destroyed. Values:
    • NPRES_DONE (Most common): Completed normally; all data was sent to the instance.
    • NPRES_USER_BREAK: User canceled stream directly by clicking the Stop button or indirectly by some action such as deleting the instance or initiating higher-priority network operations.
    • NPRES_NETWORK_ERR: Stream failed due to problems with network, disk I/O, lack of memory, or other problems.


    • If successful, the plug-in should return NPERR_NO_ERROR.
    • If unsuccessful, the plug-in should return an error code. For possible values, see Error Codes.


    The browser calls the NPP_DestroyStream function when a data stream sent to the plug-in is finished, either because it has completed successfully or terminated abnormally. After this, the browser deletes the NPStream object.

    You should delete any private data allocated in stream->pdata at this time, and should not make any further references to the stream object.

    See Also

    NPP_NewStream, NPStream

    문서 태그 및 공헌자

    Contributors to this page: Pmash, jgriffin, Mgjbot
    최종 변경: jgriffin,