mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
net: ipv6 support, merge unix+ip;[pack:x] attribute (#9904)
This commit is contained in:
parent
fa9fa77a5f
commit
535dcac8fa
52 changed files with 1277 additions and 524 deletions
|
@ -7,6 +7,10 @@ fn main() {
|
|||
defer {
|
||||
conn.close() or {}
|
||||
}
|
||||
|
||||
println(' peer: $conn.peer_addr()')
|
||||
println('local: $conn.addr()')
|
||||
|
||||
// Simple http HEAD request for a file
|
||||
conn.write_string('HEAD /index.html HTTP/1.0\r\n\r\n') ?
|
||||
// Read all the data that is waiting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue