Anyone could pass me an example of sending Ascii msg over TCP?(couldnt find example on the net)
thanks,
ray.
Not sure, I think this should work:
try (DataOutputStream outToClient = new DataOutputStream(socket.getOutputStream())) { outToClient.write(stringMessage.getBytes("US-ASCII")); } catch (IOException e) {}