linux socket TCP control

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
learner
Posts: 5
Joined: Thu 23 May 2013, 10:11

linux socket TCP control

#1 Post by learner »

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

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

Re: linux socket TCP control

#2 Post by akash_rawal »

There's only one option, TCP_NODELAY, and that too you may/may not be able to control.
The 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().
Source: http://pubs.opengroup.org/onlinepubs/96 ... tcp.h.html

Post Reply