Hello everyone,
I have a special question about the
SendSocketByte command.
The description says:
Quote: "Will send a single byte in the range -128 to 127 to the remote connection. Note that data is not sent immediately, you must call FlushSocket to send it. Returns 1 if the byte was successfully written to the buffer, 0 if the socket disconnected. "
So a byte consists of 8 bits.
00000000 <= this is the smallest possible byte - aka "0" decimal unsigned
11111111 <= this is the largest possible byte - aka "255" decimal unsigned
So how should I manage the input value of SendSocketByte?
should I input "-128" to get a 00000000 byte send or should I input "0" to get 00000000 send?
Or better: Does the input value range correlate with the sended byte range ?