Skip to content

Commit 7d64d57

Browse files
committed
Update README.md
1 parent 4e8561c commit 7d64d57

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,53 @@
11
# go-unix-domain-socket-example
22
Unix domain socket (UDS) example by golang
3+
4+
## How to Run
5+
6+
### basic
7+
8+
Open two terminals. the one is following:
9+
10+
```sh
11+
$ cd cmd/basic/server
12+
$ go run .
13+
```
14+
15+
and another terminal is following:
16+
17+
```sh
18+
$ cd cmd/basic/client
19+
$ go run .
20+
```
21+
22+
### read & write per connection
23+
24+
Open two terminals. the one is following:
25+
26+
```sh
27+
$ cd cmd/readwrite/server
28+
$ go run .
29+
```
30+
31+
and another terminal is following:
32+
33+
```sh
34+
$ cd cmd/readwrite/client
35+
$ go run .
36+
```
37+
38+
### N read & write on one connection
39+
40+
Open two terminals. the one is following:
41+
42+
```sh
43+
$ cd cmd/readwrite2/server
44+
$ go run .
45+
```
46+
47+
and another terminal is following:
48+
49+
```sh
50+
$ cd cmd/readwrite2/client
51+
$ go run .
52+
```
53+

0 commit comments

Comments
 (0)