In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Download the source code for this book
(The source code is attached to the back of this blog post)
2. Extract the source code, enter unpv13e to view readme, follow the prompts
1) chmod u+x configure; add executable permissions to the configure file
./ configure
2)cd lib
make
3)(The following can be done according to README, some platforms cannot compile, my ubuntu will not work..., It does not affect)
3. Going back to the unpv13e directory, a libunp.a file has been generated below,
Copy this static library libunp.a into/usr/lib/and/usr/lib64/(mine is 64-bit ubuntu)
4. Next, find unp.h in lib directory and config.h in unpv13e directory. We will use these two header files in future code.
Copy these two files to the directory where we wrote our own code, and then open the unp.h file with a text editor,
#include "../ config.h"statement changed to #include "config.h", save
This environment is set up, but later compilation time in the need for gcc at the end of the-lunp import static library, for example:
gcc daytimetcpcli.c -o daytimetcpcli -lunp
Take the first example: daytimetcpchli
After compilation, execute: ./ daytimetcpcli 127.0.0.1
connection refused
The reason is that the local daytime service is not enabled. Let's enable the local daytime service (ubuntu12.04).
First install xinetd:
sudo apt-get install xinetd
Then edit the profile:
sudo vi /etc/xinetd.d/daytime
Change disable=yes to no and save to exit
Finally restart xinetd service
sudo /etc/init.d/xinetd restart
Attachment: down.51cto.com/data/2364162
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.