Telnet: Sending an output to the connected host.

Hi all, I have written a GUI to connect to a host using a socket. This is going to be a MUD client (for all who know what a MUD is) and I can't seem to send anything to the host. Any suggestions? Also, the code returned by the host is in some computer language at some areas. Like when there is supposed to be colour it shows a squarebox then [32mL.
This is the complete working code.
Thanks.
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.Socket;
import java.net.UnknownHostException;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.IOException;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JTextArea;
public class UMC extends JFrame implements Runnable {
     boolean connected = false;     
     BufferedReader br;
     BufferedWriter bw;
     Container c;
     Socket socket;
     JScrollPane jsp;
     JTextArea ta;
     JTextField tf;
     Thread thread;
     UMC() {
          super("Uknight Mud Client v0.1 - Unknown Knight 2004");
          c = getContentPane();
          c.setLayout(new BorderLayout());
          ta = new JTextArea();
          tf = new JTextField();
          thread = new Thread(this);
          jsp = new JScrollPane(ta, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
          ta.setEditable(false);
          ta.setBackground(Color.black);
          ta.setForeground(Color.white);
          tf.addActionListener(new TextInputHandler());
          c.add(jsp, BorderLayout.CENTER);
          c.add(tf, BorderLayout.SOUTH);
          setSize(800,600);
          show();
          tf.requestFocus();
          connect("tharsis.dyndns.org", 8765);
     public static void main(String args[]) {
          JFrame.setDefaultLookAndFeelDecorated(true);
          new UMC();
     public void connect(String host, int port) {
          try {
               output("Attempting to connect to " + host + ": " + port);
               socket = new Socket(host, port);
               br = new BufferedReader(new InputStreamReader(socket.getInputStream()));
               bw = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));
               connected = true;
               thread.start();
          } catch (IOException e) {
               JOptionPane.showMessageDialog(null, "Cannot connect to " + host + ": " + port, "Cannot connect", JOptionPane.ERROR_MESSAGE);
     public void run() {
          while(connected) {
               try {
                    if(br.ready())
                    output(br.readLine());
               } catch (IOException e) {}
               try {
                    thread.sleep(5);
               } catch (InterruptedException e) {}
     public void output(String text) {
          ta.append(text + "\n");
          jsp.getVerticalScrollBar().setValue(jsp.getVerticalScrollBar().getMaximum());
     class TextInputHandler implements ActionListener {
          public void actionPerformed(ActionEvent e) {
               if(connected)
               write();
               else
               output("You are not connected yet!");
               tf.setText("");
     public void write() {
          try {
               bw.write(tf.getText(),0,tf.getText().length());
               bw.flush();
          } catch(IOException e) {}          
}

Erm I got it to work using PrintWriter already thanks..... Though I need help about how to import the colours and such, and I do get some weird characters like Ys with some dots above them. Any suggestions?

Similar Messages

  • Sending ALV output to the SAP Inbox.

    Hi
    I'm using  SAP report <b>sendlist_bcs</b> for sending report output to the SAP inbox but attachment is not getting delivered.
    Can anybody help to resolve the issue...
    My report is:
    *& Report  ZTTEST_SAGAR
    REPORT  ZTTEST_SAGAR.
    *& Report  SENDLIST_BCS
    *& Sample report from note 190669 for sending lists via SAPconnect
    *& using the BCS interface
    *&  Note:
    *&  1. Set a commit work statement after the sending
    *&  2. Give binary data of type x not type c to send module, i.e.
    *&     use structure solix instead of soli and give it to tables
    *&     parameter contents_hex instead of contents_bin
    *&     Do this by filling contents_hex directly from the module
    *&     table_compress. In case of reading the data from spool, convert
    *&     to solix using so_solitab_to_solixtab
    *&  3. Don't calculate document size. It is done internally
    *report sendlist_bcs no standard page heading message-id so.
    selection-screen begin of block mode with frame title text-001.
    parameters: submit radiobutton group mode default 'X'.
    parameters: write  radiobutton group mode .
    parameters: spool  radiobutton group mode.
    selection-screen end of block mode.
    global data
    data g_list_content type solix_tab.
    data g_text_content type soli_tab.
    data sysid(10) TYPE C.
    *---- start-of-selection -
    start-of-selection.
      perform create_text_content changing g_text_content.
      perform create_list_content changing g_list_content.
      perform send using g_text_content
                         g_list_content.
    a commit work has to be set somewhere after the sending!
      commit work.
    Form routines                                                        *
    *&      Form  create_list_content
    form create_list_content changing list_content type solix_tab.
    1st possibility - use "submit <report> exporting list to memory"
      if submit = 'X'.
        perform use_submit changing list_content.
      endif.
    2nd possibility - create a new list within this report.
      if write = 'X'.
        perform write_a_list changing list_content.
      endif.
    3rd possibility - get list from spool
      if spool = 'X'.
        perform get_list_from_spool changing list_content.
      endif.
    endform.                                         "create_list_content
    *&      Form  create_text_content
    form create_text_content changing text_content type soli_tab.
      append 'This is the first line'  to text_content.         "#EC NOTEXT
      append 'This is the second line' to text_content.         "#EC NOTEXT
    convert the content from RAW to TXT
      call function 'SO_RAW_TO_RTF'
        tables
          objcont_old = text_content
          objcont_new = text_content
        exceptions
          others      = 0.
    endform.                                         "create_text_content
    *&      Form  SEND
    form send using text_content type soli_tab
                    list_content type solix_tab.
      data  send_request       type ref to cl_bcs.
      data  text               type bcsy_text.
      data  document           type ref to cl_document_bcs.
      data  recipient          type ref to if_recipient_bcs.
      data  bcs_exception      type ref to cx_bcs.
      data  sent_to_all        type os_boolean.
      try.
        create the send request
          send_request = cl_bcs=>create_persistent( ).
        create the document with attachments
        main document
          append 'Hi,' to text.
          append 'attached you will find the list.' to text.
          document = cl_document_bcs=>create_document(
                                    i_type    = 'RAW'
                                    i_text    = text
                                    i_subject = 'ABAPlist' ).
        add text attachment to document
          document->add_attachment( i_attachment_type    = 'TXT'
                                    i_attachment_subject = text-002
                                    i_att_content_text   = text_content ).
        add list attachment to document
          document->add_attachment( i_attachment_type    = 'ALI'
                                    i_attachment_subject = text-003
                                    i_att_content_hex    = list_content ).
        add document to send request
          send_request->set_document( document ).
          sysid = sy-sysid.
          data : uname type ad_uname.
          uname = 'USTZZSKAZI'.
        create recipient and add to send request
          recipient = cl_cam_address_bcs=>CREATE_RML_ADDRESS( i_syst     = sysid
                                                              i_client   = sy-mandt
                                                              i_username = uname ).
          send_request->add_recipient( i_recipient = recipient ).
        send
          sent_to_all = send_request->send( i_with_error_screen = 'X' ).
          if sent_to_all = 'X'.
           message s022.
          endif.
        catch cx_bcs into bcs_exception.
         message e865 with bcs_exception->error_type.
      endtry.
    endform.                    "send
    *&      Form  USE_SUBMIT
    form use_submit changing contents_hex type solix_tab.
      data listobject type table of abaplist.
    get the list object by calling the list in another report
    F1 on submit gives more information
      submit balvsd03 exporting list to memory and return.
    import the list from memory and store it in table listobject
      call function 'LIST_FROM_MEMORY'
        tables
          listobject = listobject
        exceptions
          not_found  = 1
          others     = 2.
      if sy-subrc <> 0.
       message e105 with 'LIST_FROM_MEMORY'.
      endif.
    free memory
      call function 'LIST_FREE_MEMORY'
        tables
          listobject = listobject
        exceptions
          others     = 1.
      if sy-subrc <> 0.
       message e105 with 'LIST_FREE_MEMORY'.
      endif.
    it's always necessary to compress the table.
    SAPconnect will decompress it
      call function 'TABLE_COMPRESS'                            "#EC *
        tables
          in             = listobject
          out            = contents_hex
        exceptions
          compress_error = 1
          others         = 2.
      if sy-subrc <> 0.
       message e105 with 'TABLE_COMPRESS'.
      endif.
    endform.                               " USE_SUBMIT
    *&      Form  WRITE_A_LIST
    form write_a_list changing contents_hex type solix_tab.
      data listobject type table of abaplist.
      perform write_list.
    Save the list and store table listobject
      call function 'SAVE_LIST'
        exporting
          list_index         = sy-lsind
        tables
          listobject         = listobject
        exceptions
          list_index_invalid = 1.
      if sy-subrc = 1.
       message e105 with 'SAVE_LIST'.
      endif.
    It's always necessary to compress the table
    SAPconnect will decompress it
      call function 'TABLE_COMPRESS'                            "#EC *
        tables
          in             = listobject
          out            = contents_hex
        exceptions
          compress_error = 1
          others         = 2.
      if sy-subrc <> 0.
       message e105 with 'TABLE_COMPRESS'.
      endif.
    endform.                               " WRITE_A_LIST
    *&      Form  GET_LIST_FROM_SPOOL
    form get_list_from_spool changing contents_hex type solix_tab.
      data spool_number     type rspoid.
      data contents_bin     type soli_tab.
      data print_parameters type pri_params.
      data valid            type c.
    write a list into spool
      call function 'GET_PRINT_PARAMETERS'
        importing
          out_parameters         = print_parameters
          valid                  = valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
      if sy-subrc <> 0.
       message e105 with 'GET_PRINT_PARAMETERS'.
      elseif valid is initial.
        return.
      endif.
      new-page print on parameters print_parameters no dialog.
      perform write_list.
      new-page print off.
      spool_number = sy-spono.
    you can also send OTF documents from spool with this function
    module. The importing parameter real_type gives you the doc type
    that you have to give to the send interface. The parameter is not
    used here
      call function 'RSPO_RETURN_SPOOLJOB'
        exporting
          rqident              = spool_number
        tables
          buffer               = contents_bin
        exceptions
          no_such_job          = 1
          job_contains_no_data = 2
          selection_empty      = 3
          no_permission        = 4
          can_not_access       = 5
          read_error           = 6
          type_no_match        = 7
          others               = 8.
      if sy-subrc <> 0.
       message e105 with 'RSPO_RETURN_SPOOLJOB'.
      endif.
    convert to hex table
      call function 'SO_SOLITAB_TO_SOLIXTAB'
        exporting
          ip_solitab  = contents_bin
        importing
          ep_solixtab = contents_hex.
    endform.                               " GET_LIST_FROM_SPOOL
    *&      Form  WRITE_LIST
    form write_list.
      data lt_scarr type table of scarr.
      data carr type scarr.
      select * from scarr into table lt_scarr.
      format color = 1.
      uline at /1(46).
      write: / sy-vline,
             'CARRID',   10 sy-vline,
             'CARRNAME', 35 sy-vline,
             'CURRCODE', 46 sy-vline.
      format color = 2.
      uline at /1(46).
      loop at lt_scarr into carr.
        write: / sy-vline,
               carr-carrid,   10 sy-vline,
               carr-carrname, 35 sy-vline,
               carr-currcode, 46 sy-vline.
      endloop.
      uline at /1(46).
      new-line.
    endform.                               " WRITE_LIST
    Thanks,
    sagar

    hi Sagar
    'SO_NEW_DOCUMENT_ATT_SEND_API1' function module for that.
    Example::::
    Data Declaration
    data pdf like tline occurs 0.
    data : objbin  like solisti1   occurs 0 with header line.
    Data: docdata    like sodocchgi1,
          objpack    like sopcklsti1 occurs  1 with header line,
          objhead    like solisti1   occurs  1 with header line,
          objtxt     like solisti1   occurs 10 with header line,
           objbin     like solisti1   occurs 10 with header line,
          objhex     like solix      occurs 10 with header line,
          reclist    type table of SOMLRECI1   with header line.
    Data: listobject like abaplist   occurs  1 with header line.
    data : objhex2 like objhex occurs 0 with header line.
    Data: tab_lines  type i,
          doc_size   type i,
          att_type   like SOODK-OBJTP.
    data: ls_drao like drao occurs 0,
         i_data like drao-orblk occurs 0,
          ls_doc_file like dms_doc_file,
          ls_draw like draw.
    data: begin of i_data occurs 0,
          orbkl like drao-orbkl,
           orblk like drao-orblk,
          end of i_data.
    data: w_data like i_data,
         w_data2 type drao-orbkl,
          wa_drao type drao.
    DATA: t_error(1) type c.
    DATA: t_return like BAPIRET2.
    *ls_draw-mandt = '200'.
    ls_draw-dokar = 'GPO'.
    ls_draw-doknr = 'Z10'.
    ls_draw-dokvr = '00'.
    ls_draw-doktl = '000'.
    ls_draw-dttrg = 'SAP-SYSTEM'.
    ls_draw-dAPPL = 'DOC'.
    ls_doc_file-fileno = '1'.
    ls_doc_file-dttrg = 'SAP-SYSTEM'.
    *Debug the cv03n transaction to see how the FMs are used
    CALL FUNCTION 'CV120_DOC_CHECKOUT_TO_TABLE'
      EXPORTING
      PS_COUT_DEF       =
        ps_doc_file       =   ls_doc_file
        ps_draw           =   LS_DRAW
      tables
      PT_DRAZ           =
        ptx_content       =    ls_drao
      PTX_DRAOZ         =
    EXCEPTIONS
       ERROR             = 1
       OTHERS            = 2
    IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at ls_drao into wa_drao.
      move:  wa_drao-orblk to w_data-orblk.
      append w_data to i_data.
    endloop.
    OBJPACK-HEAD_START = 1.
    DESCRIBE TABLE i_data LINES TAB_LINES.
    CALL FUNCTION 'ZOUTPUT_X_TABLESIZE_CHG'
    EXPORTING
      IV_APPEND          = ' '
       IV_BYTE_MODE       = 'X'
      IV_STRING          =
      IV_XSTRING         =
    IMPORTING
      EV_SIZE            =
      EV_LINES           =
      EV_STRING          =
      EV_XSTRING         =
    TABLES
       IT_DATA            = i_data
       ET_DATA            = objhex
    EXCEPTIONS
       NOENTRIES          = 1
       OTHERS             = 2
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at objhex.
      move-corresponding objhex to objhex2.
      append objhex2.
    endloop.
    docdata-obj_name  = 'TEST_ALI'.
    docdata-obj_descr = 'Test including ALI/HTML Attachment'.
      Main Text
    objtxt = 'Test Document.'.
    append objtxt.
    objtxt = 'You will find an ALI/HTML attachment '.
    append objtxt.
    objtxt = 'Have a nice day.'.
    append objtxt.
      Write Packing List (Main)
    describe table objtxt lines tab_lines.
    read     table objtxt index tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).
    clear objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num   = 0.
    objpack-body_start = 1.
    objpack-body_num   = tab_lines.
    objpack-doc_type   = 'TXT'.
    append objpack.
    Create Message Attachment
      Write Packing List (Attachment)
    att_type = 'PDF'.
    describe table objhex lines tab_lines.
    read     table objhex index tab_lines.
    objpack-doc_size = ( tab_lines ) * 255 ."+ strlen( i_data ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num   = 0.
    objpack-body_start = 1.
    objpack-body_num   = tab_lines.
    objpack-doc_type   = att_type.
    objpack-obj_name   = 'ATTACHMENT1'.
    objpack-obj_descr  = 'Attached Document1'.
    append objpack.
    Second attachment
    loop at objhex.
      move-corresponding objhex to objhex2.
      append objhex2.
    endloop.
    *att_type = 'DOC'.
    *describe table objhex lines tab_lines.
    *read     table objhex index tab_lines.
    *objpack-doc_size = ( tab_lines ) * 255 ."+ strlen( i_data ).
    *objpack-transf_bin = 'X'.
    *objpack-head_start = 1.
    *objpack-head_num   = 0.
    *objpack-body_start = 1.
    *objpack-body_num   = tab_lines.
    *objpack-doc_type   = att_type.
    *objpack-obj_name   = 'ATTACHMENT2'.
    *objpack-obj_descr  = 'Attached Document2'.
    *append objpack.
    Third attachment
    *loop at objhex.
    move-corresponding objhex to objhex2.
    append objhex2.
    *endloop.
    *att_type = 'PDF'.
    *describe table objhex lines tab_lines.
    *read     table objhex index tab_lines.
    *objpack-doc_size = ( tab_lines ) * 255 ."+ strlen( i_data ).
    *objpack-transf_bin = 'X'.
    *objpack-head_start = 1.
    *objpack-head_num   = 0.
    *objpack-body_start = 1.
    *objpack-body_num   = tab_lines.
    *objpack-doc_type   = att_type.
    *objpack-obj_name   = 'ATTACHMENT3'.
    *objpack-obj_descr  = 'Attached Document3'.
    *append objpack.
    Create receiver list
    data: reclist1 type sadrfd .
    reclist1-rec_fax = '650-467-2890'.
    reclist1-REC_STATE = 'US'.
    append reclist1.
    *read table reclist1 index 1.
    move reclist1(30) to reclist-receiver(30).
    move reclist1346(3) to reclist-receiver346(3).
    *reclist-receiver = reclist1."'US16503457900'.
    *move reclist1-rec_fax to reclist-receiver.
    *reclist-receiver = 'US16502796630'.  "'+1 (16502796999)'.
    reclist-REC_type = 'F'.
    *reclist-country = 'US'.
    *reclist-COM_TYPE = 'TELFAX'.
    *reclist-fax = 'US1650-279-6630'.
    append reclist.
    *reclist-receiver = sy-uname.                "<-- change internal user
    *reclist-rec_type = 'B'.
    *append reclist.
    Send Message
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data                     = docdata
         PUT_IN_OUTBOX                     = 'X'
         COMMIT_WORK                       = 'X'     "used from rel.6.10
      IMPORTING
        SENT_TO_ALL                        =
        NEW_OBJECT_ID                     =
      tables
        packing_list                      = objpack
        OBJECT_HEADER                     = objhead
        CONTENTS_BIN                      = objbin
        CONTENTS_TXT                      = objtxt
         CONTENTS_HEX                      = objhex
        OBJECT_PARA                        =
        OBJECT_PARB                        =
        receivers                         = reclist
       EXCEPTIONS
         TOO_MANY_RECEIVERS               = 1
         DOCUMENT_NOT_SENT                = 2
         DOCUMENT_TYPE_NOT_EXIST          = 3
         OPERATION_NO_AUTHORIZATION       = 4
         PARAMETER_ERROR                  = 5
         X_ERROR                           = 6
         ENQUEUE_ERROR                     = 7
         OTHERS                            = 8
    IF sy-subrc <> 0.
      message ID 'SO' TYPE 'S' NUMBER '023'
              with docdata-obj_name.
    ENDIF.
    **Please reward suitable points***
    With Regards
    Navin Khedikar

  • Just set up new Ipad, can't received email, can send. Messege of The connection to the server failed

    Can't recieve email,message of the connection to server failed.  Can send emails

    Can't recieve email,message of the connection to server failed.  Can send emails

  • Re: Sending report output in the body of Email (Not as an attachment)

    Hi,
    My requirement is to send the report output in body part of the mail itself.  I am able to send the mail with the output as an attachment but requirement is it shoud be in the body part not as an attachment..
    Thanks,
    Anshuman.

    Hi Anshu,
        Can you please let me know is the ERMS configured in your system or you are sending
        the mail to the customer using Action Profiles. If you are sending the mail using a smartform
        assigned to an Action profile  then you can display that report internal table data or etc.. in
         the smartform itself so that the output data will be available in the e-mail body itself.
        Please let me know the way you are sending the e-mail if the above ones are incorrect.
    Thanks
    Arun

  • Setting Sql Prompt to that of the connected Host

    Hi all,
    I work in a multiple Database environment. At times I've various
    sessions open in SqlPlus. My problem is its really tedious to
    keep track of which host my active window is connected to.
    All I want to do is set my sql prompt to that of the Database
    alias or my remote host ... (Automatically on Login)
    Any suggestions ????

    Here's a suggestion from another forum that should help you.
    FYI, the next version of iSQL*Plus will have this feature by
    default, so you'll always know the user and database to which
    you're connected.
    Here is how Tom Kyte does it. The following is an excerpt from
    a response he gave to a similar question:
    I use a login.sql with SQLPlus. I also make sure each and every
    database has a unique global name (alter database rename
    global_name to <some name>) or unique SID (i like the global
    name myself).
    In my login.sql i have:
    column global_name new_value gname
    set termout off
    select lower(user) || '@' ||
    decode(global_name, 'ORACLE8.WORLD', '8.0', 'ORA8I.WORLD',
    '8i', 'ORA8IDEV.WORLD', 'dev8i', global_name ) global_name from
    global_name;
    set termout on
    set sqlprompt '&gname> '
    That makes my sqlprompt look like:
    ops$[email protected]>
    So, now I have my username and database in the prompt. I just
    have to remember to use an @connect -- NOT connect when
    connecting since the login.sql is run ONCE, not after every
    connect. My @connect is simply:
    connect &1
    @login
    If you want to use the ORACLE_SID instead of the global database
    name, just "select instance global_name from v$thread" in the
    above.

  • Sending digital output to the right pins

    [deleted content due to posting on wrong forum]
    Message Edited by Stim0r on 10-25-2006 01:40 PM
    Attachments:
    Trig8_100kHz.vi ‏57 KB

    Oops....wrong message board...i'll throw this post over to the Digital IO forum as soon as I figure out how...

  • Can I close the connection after sending immediately on the server?

    I have a C/S program. On the server side, the process as following:
    1. accept (blocking)
    2. //a connection is established
    using a new socket to receive request data from client
    3. business processing ... (maybe several seconds)
    4. send response data to client
    5. close socket immediately
    6. listening continuely again
    The server side is running on linux and writed by Java, and client is running on windows and writed by C++ Builder.
    My problem is:
    1. if the server is running on windows, everything is OK.
    2. if the server is running on linux (that is exprcted), the client can not receive the response data from server, the client program said the connection is unavailable when he read from socket blockingly.
    3. if I add some delay, e.g. 500ms, between sending response and close the connection, the client can receive response normally.
    why above?
    thanks for help.
    Jack

    Sorry, long time to go away.
    package test.server;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.net.ServerSocket;
    import java.net.Socket;
    public class EchoServer {
         private int port; // listened port
         private ServerSocket ssock; // the server's ip
         public EchoServer(String host, int port) {
              this.port = port;
              // Create a ServerSocket
              try {
                   ssock = new ServerSocket(port);
                   SocketAddress addr = new InetSocketAddress(host, port);
                   ssock.bind(addr);
              } catch (Exception ex) {
                   ex.printStackTrace();
              new HandleThread().start();
         public class HandleThread extends Thread {
              public int ntohl(byte[] bytes, int offset) {
                   int length1 = ((((int) bytes[offset + 0]) << 24) & 0xff000000);
                   int length2 = ((((int) bytes[offset + 1]) << 16) & 0x00ff0000);
                   int length3 = ((((int) bytes[offset + 2]) << 8) & 0x0000ff00);
                   int length4 = ((((int) bytes[offset + 3]) << 0) & 0x000000ff);
                   return length1 + length2 + length3 + length4;
              public void run() {
                   InputStream in = null;
                   OutputStream out = null;
                   try {
                        while (true) {
                             System.out.println("Start Listening...  [" + port + "]");
                             Socket clisock = ssock.accept();
                             //clisock.setSoLinger(true, 1);
                             System.out.println( "SOLinger:" + clisock.getSoLinger());
                             try {
                                  System.out.println("Accepted Client Socket...  [" + clisock + "]");
                                  in = clisock.getInputStream();
                                  out = clisock.getOutputStream();
                                  // receive four bytes length
                                  byte[] lenbuff = new byte[4];
                                  in.read(lenbuff, 0, 4);
                                  int len = ntohl(lenbuff, 0);
                                  byte[] buff = new byte[len];
                                  in.read(buff, 0, len);
                                  System.out.println("Received length&#65306;" + len + "  " + new String(buff));
                                  Thread.sleep(1000);
                                  out.write(lenbuff);
                                  out.write(buff);
                                  out.flush();
                                  //Thread.sleep(500);
                                  System.out.println("Send finished&#12290;");
                             } catch (Exception ex) {
                                  ex.printStackTrace();
                             } finally {
                                  if (in != null) {
                                       try {
                                            in.close();
                                       } catch (Exception ex) {
                                  if (out != null) {
                                       try {
                                            out.close();
                                       } catch (Exception ex) {
                                  if (clisock != null) {
                                       try {
                                            long time00 = System.currentTimeMillis();
                                            clisock.close();
                                            System.out.println( "close socket&#65306;[" + (System.currentTimeMillis() - time00) + "]");
                                       } catch (Exception ex) {
                   } catch (Exception ex) {
                        ex.printStackTrace();
         public static void main(String[] args) throws Exception {
              if( args.length == 2 ) {
                   new EchoServer(args[0], Integer.parseInt(args[1]));
              } else if( args.length == 2 ) {
                   new EchoServer("127.0.0.1", Integer.parseInt(args[0]));
              } else {
                   new EchoServer("127.0.0.1", 16000);
    }In my application, the package is following:
    length(4bytes) + data
    I have a simple WinSocket Client, send data to this server and receive the response,the sending is OK, Server can receive all messages.But when client is ready to receive data, the winsock call return WSAECONNRESET(10054).
    If I uncomment "Thread.sleep(500);", it means wait some time before close socket, the client can receive all response data.
    why?

  • HTTP PL/SQL Gtwy H2 send intermediate outputs ?

    Hi,
    I'm trying to use the HTTP PL/SQL gateway to serve up simple pages generated usin PL/SQL.
    (Stuff like OWA_UTIL & HTP packages).
    I have one page/PL/SQL function which is extremely long running, so I want to send intermediate outputs to the users browser, to keep the socket alive.
    Anyone know how to do this ?
    My basic problem is that nothing seems to be returned to the user until the PL/SQL function exits, so sending intermediate outputs in a loop in the PL/SQL function does not seem to work.
    TIA
    Satya

    Hi,
    I'm trying to use the HTTP PL/SQL gateway to serve up simple pages generated usin PL/SQL.
    (Stuff like OWA_UTIL & HTP packages).
    I have one page/PL/SQL function which is extremely long running, so I want to send intermediate outputs to the users browser, to keep the socket alive.
    Anyone know how to do this ?
    My basic problem is that nothing seems to be returned to the user until the PL/SQL function exits, so sending intermediate outputs in a loop in the PL/SQL function does not seem to work.
    TIA
    Satya

  • TcpListener not working on Azure: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host

    Hi Everybody,
    i'm playing a little bit with Windows Azure and I'm blocked with a really simple issue (or maybe not).
    I've created a Cloud Service containing one simple Worker Role. I've configured an EndPoint in the WorkerRole configuration, which allows Input connections via tcp on port 10100.
    Here the ServiceDefinition.csdef file content:
    <?xml version="1.0" encoding="utf-8"?>
    <ServiceDefinition name="EmacCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2014-01.2.3">
    <WorkerRole name="TcpListenerWorkerRole" vmsize="Small">
    <Imports>
    <Import moduleName="Diagnostics" />
    <Import moduleName="RemoteAccess" />
    <Import moduleName="RemoteForwarder" />
    </Imports>
    <Endpoints>
    <InputEndpoint name="Endpoint1" protocol="tcp" port="10100" />
    </Endpoints>
    </WorkerRole>
    </ServiceDefinition>
    This WorkerRole is just creating a TcpListener object listening to the configured port (using the RoleEnvironment instance) and waits for an incoming connection. It receives a message and returns a hardcoded message (see code snippet below).
    namespace TcpListenerWorkerRole
    using System;
    using System.Net;
    using Microsoft.WindowsAzure.ServiceRuntime;
    using System.Net.Sockets;
    using System.Text;
    using Roche.Emac.Infrastructure;
    using System.IO;
    using System.Threading.Tasks;
    using Microsoft.WindowsAzure.Diagnostics;
    using System.Linq;
    public class WorkerRole : RoleEntryPoint
    public override void Run()
    // This is a sample worker implementation. Replace with your logic.
    LoggingProvider.Logger.Info("TcpListenerWorkerRole entry point called");
    TcpListener listener = null;
    try
    listener = new TcpListener(RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    LoggingProvider.Logger.Info(string.Format("TcpListener started at '{0}:{1}'", RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Address, RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Port));
    catch (SocketException ex)
    LoggingProvider.Logger.Exception("Unexpected exception while creating the TcpListener", ex);
    return;
    while (true)
    Task.Run(async () =>
    TcpClient client = await listener.AcceptTcpClientAsync();
    LoggingProvider.Logger.Info(string.Format("Client connected. Address='{0}'", client.Client.RemoteEndPoint.ToString()));
    NetworkStream networkStream = client.GetStream();
    StreamReader reader = new StreamReader(networkStream);
    StreamWriter writer = new StreamWriter(networkStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    while (true)
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    LoggingProvider.Logger.Info("This is what the host sent to you: " + input+". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    break;
    catch (Exception ex)
    LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    break;
    }).Wait();
    public override bool OnStart()
    // Set the maximum number of concurrent connections
    ServicePointManager.DefaultConnectionLimit = 12;
    DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
    RoleEnvironment.Changing += RoleEnvironment_Changing;
    return base.OnStart();
    private void RoleEnvironment_Changing(object sender, RoleEnvironmentChangingEventArgs e)
    // If a configuration setting is changing
    LoggingProvider.Logger.Info("RoleEnvironment is changing....");
    if (e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange))
    // Set e.Cancel to true to restart this role instance
    e.Cancel = true;
    As you can see, nothing special is being done. I've used the RoleEnvironment.CurrentRoleInstance.InstanceEndpoints to retrieve the current IPEndpoint.
    Running the Cloud Service in the Windows Azure Compute Emulator everything works fine, but when I deploy it in Azure, then I receive the following Exception:
    2014-08-06 14:55:23,816 [Role Start Thread] INFO EMAC Log - TcpListenerWorkerRole entry point called
    2014-08-06 14:55:24,145 [Role Start Thread] INFO EMAC Log - TcpListener started at '100.74.10.55:10100'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Client connected. Address='196.3.50.254:51934'
    2014-08-06 15:06:19,375 [9] INFO EMAC Log - Buffer size: 65536
    2014-08-06 15:06:45,491 [9] FATAL EMAC Log - Unexpected exception while Reading the request
    System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    --- End of inner exception stack trace ---
    at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
    at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
    at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
    at TcpListenerWorkerRole.WorkerRole.<>c__DisplayClass0.<<Run>b__2>d__0.MoveNext() in C:\Work\Own projects\EMAC\AzureCloudEmac\TcpListenerWorkerRole\WorkerRole.cs:line 60
    I've already tried to configure an internal port in the ServiceDefinition.csdef file, but I get the same exception there.
    As you can see, the client can connect to the service (the log shows the message: Client connected with the address) but when it tries to read the bytes from the stream, it throws the exception.
    For me it seems like Azure is preventing the retrieval of the message. I've tried to disable the Firewall in the VM in Azure and the same continues happening.
    I'm using Windows Azure SDK 2.3
    Any help will be very very welcome!
    Thanks in advance!
    Javier
    En caso de que la respuesta te sirva, porfavor, márcala como válida
    Muchas gracias y suerte!
    Javier Jiménez Roda
    Blog: http://jimenezroda.wordpress.com

    hi Javier,
    I changed your code like this:
    private AutoResetEvent connectionWaitHandle = new AutoResetEvent(false);
    public override void Run()
    TcpListener listener = null;
    try
    listener = new TcpListener(
    RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint"].IPEndpoint);
    listener.ExclusiveAddressUse = false;
    listener.Start();
    catch (SocketException se)
    return;
    while (true)
    IAsyncResult result = listener.BeginAcceptTcpClient(HandleAsyncConnection, listener);
    connectionWaitHandle.WaitOne();
    The HandleAsync method is your "While (true)" code:
    private void HandleAsyncConnection(IAsyncResult result)
    TcpListener listener = (TcpListener)result.AsyncState;
    TcpClient client = listener.EndAcceptTcpClient(result);
    connectionWaitHandle.Set();
    NetworkStream netStream = client.GetStream();
    StreamReader reader = new StreamReader(netStream);
    StreamWriter writer = new StreamWriter(netStream);
    writer.AutoFlush = true;
    string input = string.Empty;
    try
    char[] receivedChars = new char[client.ReceiveBufferSize];
    // LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
    int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
    char[] validChars = new char[readedChars];
    Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
    input = new string(validChars);
    // LoggingProvider.Logger.Info("This is what the host sent to you: " + input + ". Readed chars=" + readedChars);
    try
    string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
    writer.Write(orderResultFormat);
    catch (Exception e)
    // LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
    client.Close();
    catch (Exception ex)
    //LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
    client.Close();
    Please try it. For this error message, I suggest you could refer to this thread (http://stackoverflow.com/questions/6173763/using-windows-azure-to-use-as-a-tcp-server
    ) and this post (http://stackoverflow.com/a/5420788).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Connection closed by the remote host

    Hello everyone.
    I'm getting this problem in XI:
    When a NON-SAP system is sending messages to XI via HTTP protocol (SOAP adapter), we are getting this error:
    "An existing connection was forcibly closed by the remote host"
    The guy from the non-sap system (Real Estate) got this error when he is sending a big amount of data.
    When the amount data is reduced, this problem is not happening, so all messages passed ok.
    In the other case, he needs to send them in batches.
    We are trying to find out where the problem is.
    Has anybody any idea of this?

    Hi
    Check this out, a similar issue due to data size
    400 Bad HTTP request : when calling proxy from SAP
    Regards
    Vishnu

  • Connection Closed forcibly by the remote host

    Hi,
    I am trying to print a file on the Client machine by getting the file object from the Server. For this, I used an Applet to call the Servlet and in return the Servlet will send the file object as response. It worked well for me, but I got the following error at one time.
    [5/2/08 8:55:00:087 CDT] 0000001d SRTServletReq E SRVE0133E: An error occurred while parsing parameters. java.io.IOException: Async IO operation failed, reason:
    RC: 10054 An existing connection was forcibly closed by the remote host.
         at com.ibm.io.async.AbstractAsyncChannel.multiIO(AbstractAsyncChannel.java:474)
         at com.ibm.io.async.AsyncSocketChannelHelper.read(AsyncSocketChannelHelper.java:217)
         at com.ibm.ws.tcp.channel.impl.AioSocketIOChannel.readAIOSync(AioSocketIOChannel.java:205)
         at com.ibm.ws.tcp.channel.impl.AioTCPReadRequestContextImpl.processSyncReadRequest(AioTCPReadRequestContextImpl.java:150)
         at com.ibm.ws.tcp.channel.impl.TCPReadRequestContextImpl.read(TCPReadRequestContextImpl.java:109)
         at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.fillABuffer(HttpServiceContextImpl.java:4124)
         at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readSingleBlock(HttpServiceContextImpl.java:3368)
         at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readBodyBuffer(HttpServiceContextImpl.java:3473)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundServiceContextImpl.getRequestBodyBuffer(HttpInboundServiceContextImpl.java:1606)
         at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.bufferIsGood(WCCByteBufferInputStream.java:109)
         at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.read(WCCByteBufferInputStream.java:79)
         at com.ibm.ws.webcontainer.srt.http.HttpInputStream.read(HttpInputStream.java:294)
         at com.ibm.ws.webcontainer.servlet.RequestUtils.parsePostData(RequestUtils.java:297)
         at com.ibm.ws.webcontainer.srt.SRTServletRequest.parseParameters(SRTServletRequest.java:1476)
         at com.ibm.ws.webcontainer.srt.SRTServletRequest.getParameterMap(SRTServletRequest.java:2006)
         at com.ibm.faces.context.MultipartExternalContextImpl$MultiPartServletRequestWrapper.<init>(MultipartExternalContextImpl.java:454)
         at com.ibm.faces.context.MultipartExternalContextImpl.<init>(MultipartExternalContextImpl.java:98)
         at com.ibm.faces.context.MultipartFacesContextFactoryImpl.getFacesContext(MultipartFacesContextFactoryImpl.java:77)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:192)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65)
         at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:226)
         at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
         at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:766)
         at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:674)
         at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
         at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
         at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
         at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
         at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
         at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
         at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
         at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
         at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
         at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
         at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
         at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
         at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
         at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
         at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
    I am not able find the exact reason for this exception, because I couldn't reproduce the same scenario. Can any one tell the exact reason for this exception and how to solve this problem.
    Thank You.
    Edited by: Ramesh_Pappala on May 5, 2008 11:54 AM

    Doing binding configuration on a WCF service to override the default settings is not done the sameway it would be done on the client-side config file.
    A custom bindng must be used on the WCF service-side config to override the defualt binding settings on the WCF service-side.
    http://robbincremers.me/2012/01/01/wcf-custom-binding-by-configuration-and-by-binding-standardbindingelement-and-standardbindingcollectionelement/
    Thee readerQuotas and everything else must be given in the Custom Bindings to override any default setttings on the WCF service side.
    Also, you are posting to the wrong forum.
    http://social.msdn.microsoft.com/Forums/vstudio/en-us/home?forum=wcf

  • IPhone message. "Cannot Send Mail"  "The connection to the outgoing server.

    It states:
    "Cannot Send Mail" "The connection to the outgoing server "(null)" failed."
    This is the error I get attempting to send Yahoo mail using EDGE network on at&t.
    I would guess that only 2-3 emails out of every 10 go through. The rest get the above error message.
    Please help if you can.
    Thanks

    Well, if your on ATT Yahoo. The settings are as follows, and I've had luck both sending and recieving with these settings.
    Incoming Mail Server
    Host Name: pop.att.yahoo.com
    User Name: *****@sbcglobal.net (or whatever your ATT domain might be)
    Password: Required
    Outgoing Mail Server
    Host Name: smtp.att.yahoo.com
    User Name: ****@sbcglobal.net (or whatever your domain happens to be)
    Password: Optional (I left mine blank)
    Under Advanced
    Deleted Messages: Remove After ? (Your Choice)
    Incoming Settings
    Use SSL : On
    Authentication: Password
    Delete from Server: Your choice
    Server Port: 995
    Outgoing Settings
    Use SSL: On
    Authentication: Password
    Server Port: 465
    I've taken these setting from my phone. I can't remember all the domain names for the ATT Yahoo, but I know sbcglobal is one, and I believe attglobal is another. Also to change the ports under advanced, though you shouldn't have to, simply click the port area and a keypad will come up below. You can type the port number there.

  • The connection to the host was unexpectedly lost. AIM

    I am trying to connect to AIM via iChat in Mac OS X Tiger. Everytime I try to connect it shows my buddy list for about 1-2 seconds and then says, "The connection to the host was unexpectedly lost." I don't have aim connected on this computer or any other computer on the network when I try. Any help or recommendations are appreciated.
    Thanks

    124333.047765 Loading hardware rules from hardwarerulesH264-G4.plist
    124333.047851 Checking H264 hardware rules
    124333.047889 Satisfied rule #1 (20:640x480)
    124333.048134 setLocalUserName: myname@myip
    124333.174734 Default video size is (640x480)
    124333.318247 ### NEW STATE: to: VC_INIT, from: VC_INVALID
    124333.319157 ### NEW STATE: to: VC_IDLE, from: VC_INIT
    124333.319198 ++++++++ confStatusMapRemoveAll
    124333.319238 ( ) -- mapUserIDToSecurityInfo cleared --
    124333.319423 UPnP init passed
    124333.319569 NATTraversal created
    124333.319697 QT automatic setting = 16777216
    124333.319708 Bandwidth based on QT prefs = 0
    124333.382414 UPnP Router Info:
    - manufacturer [NETGEAR, Inc.]
    - friendly name [Residential Gateway]
    - model name [RangeMax(TM) Wireless Router]
    - model desc [RangeMax(TM) Wireless Router]
    124333.382654 UPnP: Begin TCPProc
    124335.591339 BWD: cache: '[myip:255.255.255.0]' != '[myip:255.255.255.0]'
    124335.591361 BWD: Launching thread to determine focus capability based on bandwidth.
    124335.591509 QT automatic setting = 16777216
    124335.591541 BWD: Using QuickTime value: 0
    124335.591569 BWD bandwidth: 0 kbits up, 0 kbits down.
    124335.591595 videoNetworkCapable: 0 -- 0 max participants.
    124335.591628 audioNetworkCapable: 0 -- 0 max participants.
    124335.591710 vcCapabilities returns: 0x00000007
    124335.591738 VCCapAudio
    124335.591838 VCCapVideo
    124335.591912 VCCapMultiAudio
    124335.830696 BWD Configuration Data: bwdstart://snatmap.mac.com:16384
    bwdcount:1
    (16384/1)
    124335.830753 Connect to bwd server:16384/1 from configuration file.
    124335.840447 Found 1 cameras:
    124335.840516 Built-in iSight - -46137344
    124335.842033 selectCameraByGUID: -46137344 returned 1
    124335.847738 BWD_GetBandwidth: SendRequest (from :16392)
    124335.882925 BWD_GetBandwidth: GotResponse
    124335.898912 Microphone devices:
    124335.899039 Internal microphone
    124335.899114 Line In
    124335.899175 selectedCamera GUID returned Built-in iSight
    124335.913958 selectedCamera GUID returned Built-in iSight
    124335.914034 Selected mic: Built-in Mic / imic
    124335.914177 Found 1 cameras:
    124335.914210 Built-in iSight - -46137344
    124335.914256 selectedCamera GUID returned Built-in iSight
    124335.916223 Microphone devices:
    124335.916299 Internal microphone
    124335.916369 Line In
    124335.916407 selectedCamera GUID returned Built-in iSight
    124335.916457 selectedCamera GUID returned Built-in iSight
    124335.916503 Selected mic: Built-in Mic / imic
    124335.916584 Found 1 cameras:
    124335.916601 Built-in iSight - -46137344
    124335.916639 selectedCamera GUID returned Built-in iSight
    124335.918550 Microphone devices:
    124335.918625 Internal microphone
    124335.918712 Line In
    124335.918746 selectedCamera GUID returned Built-in iSight
    124335.918795 selectedCamera GUID returned Built-in iSight
    124335.918856 Selected mic: Built-in Mic / imic
    124336.650053 BWD cache: saving [myip:255.255.255.0]:433131/[email protected]
    124336.651405 GotBandwidth: 433131/2532198 (up/down) @[myip:255.255.255.0]
    124336.652837 BWD bandwidth: 433 kbits up, 2532 kbits down.
    124336.652849 videoNetworkCapable: 1 -- 3 max participants.
    124336.652859 audioNetworkCapable: 1 -- 9 max participants.
    124336.652889 Focus Capability (after BWD):
    124336.652921 audioHardwareCapable = 1
    124336.652943 maxAudioParticipantsBasedOnHardware = 9
    124336.652967 audioNetworkCapable = 1
    124336.653029 maxAudioParticipants = 9
    124336.653060 canBeAudioMultipointParticipant = 1
    124336.653088 videoHardwareCapable = 1
    124336.653119 maxVideoParticipantsBasedOnHardware = 3
    124336.653147 videoNetworkCapable = 1
    124336.653177 maxVideoParticipants = 3
    124336.653205 canBeVideoMultipointParticipant = 1
    124336.653236 detectedUpstreamKbits = 433
    124336.653264 detectedDownstreamKbits = 2532
    124336.653294 Sending VCCapabilitiesDidChangeNotification
    124336.653520 BWD: GotBandwidth: 433131/2532198 (up/down) @[myip:255.255.255.0]
    124336.653535 BWD bandwidth: 433 kbits up, 2532 kbits down.
    124336.653543 videoNetworkCapable: 1 -- 3 max participants.
    124336.653564 audioNetworkCapable: 1 -- 9 max participants.
    124336.653628 vcCapabilities returns: 0x0000003f
    124336.653651 VCCapAudio
    124336.653698 VCCapVideo
    124336.653720 VCCapMultiAudio
    124336.653765 VCCapMultiVideo
    124336.653795 VCCapMultiAudioHost
    124336.653823 VCCapMultiVideoHost
    124336.654917 BWD: Launched thread done.
    124336.655078 Found 1 cameras:
    124336.655123 Built-in iSight - -46137344
    124336.655171 selectedCamera GUID returned Built-in iSight
    124336.657146 Microphone devices:
    124336.657220 Internal microphone
    124336.657309 Line In
    124336.657346 selectedCamera GUID returned Built-in iSight
    124336.657396 selectedCamera GUID returned Built-in iSight
    124336.657452 Selected mic: Built-in Mic / imic
    124336.672544 Found 1 cameras:
    124336.672585 Built-in iSight - -46137344
    124336.672634 selectedCamera GUID returned Built-in iSight
    124336.674617 Microphone devices:
    124336.674691 Internal microphone
    124336.674783 Line In
    124336.674822 selectedCamera GUID returned Built-in iSight
    124336.674871 selectedCamera GUID returned Built-in iSight
    124336.674930 Selected mic: Built-in Mic / imic
    124336.675028 Found 1 cameras:
    124336.675045 Built-in iSight - -46137344
    124336.675095 selectedCamera GUID returned Built-in iSight
    124336.677030 Microphone devices:
    124336.677205 Internal microphone
    124336.677354 Line In
    124336.677459 selectedCamera GUID returned Built-in iSight
    124336.677563 selectedCamera GUID returned Built-in iSight
    124336.677665 Selected mic: Built-in Mic / imic

  • IChat: "The connection to the host was unexpectedly lost"

    I have I will be talking to people on iChat and will not recieve responses from anyone for a while then suddenly i am kicked off and the error message "The connection to the host was unexpectedly lost" appears. I will log back on and the people whom I was talking to say they were sending me messages and they didnt get any of the messages i had sent.
    Thank YoU!!!

    Hi Samantha,
    Have answered here.
    3:50 PM Wednesday; March 1, 2006

  • How can i use an existing vpn connection without using the option "Send all traffic over vpn connection"?

    I have been trying to get my computer (os x.7) to astablish a remote desktop connection to my work computer via a vpn tunnel. In fact I have just discovered that it works fine if i select to "send all traffic over vpn connection" from the options in the advanced setup of the vpn.
    If the option is selected microsofts "Remote desktop connection for mac" works just fine. However without selecting the option it is not taking advantage of the tunnel but tries to connect as if the tunnel would not exist.
    Now the question is how do I get program to use the vpn tunnel without checking the above option?
    Thanks for any hints and pointers.

    Then can her computer be authorized to both accounts?
    Absolutely. You can authorize any given computer to up to five iTunes Store accounts.
    If purchases are made on her account, to a computer authorized to my account, can I put those songs on my iPod?
    If you connect your iPod to her computer, yes. Tracks download only to the computer from which they're purchased, regardless of which iTunes Store account is used for the purchase. Or you could copy the tracks from her computer to yours and then authorize your computer to her iTunes Store account. But that's sort of defeating the original purpose, it would seem to me.
    is it better to buy music through Amazon downloads and/or actually purchasing CDs to avoid the security features iTunes puts on its music?
    That's certainly an option. If it's an entire album I want, I buy CDs. That way I can import them at the quality I want and to whichever of my systems I want. Amazon or one of the other download stores that offer tracks as MP3 are also an option, though for me download stores are best when you just want a couple of tracks off a given CD.

Maybe you are looking for

  • How to Print a File in JSFF

    Hi All, Anyone tried printing file through printer in JSC2.???????? Expecting some Suggestions!!!!!!!!!!!!!!!!!!!!!!!!!! regards, Josh Machine

  • Problem with background

    I recently had a shaded border appear on my screen. It sits on the edge of the screen and if anything is inside of it, I can't move anything or close, expand it. I cant seem to get rid of it. Any suggestions?

  • Itunes freezes when synching genius

    Help!  iTunes freezes my PC when I launch it.  I've repaired it, uninstalled and reinstalled. I think there may be a registry key I need to remove in order to truly wipe if off my PC. I am unable to access my iTunes Library.  It launches but when the

  • RMAN-08120: WARNING: archived log not deleted, not yet applied by standby

    i get RMAN-08120: WARNING: archived log not deleted, not yet applied by standby on primary but when i run below query i get the same result from primary and standby SQL> select max(sequence#) from v$archived_log; MAX(SEQUENCE#) 44051 SQL> standby is

  • SRW224G4 - Can't change port to PVE groupings

    I have a Linksys SRW224G4. Two PVE groups are in use. However I can't change which PVE group a port is assigned to. The option to change the group is there but ghosted out and can't be selected. I downloaded the user manual but it describes a web int