0 Replies Latest reply: May 23, 2014 2:31 AM by 陳龍進 RSS

    An issue about AS3 Socket connecting to C   WinSocket

    陳龍進 Community Member

      Hi, there:

            I wrote an AIR Project which uses class Socket and a C++ Server. In the C++ Server, I use non-blocking socket type with networking APIs ioctlsocket() and recv(). Every time the AS3 AIR client socket connecting to the C++ Server, it shows the connection is success, but I got the return vaulue of recv() which is 0 in the next tick right after the successful connection from AS3 client. According to MSDN, when recv() returns 0, it means the client socket closed gracefully. But when I test the connection with C++ client socket, it won't happen. The Client and Server are all at local, so the client is connecting to "127.0.0.1", and the port is 5001.

          I test the client AIR project via AIR Simulator.

          The C++ Server does not get the message "<policy-file-request/>" from AIR client.

           Do I need a crossdomain.xml file for AIR project?

       

      Best regards.