Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v
/
vlib
/
net
/
dial_tcp_with_bind_test.v
12
lines
·
11
sloc
·
195 bytes
·
f603035758b69c9ff68113c082c7198faf9b7303
Raw
1
import
net
2
3
fn
test_bind() {
4
$
if
!network ? {
5
return
6
}
7
eprintln(@LOCATION)
8
mut
conn := net.dial_tcp_with_bind(
'vlang.io:80'
,
'0.0.0.0:0'
)!
9
dump(conn)
10
conn.close()!
11
eprintln(@LOCATION)
12
}
13