¡@

Home 

c++ Programming Glossary: setsockopt

How to support both IPv4 and IPv6 connections

http://stackoverflow.com/questions/1618240/how-to-support-both-ipv4-and-ipv6-connections

default on Linux i.e. allowing dual stack sockets without setsockopt and is turned on on most other systems. In addition the IPv6..

crosses initialization of ?˜std::istringstream iss??when using inside while loop [closed]

http://stackoverflow.com/questions/18417738/crosses-initialization-of-stdistringstream-iss-when-using-inside-while-loop

errno goto FINISH p_int int malloc sizeof int p_int 1 if setsockopt hsock SOL_SOCKET SO_REUSEADDR char p_int sizeof int 1 setsockopt.. hsock SOL_SOCKET SO_REUSEADDR char p_int sizeof int 1 setsockopt hsock SOL_SOCKET SO_KEEPALIVE char p_int sizeof int 1 printf..

Socket Exception: “There are no more endpoints available from the endpoint mapper”

http://stackoverflow.com/questions/272523/socket-exception-there-are-no-more-endpoints-available-from-the-endpoint-mappe

if m_accept_fd INVALID_SOCKET return false int optval 1 if setsockopt m_accept_fd SOL_SOCKET SO_REUSEADDR char optval sizeof optval..

UDP sendto() and recvfrom() max buffer size

http://stackoverflow.com/questions/3292281/udp-sendto-and-recvfrom-max-buffer-size

able send a larger buffer ~66000 bytes. I tried using the setsockopt function but it didn't seem to work. Thanks c c share improve..

udp packet fragmentation for raw sockets

http://stackoverflow.com/questions/4191253/udp-packet-fragmentation-for-raw-sockets

Unable to create the SIP sockets. sip_socket n return 3 if setsockopt sip_socket IPPROTO_IP IP_HDRINCL one sizeof one 1 cerr Unable..

substitute for fork()ing? in windows

http://stackoverflow.com/questions/4243880/substitute-for-forking-in-windows

else cout Socket Created. endl clearing in use ports. if setsockopt sockfd SOL_SOCKET SO_REUSEADDR yes sizeof int 1 cout Couldnt.. int 1 cout Couldnt clear blocked port. endl perror setsockopt exit 1 if bind sockfd loop_find ai_addr loop_find ai_addrlen..

Is this a legitimate C++ code? [closed]

http://stackoverflow.com/questions/4372062/is-this-a-legitimate-c-code

p ai_protocol 1 perror server socket continue if setsockopt sockfd SOL_SOCKET SO_REUSEADDR yes sizeof int 1 perror setsockopt.. sockfd SOL_SOCKET SO_REUSEADDR yes sizeof int 1 perror setsockopt exit 1 if bind sockfd p ai_addr p ai_addrlen 1 close sockfd..

C++ Boost ASIO: how to read/write with a timeout?

http://stackoverflow.com/questions/4553162/c-boost-asio-how-to-read-write-with-a-timeout

and SO_SNDTIMEO socket options. They can be set with setsockopt the descriptor can be obtained with the boost asio ip tcp socket..

Using select() for non-blocking sockets

http://stackoverflow.com/questions/6715736/using-select-for-non-blocking-sockets

failure m errno exit 1 allow reuse of port int yes 1 if setsockopt sock SOL_SOCKET SO_REUSEADDR yes sizeof int 1 perror setsockopt.. sock SOL_SOCKET SO_REUSEADDR yes sizeof int 1 perror setsockopt exit 1 unlink and bind unlink 127.0.0.1 if bind sock servinfo..

Using a C++ TCP client socket on a specific network interface Linux/Unix

http://stackoverflow.com/questions/7057482/using-a-c-tcp-client-socket-on-a-specific-network-interface-linux-unix

question According to the information here you can use setsockopt to achieve this as follows char interface eth5 setsockopt socket_file_descriptor_.. setsockopt to achieve this as follows char interface eth5 setsockopt socket_file_descriptor_ SOL_SOCKET SO_BINDTODEVICE interface..

Blocking socket returns EAGAIN

http://stackoverflow.com/questions/735249/blocking-socket-returns-eagain

be relevant. I do set a read timeout on the socket using setsockopts but it is set to 30 seconds. the EAGAIN's happen way more often.. you have a nonzero receive timeout set on the socket via setsockopt sock SOL_SOCKET SO_RCVTIMEO ... as that would also cause recv..

How to set the don't fragment (DF) flag on a socket?

http://stackoverflow.com/questions/973439/how-to-set-the-dont-fragment-df-flag-on-a-socket

to find how to set this. I suspect that I would do it with setsockopt but can't find it in the table on page 193. Please suggest how.. share improve this question You do do it with the setsockopt call by using the IP_DONTFRAG option int val 1 setsockopt sd.. setsockopt call by using the IP_DONTFRAG option int val 1 setsockopt sd IPPROTO_IP IP_DONTFRAG val sizeof val Here's a page explaining..