Is there any easy way to transfer 4 bit integer on socket?
I want to send like this:
a=5
send_integer(so cket_s,a)
and receive like this:
a=receive_integ er(socket_s)
Sending and receiving is in binary form, not transfer it to string.
Is there any easy way to do this?
I want to send like this:
a=5
send_integer(so cket_s,a)
and receive like this:
a=receive_integ er(socket_s)
Sending and receiving is in binary form, not transfer it to string.
Is there any easy way to do this?
Comment