Jump to content

Search the Community

Showing results for tags 'tcp java'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Not actually for java, but for android client which is java based language. I am trying to send array from autoit server to android client, and if someone is familiar with java programming, I'm using: public byte[] readBytes() throws IOException { InputStream in = socket.getInputStream(); DataInputStream dis = new DataInputStream(in); int len = dis.readInt(); byte[] data = new byte[len]; if (len > 0) { dis.readFully(data); } return data; } but in order to get this data from autoit server I can't use simple TcpSend() with just binary inside, I have to send the integer of the data size I'm sending 1st! but if I send separately: 1st integer with data size and then the data its not working. p.s. sending simple text from autoit using TcpSend("string" & @lf) is working with: in = new BufferedReader(new InputStreamReader(socket.getInputStream())); String cameString = in.readLine(); if(cameString != ""){ //doo whatever with the cameString.. } , but I need more, I would like for example to send array of strings, or image object, or stream audio... but for now I would just like to send the array of strings. Can anyone help me? How should I form the TcpSend function in autoit so that java could recognize it as a valid array of bytes?
×
×
  • Create New...