Add sendUtf8 method to socket objects.
authorRyan <ry@tinyclouds.org>
Sat, 16 May 2009 10:44:49 +0000 (12:44 +0200)
committerRyan <ry@tinyclouds.org>
Sat, 16 May 2009 10:44:49 +0000 (12:44 +0200)
commit91bd3124adf84c5cc572cf67cd55f548441f9599
tree90c81b1c3613032fed4b9381d39ceafbbdb2548a
parent2cb81113eccc0316db95bcdc52caecff53b585a8
Add sendUtf8 method to socket objects.

Encoding UTF-16 (the native string representation) to UTF-8 is rather
expensive, however just chopping off the second bit to convert UTF-16 to
ASCII is rather fast. I've noticed major performance issues with
String::WriteUtf8 and thus I'm going to explicitly separate in the API.

Still need interfaces to this for the web server.
src/net.cc
src/net.h