title: Socket Policy File Server & AIR3.0
body: <p>Edit: So i'm trying to connect to a IRC server using AIR3.0. No matter what, i always get</p>
  
  <pre><code>:server_ip NOTICE AUTH :*** Looking up your hostname...
  :server_ip NOTICE AUTH :*** Found your hostname (cached)
   ERROR :Closing Link: [server_ip] (Ping timeout)
  </code></pre>
  
  <p>Here is just a bunch of code :</p>
  
  <pre><code>    private function handleSocketData(__e:ProgressEvent):void { 
          receiveData();
      }
  
  
      private function receiveData():void{
          var str:String =_socket.readUTFBytes(_socket.bytesAvailable);           
          txt.text += str;                
      }
  
      private function sendData(__str:String):void{
          _socket.writeUTFBytes(__str);
          _socket.flush();            
      }
  </code></pre>
  
  <p>I just do a classic _socket.connect(server_ip, server_port); and i have a bunch of listeners for the socket like ProgressEvent.SOCKET_DATA, Event.CLOSE, Event.CONNECT ...
  Nothing fancy.
  But no matter what, i can connect to the irc server, but it always stops at Found your hostname then nothing happens (no more data is sent my way) and i get a disconnection a few seconds after...</p>