On Fri, Oct 2, 2009 at 12:33 PM, krushnaal pai <[email protected]> wrote: > i created a kernel to kernel tcp socket > > sent 4096 bytes from server , > > but in client on printing using %s it prints only 980 bytes > > can anyone plz tell me why its happening? > > Am i missing anything?
IIANM, printing with %s will stop at first byte that is 0x0 (null byte indicates end of string). Maybe try printing %c in a loop the size of received data? HTH, -Bob Beers -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [email protected] Please read the FAQ at http://kernelnewbies.org/FAQ
