1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7<title>ConnectAsync</title> 8 </head> 9 <body> 10<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/http/Overview.html">http</a>::<a href="../../../nn/http/Connection/Overview.html">Connection</a>::ConnectAsync</CODE> Member Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14<a href="../../../nn/Result/Overview.html">nn::Result</a> ConnectAsync( 15 void 16); 17</pre> 18 </div> 19<h2>Arguments</h2> 20 <div class="section"> 21<p>None.</p> 22 </div> 23<h2>Return Values</h2> 24 <div class="section"> 25 <br /> <br /> 26 <table class="arguments"> 27 <thead> 28 <tr> 29<th>Value</th> 30<td>Description</td> 31 </tr> 32 </thead> 33 <tr> 34<th><CODE>Result::IsSuccess</CODE></th> 35<td>Process was successful.</td> 36 </tr> 37 <tr> 38<th><CODE>ResultMessageSendToListenThreadErr</CODE></th> 39<td>Error indicating that the maximum number of HTTP sessions are already in use by the device.</td> 40 </tr> 41 <tr> 42<th><CODE>ResultConnectionCanceledErr</CODE></th> 43<td>Error indicating that the connection was canceled. To reconnect, first call the <a href="../../../nn/ssl/Connection/Overview.html"><CODE>Connection</CODE></a> object's <a href="../../../nn/ssl/Finalize.html"><CODE>Finalize</CODE></a> function, and then call <a href="../../../nn/ssl/Connection/Initialize.html"><CODE>Initialize</CODE></a> again.</td> 44 </tr> 45 <tr> 46<th><CODE>ResultNotConnectedErr</CODE></th> 47<td>Error indicating that no target URL was assigned to the <CODE>Connection</CODE> object. No action is performed because the <CODE>Connection</CODE> object has not been initialized by a successful call of <a href="../../../nn/ssl/Connection/Initialize.html"><CODE>Initialize</CODE></a>.</td> 48 </tr> 49 <tr> 50<th><CODE>ResultNotInitializedErr</CODE></th> 51<td>Error indicating that the library is not initialized. None of this library's functions can be used until you first call <a href="../../../nn/http/Initialize.html"><CODE>nn::http::Initialize</CODE></a>.</td> 52 </tr> 53 <tr> 54<th>A value other than the above.</th> 55<td>Unexpected error (See <CODE>http_Result.h</CODE> for details).</td> 56 </tr> 57 </table> </div> 58<h2>Description</h2> 59 <div class="section"> 60<p>Starts a connection with the communication target. (This is the asynchronous version of the function. In other words, if the maximum number of HTTP sessions are already in use by the device, this function returns an error.」)</p><!-- write here --></div> 61<h2>Revision History</h2> 62 <div class="section"> 63 <dl class="history"> 64 <dt>2010/06/14</dt> 65<dd>Initial version.<br /> 66 </dd> 67 </dl> 68 </div> 69 <hr><p>CONFIDENTIAL</p></body> 70</html> 71