mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 09:52:24 +00:00
parent
2615a22901
commit
4f0312705e
3 changed files with 65 additions and 10 deletions
39
src/test/server/readme.md
Normal file
39
src/test/server/readme.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
forking server example in oberon
|
||||
================================
|
||||
|
||||
to compile
|
||||
|
||||
>make
|
||||
|
||||
run
|
||||
|
||||
>./s
|
||||
|
||||
test
|
||||
|
||||
>telnet localhost 2055
|
||||
|
||||
write something
|
||||
|
||||
>հեյ
|
||||
|
||||
stdout of the client
|
||||
|
||||
> $ telnet localhost 2055
|
||||
Trying ::1...
|
||||
telnet: connect to address ::1: Connection refused
|
||||
Trying 127.0.0.1...
|
||||
Connected to localhost.
|
||||
Escape character is '^]'.
|
||||
հեյ
|
||||
Affirmative, DaveConnection closed by foreign host.
|
||||
|
||||
stdout of the server:
|
||||
|
||||
>$ ./s
|
||||
socket created.
|
||||
binding completed.
|
||||
listen okay
|
||||
accept okay
|
||||
forked okay
|
||||
received message is հեյ
|
||||
Loading…
Add table
Add a link
Reference in a new issue