<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Redirection Library SocketsCallbacks in Intel® Business Client Software Development</title>
    <link>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904264#M4770</link>
    <description>The redirection library allows the developer to provide custom callbacks for communications. To do this, the library is initialized using:&lt;BR /&gt;&lt;BR /&gt;IMRResult IMR_InitEx(&lt;BR /&gt;IMRVersion *version,&lt;BR /&gt;char *ini_file&lt;BR /&gt;SocketsCallbacks* socketsCallbacks&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;SocketsCallbacks is defined as :&lt;BR /&gt;&lt;BR /&gt;typedef struct _SocketsCallbacks{&lt;BR /&gt;Open open_connection;&lt;BR /&gt;Close close_connection;&lt;BR /&gt;Receive receive_data;&lt;BR /&gt;Send send_data;&lt;BR /&gt;} SocketsCallbacks;&lt;BR /&gt;&lt;BR /&gt;Receive is:&lt;BR /&gt;typedef int (*Receive)(unsigned char* buffer, unsigned int* length, unsigned int conID);&lt;BR /&gt;&lt;BR /&gt;I cannot find documentation for the parameters of the this function. What I'm thinking:&lt;BR /&gt;1. char* buffer is a pointer to pre-allocated memory where the results of the receive will be stored&lt;BR /&gt;2 connId is the connection that the receive is wanting to receive data on&lt;BR /&gt;&lt;BR /&gt;However, I need to know:&lt;BR /&gt;1. How can I tell the size of the receive buffer? It appears that length is probably an out parameter, since it is a pointer. Or maybe is it telling the size of the buffer?&lt;BR /&gt;2. What should the function return? Is it the number of bytes received or perhaps IMR_RES_OK (in the case of no error)&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated. I apologize if I missed this somewhere in the docs.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Aug 2009 16:23:40 GMT</pubDate>
    <dc:creator>inbrian</dc:creator>
    <dc:date>2009-08-03T16:23:40Z</dc:date>
    <item>
      <title>Redirection Library SocketsCallbacks</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904264#M4770</link>
      <description>The redirection library allows the developer to provide custom callbacks for communications. To do this, the library is initialized using:&lt;BR /&gt;&lt;BR /&gt;IMRResult IMR_InitEx(&lt;BR /&gt;IMRVersion *version,&lt;BR /&gt;char *ini_file&lt;BR /&gt;SocketsCallbacks* socketsCallbacks&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;SocketsCallbacks is defined as :&lt;BR /&gt;&lt;BR /&gt;typedef struct _SocketsCallbacks{&lt;BR /&gt;Open open_connection;&lt;BR /&gt;Close close_connection;&lt;BR /&gt;Receive receive_data;&lt;BR /&gt;Send send_data;&lt;BR /&gt;} SocketsCallbacks;&lt;BR /&gt;&lt;BR /&gt;Receive is:&lt;BR /&gt;typedef int (*Receive)(unsigned char* buffer, unsigned int* length, unsigned int conID);&lt;BR /&gt;&lt;BR /&gt;I cannot find documentation for the parameters of the this function. What I'm thinking:&lt;BR /&gt;1. char* buffer is a pointer to pre-allocated memory where the results of the receive will be stored&lt;BR /&gt;2 connId is the connection that the receive is wanting to receive data on&lt;BR /&gt;&lt;BR /&gt;However, I need to know:&lt;BR /&gt;1. How can I tell the size of the receive buffer? It appears that length is probably an out parameter, since it is a pointer. Or maybe is it telling the size of the buffer?&lt;BR /&gt;2. What should the function return? Is it the number of bytes received or perhaps IMR_RES_OK (in the case of no error)&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated. I apologize if I missed this somewhere in the docs.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Aug 2009 16:23:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904264#M4770</guid>
      <dc:creator>inbrian</dc:creator>
      <dc:date>2009-08-03T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Library SocketsCallbacks</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904265#M4771</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Hello,&lt;BR /&gt;Section 3.4.3.5 of the Redirection Library Design Guide (in the DOCS folder of the SDK)provides the description of this funciton.</description>
      <pubDate>Mon, 03 Aug 2009 17:09:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904265#M4771</guid>
      <dc:creator>Lance_A_Intel</dc:creator>
      <dc:date>2009-08-03T17:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Library SocketsCallbacks</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904266#M4772</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/335374"&gt;Lance Atencio (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; &lt;BR /&gt;Hello,&lt;BR /&gt;Section 3.4.3.5 of the Redirection Library Design Guide (in the DOCS folder of the SDK)provides the description of this funciton.&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Well, I apologize. It was right there only a couple pages up. Thanks for the help : ) Apparently length is both an in parameter and an out parameter. Interesting.&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Aug 2009 17:28:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904266#M4772</guid>
      <dc:creator>inbrian</dc:creator>
      <dc:date>2009-08-03T17:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Redirection Library SocketsCallbacks</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904267#M4773</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/437232"&gt;inbrian&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;Well, I apologize. It was right there only a couple pages up. Thanks for the help : ) Apparently length is both an in parameter and an out parameter. Interesting.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;No need to apologize and you are welcome.&lt;BR /&gt;&lt;BR /&gt;Yes, the input/output is used to allow the caller to indicate (input)how much buffer space is availableand get back (output)how much of it was used.</description>
      <pubDate>Mon, 03 Aug 2009 17:38:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/Redirection-Library-SocketsCallbacks/m-p/904267#M4773</guid>
      <dc:creator>Lance_A_Intel</dc:creator>
      <dc:date>2009-08-03T17:38:16Z</dc:date>
    </item>
  </channel>
</rss>

