Quantcast
Channel: Interview Topics and Questions
Viewing all articles
Browse latest Browse all 129

How to Send 0x00 as Hex data over UDP protocol?

$
0
0
While to send hex data over UserDataGram protocol i.e

char buffer[20]={0xEA,0xEB,0x00,0x01,0xFE};

addrlen = sizeof(struct sockaddr_in);
sendto( s, buffer, strlen(buffer)+1, 0, (struct sockaddr*)&addr, addrlen );
At client side am receiving only 0xEA,0xEB

Ooops,

0x00 consider as null and data after this, is not sending.Can anyone give solution for this?.

Viewing all articles
Browse latest Browse all 129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>