From: http://www.cnblogs.com/panjun-Donet/articles/1144186.html
1. The style must be consistent (Consistent)A compatriot asked me why the indentation format of our Java code had to be like this, not him. He liked his own style, therefore, the Code
Java Program Writing specificationNaming conventions1. General concept1. Use full English descriptors as far as possible2. Adoption of terminology applicable to related fields3, the use of mixed case to make the name readable4, to minimize the use
1. The style must be consistency (consistent)A fellow man with my nose asked, why does our Java code indentation format have to be this way, but not him, he is like his own, so he wrote the code is always in his own custom style. The results were
Java Program Writing specificationNaming conventions1. General concept1. Use full English descriptors as far as possible2. Adoption of terminology applicable to related fields3, the use of mixed case to make the name readable4, to minimize the use
With the development of Internet, e-mail has grown rapidly into a major network information transfer tool. Faced with the demand for fast, inexpensive, and highly reliable e-mail, many companies and individuals use the services provided by Linux as
Function: Sets the set of interfaces created by the socket to be detailed on the properties.int setsockopt (SOCKET S,int level,int optname,Const char* Optval,int Optlen);S (socket): points to an open set of interface descriptor wordsLevel: Specifies
int setsockopt (SOCKET S,int level,int optname,Const char* Optval,int Optlen);S (socket):Level: Specifies the type of the option code.Sol_socket: Basic set of interfacesIpproto_ip:ipv4 Socket ConnectorIpproto_ipv6:ipv6 Socket
Int setsockopt (Socket s,Int level,Int optname,Const char * optval,Int optlen);
S (socket): point to an open set Interface DescriptionLevel: (level): Specifies the option code type.Sol_socket: basic set of interfacesIpproto_ip: IPv4 InterfaceIpproto_
Setsockopt () usage (parameter description) recv, send timeout processing, setsockoptrecv
Source: recv send blocking and non-blocking
Int setsockopt (SOCKET s,Int level,Int optname,Const char * optval,Int optlen);
S (socket): point to an open set
Getsockopt and setsockopt
Set Interface Options: int getsockopt (INT sockfd, int level, int optname, void * optval, socklen_t * opteln) set Interface Options: int setsockopt (INT sockfd, int level, int optname, const void * optval, socklen_t *
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.