I am working on Client Server application where I need to send 6 byte mac id (FFF000 - FFF1FF) to the server from the client. I wanted to know the how best to represent in c++.
I thought of declaring it as unsigned long and then covert it in 6 bytes and send it to the server.
Is this correct do this. Any Other alternative please suggest.