open fun write(data: Buffer): NetSocket
open fun write(str: String): NetSocket
Write a java.lang.String to the connection, encoded in UTF-8.
Return
a reference to this, so the API can be used fluently
open fun write(str: String, enc: String): NetSocket
Write a java.lang.String to the connection, encoded using the encoding enc.
Return
a reference to this, so the API can be used fluently