• Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting an int from host to network format

 
John Cooney
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to write a class that first writes the length of a request to a socket in 'network format', and then writes the request (terminated with a null character). I have an example in C, that uses a htonl function. Has anyone else done this sort of thing before??
-John.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!