<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Thank you for the PROBLEM-REPORT-FORM.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">I looked for a bit and found no new developments in Linux kernel aio socket support, so the situation has apparently not changed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Your choices are:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">1. Redesign your application to alternate reads and writes; some protocols won’t support this well, but if you can it’s the easiest way.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">2. Change to using Reactor (particularly, ACE_Dev_Poll_Reactor) on Linux, at least.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">3. Write something to emulate aio using reactive mechanisms. There was an effort that did this in ACE quite a few years ago – maybe you can get your hands on that and see if
 it could work for you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">-Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> ace-users [mailto:ace-users-bounces@list.isis.vanderbilt.edu]
<b>On Behalf Of </b>h w<br>
<b>Sent:</b> Tuesday, March 01, 2016 9:45 AM<br>
<b>To:</b> ace-users@list.isis.vanderbilt.edu<br>
<b>Subject:</b> [ace-users] Help ! Porting ACE Proactor Aio application on Linux<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">ACE VERSION: 6.3.0<br>
<br>
    HOST MACHINE and OPERATING SYSTEM:<br>
         Centos 6.7   and Linux kernel 2.6.32-573.12.1.el6.i686<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
    THE $ACE_ROOT/ace/config.h <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">           #define ACE_LACKS_GETIPNODEBYADDR<br>
           #define ACE_LACKS_GETIPNODEBYNAME<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">           #define ACE_HAS_AIO_CALLS<br>
           #include "ace/config-linux.h"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">          <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">            include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features<br>
            no such file<br>
<br>
    AREA/CLASS/EXAMPLE AFFECTED:  no<br>
<br>
<br>
    DOES THE PROBLEM AFFECT:<br>
        COMPILATION?      no<br>
        LINKING?     no<br>
            On Unix systems, did you run make realclean first?   Yes, I did.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
<br>
    SYNOPSIS:<br>
        Using ACE Proactor AIO framework on network sockets to exchange messages between two or more endpoints on  linux OS.  It looked the message read or write blocked or in order.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
    DESCRIPTION:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">         I am porting an application into Linux which utilizes ACE proactor AIO framework for a network communication ( read/ write socket ).  It works fine on Windows OS. However, on Linux, The application looked like exchange messages
 in order,  for example, When I tried to send a message to the peer, I found that ACE_POSIX_AIOCB_Proactor did invoke aio_write() but the message did not get sent out util the peer sent a message out, and then got that previous message in. More worse, most
 time, when the connector estalished a connection and tried to send the first message, the system got locked up because a read operation probably be put before write operation for listening any incoming messages.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">         I searched the issue and found the similar issue report in the link but it was several years age: 
<a href="https://stevehuston.wordpress.com/2008/11/25/when-is-it-ok-to-use-ace-proactor-on-linux/" target="_blank">
https://stevehuston.wordpress.com/2008/11/25/when-is-it-ok-to-use-ace-proactor-on-linux/</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">   <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Is it  still the limitation on Linux?  Is there any way to get the ACE Proactor AIO work for network communication ( exchange message via socket with full duplex) now?  Any help would be greatly appreciated<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
Thanks!<o:p></o:p></p>
</div>
</div>
<div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="1" cellpadding="0" style="border:none;border-top:solid #AAABB6 1.0pt">
<tbody>
<tr>
<td width="470" style="width:352.5pt;border:none;padding:15.0pt .75pt .75pt .75pt">
<p class="MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#41424E">This email has been sent from a virus-free computer protected by Avast.
<br>
<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><span style="color:#4453EA">www.avast.com</span></a>
<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>