UnpV1 source code usage

Source: Internet
Author: User
The usage of unpV1 source code is preparing to read unpV1 again, but the unp compilation method is forgotten. Check the information to complete the query. This is the consequence of failing to take notes. it took 20 minutes. Now we can record the usage of unpV1 source code: the usage of unpV1 source code is preparing to read unpV1 again, but I forgot the compilation method of unp. Check the information to complete the query. This is the consequence of failing to take notes. it took 20 minutes. Now we can record the usage of unpV1 source code: www.2cto.com 1. compile the static library and copy it to/usr/lib and/usr/lib64. cd libmakmcm .. sudo cp libunp. a/usr/libsudo cp libunp. a/usr/lib64 2. modify unp. h # include ".. /config. h .. /remove, that is, # include "config. h "plus # define MAX_LINE 2048 comment out the struct in_pktinfo struct declaration 3. copy unp. h and config. h to/usr/include 4. compile method, link libunp. a static library, that is,-lunp. For example: $ {CC}-g-o tcpserv01 tcpserv01.c-lunp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.