[openbeos] Re: Networking Object Library

  • From: "Mikael J." <tic_khr@xxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Sat, 19 Jan 2002 20:38:55 +0100

Jonathan Tarbox said:
>
>I've worked with the network kit and the posix sockets.. I perfer the 
ease
>of use of the network kit, but was forced to use the posix sockets due 
to
>the problems.
>
Out of curiosity, how do you send/recv a string, say "Hello World" over 
a socket? I solved it by sending the length of the string/data, a space 
and the data again, such as this (for the string Hello World):
"11 Hello World"

This was in Python, because there was no Network Kit I could use there 
:-/

--
Mikael J @ http://hem.spray.se/tic_khr


 

Other related posts: