php - send representation of byte containing custom high-order nibble and dynamic low nibble -
i'm facing following problem :
i need send byte server.
this byte should contain following :
- high order nibble
1011
- low order nibble containing number representation between 1 , 15, here let's take 2 e.g.
so full byte should 10110010
.
there corresponding thread reading byte in 2 distinct nibbles, not building it.
the goal have achieve first, build byte depending on size value, here 2, , send socket server receive byte 10110010
(hence b2
in hex)
i have read lot of examples couldn't find 1 narrow situation.
so how can build byte , convert in format socket binary stream.
thanks,
Comments
Post a Comment