Android Question Where to get information about a library?

Discussion in 'Android Questions' started by Vinians2006, Jun 11, 2015.

  1. Vinians2006

    Vinians2006 Member Licensed User

    I need a complete information about Socket and ServerSocket objetct, where can I find it?
  2. DonManfred

    DonManfred Expert Licensed User

  3. Vinians2006

    Vinians2006 Member Licensed User

    I managed to send a string to a Java program running on my destop using sockects. But, I'm using this code to send see:
    os.WriteBytes(texto.GetBytes("ASCII"), 0, len)
    But before sending this string I want to send an int with the size of that string. So, how can I send an int ?
    Supose my string having this value texto = "String", this string has 6 chars, so I need to send the number 6 on the firsts 4 bytes as an INT has 4 bytes,
    how can I do that? Thanks!
  4. Erel

    Erel Administrator Staff Member Licensed User

    Note that the thread title should summarize the question for it to be useful.

    I recommend you to learn about AsyncStreams. This is the only correct way to manage network streams.