Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justxuewei/unix-network-programming
https://github.com/justxuewei/unix-network-programming
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/justxuewei/unix-network-programming
- Owner: justxuewei
- Created: 2020-09-23T03:06:53.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-01T10:51:37.000Z (over 4 years ago)
- Last Synced: 2024-11-09T05:33:35.120Z (2 months ago)
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lab Works of UNIX Network Programming
# Get Start
## Install unp Library
Clone UNP source code from [GitHub](https://github.com/unpbook/unpv13e).
```bash
git clone [email protected]:unpbook/unpv13e.git
```Compile and install the library on the system, tested on Ubuntu Server 18.04 LTS x64.
```bash
cd unpv13e
# bulid the project
./configure
cd lib
make
```Edit `unp.h`: replace `#include "../config.h"` with `#include "unpconfig.h"`.
Copy the library to the system.
```bash
# go back to the root directory of unpv13e
cd ..
# copy the header, use sudo if you are not root
cp config.h /usr/include/unpconfig.h
cp lib/unp.h /usr/include
# copy the library
cp libunp.a /usr/lib
```## Run
```bash
# compile the source code with unp library
gcc xxx.c -o xxx -lunp
# run
./xxx
```# Projects
`lab-work-1`: an echo server and client