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 Fri 24 Oct 2014, 08:31
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 [2 Posts]  
Author Message
learner

Joined: 23 May 2013
Posts: 5

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

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
Back to top
View user's profile Send private message 
akash_rawal

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:

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/9699919799/basedefs/netinet_tcp.h.html
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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