Hi,

I am doing socket programming

I am receiving my payload message in a structure.
now to encapsulate it i have to convert it into a buffer.
Buffer is nothing but a charcter pointer array.

Can anyone help me out with syntax of the above typecasting i.e from struct to buffer.

I will be gratefull for your response.

Thank You.