2015-10-08 14:55:01 -04:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< meta name = "generator" content = "Doxygen 1.8.9.1" / >
< title > Crashpad: crashpad::ExceptionHandlerServer Class Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< script type = "text/javascript" >
$(document).ready(function() { init_search(); });
< / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > Crashpad
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "annotated.html" > < span > Class  List< / span > < / a > < / li >
< li > < a href = "classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class  Members< / span > < / a > < / li >
< / ul >
< / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespacecrashpad.html" > crashpad< / a > < / li > < li class = "navelem" > < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html" > ExceptionHandlerServer< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Classes< / a > |
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classcrashpad_1_1ExceptionHandlerServer-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > crashpad::ExceptionHandlerServer Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > Runs the main exception-handling server in Crashpad’ s handler process.
< a href = "classcrashpad_1_1ExceptionHandlerServer.html#details" > More...< / a > < / p >
< p > < code > #include " util/win/exception_handler_server.h" < / code > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "nested-classes" > < / a >
Classes< / h2 > < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > class   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer_1_1Delegate.html" > Delegate< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
2015-10-29 18:40:30 -04:00
< tr class = "memitem:a7a6193e902570cad41cc6a6d2d7c6fb8" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html#a7a6193e902570cad41cc6a6d2d7c6fb8" > ExceptionHandlerServer< / a > (base::mac::ScopedMachReceiveRight receive_port)< / td > < / tr >
< tr class = "memdesc:a7a6193e902570cad41cc6a6d2d7c6fb8" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Constructs an < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html" title = "Runs the main exception-handling server in Crashpad’ s handler process. " > ExceptionHandlerServer< / a > object. < a href = "#a7a6193e902570cad41cc6a6d2d7c6fb8" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a7a6193e902570cad41cc6a6d2d7c6fb8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-08 14:55:01 -04:00
< tr class = "memitem:a348789edd93bcd388ddd38c77230583d" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html#a348789edd93bcd388ddd38c77230583d" > Run< / a > (< a class = "el" href = "classcrashpad_1_1UniversalMachExcServer_1_1Interface.html" > UniversalMachExcServer::Interface< / a > *exception_interface)< / td > < / tr >
< tr class = "memdesc:a348789edd93bcd388ddd38c77230583d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Runs the exception-handling server. < a href = "#a348789edd93bcd388ddd38c77230583d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a348789edd93bcd388ddd38c77230583d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-29 18:40:30 -04:00
< tr class = "memitem:ac0b65ce21f6fc930f9f33cdd7bc6993e" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html#ac0b65ce21f6fc930f9f33cdd7bc6993e" > ExceptionHandlerServer< / a > (const std::string & pipe_name)< / td > < / tr >
< tr class = "memdesc:ac0b65ce21f6fc930f9f33cdd7bc6993e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Constructs the exception handling server. < a href = "#ac0b65ce21f6fc930f9f33cdd7bc6993e" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ac0b65ce21f6fc930f9f33cdd7bc6993e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8ddcf9cff0364e46378ef575ded9a773" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html#a8ddcf9cff0364e46378ef575ded9a773" > Run< / a > (< a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer_1_1Delegate.html" > Delegate< / a > *delegate)< / td > < / tr >
< tr class = "memdesc:a8ddcf9cff0364e46378ef575ded9a773" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Runs the exception-handling server. < a href = "#a8ddcf9cff0364e46378ef575ded9a773" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a8ddcf9cff0364e46378ef575ded9a773" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2015-10-08 14:55:01 -04:00
< tr class = "memitem:a75dd814798b8f8224f53d84cea8368be" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a75dd814798b8f8224f53d84cea8368be" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html#a75dd814798b8f8224f53d84cea8368be" > Stop< / a > ()< / td > < / tr >
< tr class = "memdesc:a75dd814798b8f8224f53d84cea8368be" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Stops the exception-handling server. Returns immediately. The object must not be destroyed until < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html#a348789edd93bcd388ddd38c77230583d" title = "Runs the exception-handling server. " > Run()< / a > returns. < br / > < / td > < / tr >
< tr class = "separator:a75dd814798b8f8224f53d84cea8368be" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > Runs the main exception-handling server in Crashpad’ s handler process. < / p >
< p > Runs the main exception-handling server in Crashpad's handler process. < / p >
2015-10-29 18:40:30 -04:00
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
< a class = "anchor" id = "a7a6193e902570cad41cc6a6d2d7c6fb8" > < / a >
2015-10-08 14:55:01 -04:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2015-10-29 18:40:30 -04:00
< td class = "memname" > crashpad::ExceptionHandlerServer::ExceptionHandlerServer < / td >
2015-10-08 14:55:01 -04:00
< td > (< / td >
2015-10-29 18:40:30 -04:00
< td class = "paramtype" > base::mac::ScopedMachReceiveRight  < / td >
< td class = "paramname" > < em > receive_port< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > explicit< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Constructs an < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html" title = "Runs the main exception-handling server in Crashpad’ s handler process. " > ExceptionHandlerServer< / a > object. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > receive_port< / td > < td > The port that exception messages and no-senders notifications will be received on. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a class = "anchor" id = "ac0b65ce21f6fc930f9f33cdd7bc6993e" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > crashpad::ExceptionHandlerServer::ExceptionHandlerServer < / td >
< td > (< / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > pipe_name< / em > < / td > < td > )< / td >
< td > < / td >
2015-10-08 14:55:01 -04:00
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
2015-10-29 18:40:30 -04:00
< span class = "mlabels" > < span class = "mlabel" > explicit< / span > < / span > < / td >
2015-10-08 14:55:01 -04:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2015-10-29 18:40:30 -04:00
< p > Constructs the exception handling server. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > pipe_name< / td > < td > The name of the pipe to listen on. Must be of the form "\\.\pipe\< some_name> ". < / td > < / tr >
< / table >
< / dd >
< / dl >
2015-10-08 14:55:01 -04:00
< / div >
< / div >
2015-10-29 18:40:30 -04:00
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2015-10-08 14:55:01 -04:00
< a class = "anchor" id = "a348789edd93bcd388ddd38c77230583d" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void crashpad::ExceptionHandlerServer::Run < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classcrashpad_1_1UniversalMachExcServer_1_1Interface.html" > UniversalMachExcServer::Interface< / a > *  < / td >
< td class = "paramname" > < em > exception_interface< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Runs the exception-handling server. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > exception_interface< / td > < td > An object to send exception messages to.< / td > < / tr >
< / table >
< / dd >
< / dl >
2015-10-29 18:40:30 -04:00
< p > This method monitors the receive port for exception messages and no-senders notifications. It continues running until it has no more clients, indicated by the receipt of a no-senders notification. It is important to assure that a send right exists in a client (or has been queued by < code > mach_msg()< / code > to be sent to a client) prior to calling this method, or it will detect that it is sender-less and return immediately.< / p >
2015-10-08 14:55:01 -04:00
< p > All exception messages will be passed to < em > exception_interface< / em > .< / p >
< p > This method must only be called once on an < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html" title = "Runs the main exception-handling server in Crashpad’ s handler process. " > ExceptionHandlerServer< / a > object.< / p >
2015-10-29 18:40:30 -04:00
< p > If an unexpected condition that prevents this method from functioning is encountered, it will log a message and terminate execution. Receipt of an invalid message on the receive port will cause a message to be logged, but this method will continue running normally. < / p >
2015-10-08 14:55:01 -04:00
< / div >
< / div >
2015-10-29 18:40:30 -04:00
< a class = "anchor" id = "a8ddcf9cff0364e46378ef575ded9a773" > < / a >
2015-10-08 14:55:01 -04:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void crashpad::ExceptionHandlerServer::Run < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer_1_1Delegate.html" > Delegate< / a > *  < / td >
2015-10-29 18:40:30 -04:00
< td class = "paramname" > < em > delegate< / em > < / td > < td > )< / td >
2015-10-08 14:55:01 -04:00
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Runs the exception-handling server. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > delegate< / td > < td > The interface to which the exceptions are delegated when they are caught in < a class = "el" href = "classcrashpad_1_1ExceptionHandlerServer.html#a348789edd93bcd388ddd38c77230583d" title = "Runs the exception-handling server. " > Run()< / a > . Ownership is not transferred. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
< li > handler/mac/exception_handler_server.h< / li >
< li > handler/mac/exception_handler_server.cc< / li >
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
< / a > 1.8.9.1
< / small > < / address >
< / body >
< / html >