Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Jun 2015, 10:41
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
linux socket TCP control
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message

Joined: 23 May 2013
Posts: 5

PostPosted: Thu 23 May 2013, 06:13    Post_subject:  linux socket TCP control  

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
Back to top
View user's profile Send_private_message 

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 24 May 2013, 23:44    Post_subject: Re: linux socket TCP control  

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:


netinet/tcp.h - definitions for the Internet Transmission Control Protocol (TCP)


#include <netinet/tcp.h>


The <netinet/tcp.h> header shall define the following symbolic constant for use as a socket option at the IPPROTO_TCP level:

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/9699919799/basedefs/netinet_tcp.h.html
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0388s ][ Queries: 11 (0.0049s) ][ GZIP on ]