C network programming (socket) in linux)

Source: Internet
Author: User
C network programming (socket) in linux-Linux general technology-Linux programming and kernel information. The following is a detailed description. Author: Old urchin _ loveyou

I tested the NETTERM client and found no problems. However, there may be many unreasonable issues. I hope you can correct me!

As I have reproduced several articles on socket programming on my blog, I will give a brief introduction to only the right file.

1. Introduction to header files

Errno. h

The returned error message uses perro (). Therefore, the header file contains errno. h.

Netdb. h

Define the header file used by struct hostent * gethostbyname (const char * hostname.

# Include
# Include
# Include

It may be required for network programming!

This is a client program that accepts data from the server. Do not write data to files.
QUOTE:

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.