Socket Identification Help & Sending Bitmaps
This is my void to send a bitmap of the screen but I do not know how to do packet identification with sending an image & how to do it with integers instead of strings
11 Replies
Make a packet system, you can use MessagePack for help with serialization / deserialization of packets.
this is what I got atm
As for how you can identify users, send a token with the packet that contains the identification of the user.
what I have is
a client connects to a socket server
but when they send data, I want to know what data they are sending, the purpose of it
header | payload length | payload
That's usually the structure of packetsis it initial data, is it a screen
yeah so when I do socket.Send where can I put an identifier to tell the server what it even is
anyone?
You were just told how to solve that?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
(it doesn't have to be MessagePack of course -- any serialization format works. The point is being able to pack multiple bits of data into a single string / byte sequence, in a way in which you can unpack them again at the other end)
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
no?
anyone?