@@ -15,8 +15,9 @@ Really this library is not that big of a deal and most sources suggest using a l
15
15
- Windows
16
16
17
17
## To Build
18
- - ` simple_cpp_sockets.h ` is header-only (just include it in your project).
19
- - To build and run the test application on Linux:
18
+ - The library ` simple_cpp_sockets.h ` is header-only (just include it in your project).
19
+
20
+ - To build and run the test application on Linux open a terminal and run:
20
21
- ` cd src `
21
22
- ` g++ main.cpp -o main `
22
23
- ` ./main `
@@ -29,12 +30,10 @@ Really this library is not that big of a deal and most sources suggest using a l
29
30
## Functionality
30
31
` main.cpp ` is a simple functioning example (not all errors are handled gracefully).
31
32
32
- Run the compiled demo application from the command line.
33
- It is a CLI that allows you to interactively make a:
34
-
35
- UDP or TCP
33
+ The compiled test application is a CLI that allows you to interactively create a:
36
34
37
- server or client
35
+ - UDP or TCP
36
+ - server or client
38
37
39
38
By asking for:
40
39
- protocol
@@ -50,18 +49,18 @@ If server:
50
49
51
50
52
51
## To Use
53
- simple_cpp_sockets.h contains classes for UDP and TCP servers and clients.
52
+ ` simple_cpp_sockets.h ` contains classes for UDP and TCP servers and clients.
54
53
55
54
An example looks like:
56
55
```
57
56
UDPServer server(socket_port);
58
57
int bind_status = server.socket_bind();
59
58
```
60
- Look at main.cpp for the complete needed code .
59
+ Look at ` main.cpp ` for the a complete example .
61
60
62
61
## Project Structure
63
62
- ` src/simple_cpp_sockets.h ` is the library
64
- - ` src/main.cpp ` is a simple demo application
63
+ - ` src/main.cpp ` is a demo application
65
64
66
65
## Extra Notes
67
66
- There is [ a lot more that could be done] ( http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html ) but this is outside the goals of this project
0 commit comments