1 Reply Latest reply on Apr 19, 2010 8:52 PM by sway13

    Not able to write to Socket

    sway13

      Hi,

       

      I have an AIR application which connects to Lotus Notes SMTP server.

       

      The socket is getting connected, no problem.

       

      public

       

       

      var smtpSock:Socket=new Socket();;

      smtpSock.connect("acs.cd.com", 25);

       

      But problem is writing to the Socket, It's not writing to the socket. In debugging I can see that the "bytesAvailable=0" always

       

      i have tried using

       

      smtpSock.writeUTFBytes(

      "HELO localhost\r\n");

      smtpSock.flush();

       

      smtpSock.writeBytes(byteArr );

       

      but nothing is working for me.

       

      Any help on this will be really appreciated.

       

      Thanks,

      Sway