TCPGetAddr$()


IP$ = TCPGetAddr$(connection)

This function returns the host name and IP address of the remote device you are connected with as a delimited string. The delimiter character is a slash "/". If the specified TCP socket is not open and connected an empty string is returned.


For example:


addr$ = TCPGetAddr$(1)

host$ = ItemExtract(addr$, 0, "/")
IP$ = ItemExtract(addr$, 1, "/")





NetGetIP$()


TcpOpen


TcpClose


TcpGetState()


TcpGetError$()


TcpGetSize()


TcpRead


TcpReadln


TcpReadUTF


TcpWrite


TcpWriteln


TcpWriteUTF







Become a Patron