Anonymous user
Sockets: Difference between revisions
Fix UNIX Shell to run 'nc', not 'netcat'. (Some systems only have 'nc'.) Delete redundant UnixPipes example.
m ({{omit from|GUISS}}) |
(Fix UNIX Shell to run 'nc', not 'netcat'. (Some systems only have 'nc'.) Delete redundant UnixPipes example.) |
||
Line 677:
#! The actual server
[ " hello socket world" server.send ] 256 server.start</lang>
<lang bash>(echo "hello socket world" | nc localhost 256 | exit 0)</lang>▼
=={{header|UNIX Shell}}==
Using netcat:
{{libheader|nc}}
When the connection fails, <code>nc</code> exits 1. To see an error message, use <code>nc -v localhost 256</code>.
=={{header|Visual Basic .NET}}==
|