Sockets: Difference between revisions

126 bytes added ,  7 years ago
m
→‎{{header|Go}}: show output
m (→‎{{header|TXR}}: Fix lang tag.)
m (→‎{{header|Go}}: show output)
Line 408:
 
=={{header|Go}}==
Tested with nc -l 256
<lang go>package main
Line 428 ⟶ 427:
}
}</lang>
{{out | Test with nc}}
<pre>
Tested$ withsudo nc -l 256 &
[2] 19754
$ go run sock.go
hello socket world[2]+ Done sudo nc -l 256
$
</pre>
 
=={{header|Groovy}}==
1,707

edits