TcpWriteln


TcpWriteln connection, data$

This command writes a string as bytes to a TCP socket connection. The string is sent followed by a newline character "\n". It is important to note that only the lower eight bits of each character is written to the TCP socket. The strings being written should be thought of as containing bytes.


TcpWriteln 1, data$

err$ = TcpGetError$(1)
if err$ <> "" then Print "Err: "; err$
if TcpGetState(1) <> 1 then Print "Connection Lost"




TcpOpen


TcpClose


TcpGetState()


TcpGetError$()


TCPGetAddr$()


TcpGetSize()


TcpRead


TcpReadln


TcpReadUTF


TcpWrite


TcpWriteUTF







Become a Patron