C language function:getsockopt sample codes

Search sample code in the internet.It is the result.


TITLE : Safari | Linux Socket Programming by Example -> Setting Socket Options
This function closely resembles the getsockopt(2) function discussed earlier. The arguments for setsockopt(2) are listed as follows:.......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=102.html


TITLE : Safari | Linux Socket Programming by Example -> Setting Socket Options
The only real difference between this function's arguments and the getsockopt(2) argument list is that the last argument is passed by value only. It is an input value only in this case........
http://alas.matf.bg.ac.rs/manuals/lspe/snode=102.html
TITLE : Safari | Linux Socket Programming by Example -> Setting Socket Options
69: z = getsockopt(s,SOL_SOCKET,SO_SNDBUF,.......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=102.html
TITLE : Safari | Linux Socket Programming by Example -> Setting Socket Options
72: bail("getsockopt(s,SOL_SOCKET,".......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=102.html
TITLE : Safari | Linux Socket Programming by Example -> Setting Socket Options
81: z = getsockopt(s,SOL_SOCKET,SO_RCVBUF,.......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=102.html
TITLE : Safari | Linux Socket Programming by Example -> Setting Socket Options
84: bail("getsockopt(s,SOL_SOCKET,".......
http://alas.matf.bg.ac.rs/manuals/lspe/snode=102.html
TITLE : Safari | Linux Socket Programming by Example -> Setting Socket Options
If it is critical for the application and kernel to precisely agree on these sizes, the application should retrieve the final values established by the kernel. This is done with a subsequent call to the function getsockopt(2)........
http://alas.matf.bg.ac.rs/manuals/lspe/snode=102.html
TITLE : Ashwin's Blog: Logging TCP state variables such as Congestion Window from user space
getsockopt(sockfd, SOL_TCP, TCP_INFO, (void *)&info, (socklen_t *)&infoLen);.......
http://algorithmicallyrandom.blogspot.com/2012/02/logging-tcp-state-variables-such-as.html
TITLE : zmq_cpp(7) - 0MQ Api
void socket_t::getsockopt(int option_name, void *option_value, size_t *option_len).......
http://api.zeromq.org/2-1%3Azmq-cpp
TITLE : zmq_cpp(7) - 0MQ Api
Maps to the zmq_getsockopt() function, as described in zmq_getsockopt(3)........
http://api.zeromq.org/2-1%3Azmq-cpp
TITLE : setsockopt(), getsockopt()
setsockopt(), getsockopt().......
http://beej.us/guide/bgnet/output/html/multipage/setsockoptman.html
TITLE : setsockopt(), getsockopt()
int getsockopt(int s, int level, int optname, void *optval,.......
http://beej.us/guide/bgnet/output/html/multipage/setsockoptman.html
TITLE : setsockopt(), getsockopt()
The final parameter, optlen, should be set to the length of optval, probably sizeof(int), but varies depending on the option. Note that in the case of getsockopt(), this is a pointer to a socklen_t, and it specifies the maximum size object that will be stored in optval (to prevent buffer overflows). And getsockopt() will modify the value of optlen to reflect the number of bytes actually set........
http://beej.us/guide/bgnet/output/html/multipage/setsockoptman.html
TITLE : setsockopt(), getsockopt()
getsockopt(s3, SOL_SOCKET, SO_BROADCAST, &optval, &optlen);.......
http://beej.us/guide/bgnet/output/html/multipage/setsockoptman.html
TITLE : IrDA Howto Chapter 1: Linux
if (getsockopt(fd, SOL_IRLMP, IRLMP_ENUMDEVICES, list, &len)).......
http://courses.cs.washington.edu/courses/cse476/01wi/projectwebs/ball/HOWTO/IrDA/1.html
TITLE : IrDA Howto Chapter 1: Linux
perror("getsockopt(ENUMDEVICES):");.......
http://courses.cs.washington.edu/courses/cse476/01wi/projectwebs/ball/HOWTO/IrDA/1.html
TITLE : IrDA Howto Chapter 1: Linux
getsockopt(fd, SOL_IRLMP, IRLMP_WAITDEVICE, &val, &len);.......
http://courses.cs.washington.edu/courses/cse476/01wi/projectwebs/ball/HOWTO/IrDA/1.html
TITLE : TCP connection - CRIU
All four can be read with getsockopt() calls to a socket and in order to restore them the TCP_REPAIR_OPTIONS sockoption is introduced........
http://criu.org/TCP_connection
TITLE : TCP connection - CRIU
We add the TCP_TIMESTAMP options to be able to compensate a difference between jiffies counters, when a connection is migrated on another host. When a connection is dumped, criu calls getsockopt(TCP_TIMESTAMP) to get a current timestamp, then on restore it calls setsockopt(TCP_TIMESTAMP) to set this timestamp as a starting point........
http://criu.org/TCP_connection
search Google

https://www.google.com/#q=getsockopt