Quantcast
Channel: BlogoSfera » OS
Viewing all articles
Browse latest Browse all 176

How TCP socket writeByte/readByte or other equivalent works in Java?

$
0
0

byte[] message = ... Socket socket = ... DataOutputStream dOut = new DataOutputStream(socket.getOutputStream()); dOut.write(message); //#1 ... //other code Let us assume that the machine 1 (with the code above) trying to send somethings to machine 2 that is trying to read byte from machine 1. According to TCP, can I say that the codes after [...]

The post How TCP socket writeByte/readByte or other equivalent works in Java? appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 176

Trending Articles