File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 11# go-unix-domain-socket-example
22Unix 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+
You can’t perform that action at this time.
0 commit comments