Line to send. May contain substrings separated by newline characters. A final linebreak is added to the end of the send.
Maximum line length before the sent message will be truncated.
Characters to use as linebreak, marking the end of a line to send.
SocketSendException if the call to send data through the socket returns Socket.ERROR.
conn.sendline("NICK foobar"); conn.sendline("PRIVMSG #channel :text"); conn.sendline("PRIVMSG " ~ channel ~ " :" ~ content); conn.sendline(longerLine, 1024L); // Now with custom line lengths
Sends a line to the server.
Intended for servers that deliminates lines by linebreaks, such as IRC servers.