summary refs log blame commit diff stats
path: root/tests/accept/compile/tsockets.nim
blob: cc7d18b873a34f244d3a6481d4d0e7fd367a6e28 (plain) (tree)
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)