setsockopt

Learn about setsockopt, we have the largest and most updated setsockopt information on alibabacloud.com

View TCP keepalive attributes in Linux

View TCP keepalive attributes in Linux Http://www.oklinux.cn Source: CCID network Kron member collection of tourists Collection "big medium small]

Custom IP Header

# Include # define source_port 7234 # define max_receivebyte 255 typedef struct ip_hdr // define the IP header {unsigned char h_verlen; // four-bit header length, 4-bit IP version unsigned char TOS; // 8-bit service type TOS unsigned short total_len;

TCP knowledge segment

TCP sending scenarios I understand the ACK sending scenario. In the following scenarios, TCP sends the ack packet: 1. when one packet is received, start the MS timer and wait until the MS timer reaches the point (the second packet does not come),

Use of libevent in asynchronous socket

When learning how to use libevent. Example 1:Libevent_echosrv1.c /** Libevent echo server example. */# include # Include # Include /* For inet_ntoa. */# include/* required by event. H. */# include # Include

Programming and implementation of firewall in Linux (1) Example

Programming and implementation of firewall in Linux (1) --- Excerpted from the Ninth Issue ◆ Programming implementation of firewall in linux Author: flag Home: http://www.isbase.comDate: 2000-05-10 Preface Linux comes with ipchains as its own

"Incurable diseases" using truss, strace, or ltrace diagnostic software

Original linkBrief introductionProcess does not start, the software runs suddenly slow, the program's "Segment Fault" and so on is to make every UNIX system users headache problem, this article through three practical cases demonstrate how to use

Welcome to the Csdn-markdown Editor

Multicast programming (with one port joining multiple multicast)1**. Multicast Client * *. h file#pragma once#include #include #include //#include #ifdef WIN32 #include //ip_mreq //#include #pragma comment (lib, "Wsock32.lib")//ws2_32.lib

View TCPkeepalive attributes in Linux

Article Title: View TCPkeepalive attributes in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. Tcp is

Strace command Explanation

Strace command ExplanationThe Strace command is a powerful tool that can display all system calls made by a user-space program.Strace Displays the parameters of these calls and returns the values in the form of symbols. Strace receives information

Summary of mtu tcp udp optimization settings in network programming

The TCP/IP protocol involves four layers: link layer, network layer, transmission layer, and application layer.The Ethernet data frame is at the link layer.IP packageAt the network layerTCP or UDP packetsAt the transport layerData in TCP or UDP(Data)

Ftp c ++ implementation

Passively, connect to FTP and upload and download files.Linux connection. Source Code:FTP. h[Cpp]# Ifndef FTP_H _# Define FTP_H _# Include # Include  Class CFTP{Public:CFTP (void );~ CFTP (void );// Connect to the ftp serverInt ftp_connect (const

About locating the VRRPD process with the Strace tool sometimes hangs up dead bug

Only for the work of summary memo. Burning image, a little summary of the problem encountered in the bug. A project to use the NAT,VRRP function of the L3 switch, but the field test accidentally appeared in the case of write file

Implementation of keep alive for TCP under Linux source code analysis

Keep Alive under TCPWe often say that the TCP keep alive, is to ensure the validity of the connection, at a certain time interval to send a probe packet, based on the reply to confirm that the connection is valid. Typically, upper-level applications

A detailed explanation of TCP programming functions and steps

The server-side general step of TCP programming is 1, create a socket, with the function socket (); 2, set the socket property, with function setsockopt (); * Optional 3, binding IP address, port and other information to the socket, with the

Linux's Strace command

The Strace command is a powerful tool that can display all system calls made by user space programs. Strace Displays the parameters of these calls and returns the value of the symbolic form. Strace receives information from the kernel and does not

The most complete difference between network protocol-TCP and UDP is introduced

The most complete difference between network protocol-TCP and UDP is introduced Preface: In order to facilitate the late turn look, the public number in slowly finishing the article, about the Java Network Programming content of the article, can be

TCP/IP Protocol learning Seven (TCP keepalive timer keepalive option)

Consider this scenario, a TCP connection has been established, but there is no data interaction between the two sides, so that regardless of the two host router between the crash, or the network cable is broken, as long as two host is not restarted,

[Go] 4 ways to improve socket performance on Linux and accelerate network applications

Original link: http://www.ibm.com/developerworks/cn/linux/l-hisock.htmlUsing the Sockets API, we can develop client and server applications that can communicate on the local network or on a global scale over the Internet. As with other APIs, you can

Tip: "Incurable diseases" using truss, strace, or ltrace diagnostics software

Brief Introduction The process cannot start, the software runs suddenly slows down, the program "Segment Fault" and so on each UNIX system user's headache problem, this article through three actual cases demonstrates how to use truss, strace and

Realization of Peer-to-peer technology in LAN

Peer-to-peer technology to achieve a lot of ways, is mainly introduced by using the socket TCP method to build Peer-to-peer environment. At the beginning of the main reference NBD protocol part of the server program to implement the BT server

Total Pages: 15 1 .... 8 9 10 11 12 .... 15 Go to: Go

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.