1 2 3 4 5 6 7 8 9 10 11
import sockets var s: TSocket s = socket() s.connect("www.google.com", TPort(80)) var recvData: string = "" echo(s.recvLine(recvData)) echo(recvData)