Hi,
In TCP protocol, it send the data to server and receive acknowledgement. if failed receive acknowledgement, then it will send again same data. it will try this for certain time. how can i control in socket created in linux? not seen any option in setsockopt function. is there any function exist to control this?
--------------
Linux Learner
linux socket TCP control
-
- Posts: 229
- Joined: Wed 25 Aug 2010, 15:38
- Location: ISM Dhanbad, Jharkhand, India
Re: linux socket TCP control
There's only one option, TCP_NODELAY, and that too you may/may not be able to control.
Source: http://pubs.opengroup.org/onlinepubs/96 ... tcp.h.htmlThe Open Group Base Specifications Issue 7 wrote: NAME
netinet/tcp.h - definitions for the Internet Transmission Control Protocol (TCP)
SYNOPSIS
#include <netinet/tcp.h>
DESCRIPTION
The <netinet/tcp.h> header shall define the following symbolic constant for use as a socket option at the IPPROTO_TCP level:
TCP_NODELAY
Avoid coalescing of small segments.
The implementation need not allow the value of the option to be set via setsockopt() or retrieved via getsockopt().