Category: network programming

Linux Network Programming (1) Server CS Framework 0

Linux Network Programming (1) Server CS Framework

Hits: 0 IP address conversion function #include <arpa/inet.h> in_addr_t inet_addr(const char* strptr); int inet_aton (const char* cp,struct in_addr* inp); char* inet_ntoa(struct in_addr in); host/network byte order #include <netinet/in.h> unsigned long int htonl(unsigned long int...

Detailed explanation of TCP and UDP (very detailed) 0

Detailed explanation of TCP and UDP (very detailed)

Hits: 0Detailed explanation of TCP and [UDP] Computer network knowledge literacy: /hansionz/article/details/85224786 Network programming socket: [/hansionz/article/details/85226345] A process can bind multiple port numbers, but a port number cannot be bound by multiple processes. Port...

3. URL download network resources 0

3. URL download network resources

Hits: 0URL to download web resources To download network resources, you need to use the URL class. First, use url.openConnection() to connect to the http of this resource, and then force the connection object...