TCPSocket

BlitzMax Forums/BlitzMax Programming/TCPSocket

How can i get a data stream from a socket?

s:tSocket = createTCPSocket()
ip=hostip("www.ansa.it")
if connectsocket(s, ip, 80) print "connected"
closeSocket(s)


in this way i should be connnected to ansa.it (correct me if not). And now? if i want to get the page and simply put the html to console, how can i?

(sorry if there's english mistakes)