C 言語関数:getsockopt サンプルコード

サンプルコードを検索した結果です。


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 : Ruby By Examples - Wikibooks, open books for an open world
optval = mySocket.getsockopt(Socket::SOL_SOCKET,Socket::SO_REUSEADDR).......
http://en.wikibooks.org/wiki/Ruby_By_Examples
TITLE : Ruby By Examples - Wikibooks, open books for an open world
optval = mySocket.getsockopt(Socket::SOL_SOCKET, Socket::SO_LINGER).......
http://en.wikibooks.org/wiki/Ruby_By_Examples
TITLE : Ruby By Examples - Wikibooks, open books for an open world
optval = mySocket.getsockopt(Socket::SOL_SOCKET,Socket::SO_REUSEADDR).......
http://en.wikibooks.org/wiki/Ruby_By_Examples
TITLE : ソケット : kei@sodan
getsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&i, 4);.......
http://funini.com/kei/c/socket_sample.shtml
TITLE : code-sample-c/keepalive.c at master 揃 soarpenguin/code-sample-c 揃 GitHub
if(getsockopt(s, SOL_SOCKET, SO_KEEPALIVE, &optval, &optlen) < 0) {.......
http://github.com/soarpenguin/code-sample-c/blob/master/keepalive.c
TITLE : code-sample-c/keepalive.c at master 揃 soarpenguin/code-sample-c 揃 GitHub
perror("getsockopt()");.......
http://github.com/soarpenguin/code-sample-c/blob/master/keepalive.c
TITLE : code-sample-c/keepalive.c at master 揃 soarpenguin/code-sample-c 揃 GitHub
if(getsockopt(s, SOL_SOCKET, SO_KEEPALIVE, &optval, &optlen) < 0) {.......
http://github.com/soarpenguin/code-sample-c/blob/master/keepalive.c
TITLE : code-sample-c/keepalive.c at master 揃 soarpenguin/code-sample-c 揃 GitHub
perror("getsockopt()");.......
http://github.com/soarpenguin/code-sample-c/blob/master/keepalive.c
TITLE : getsockopt function (Windows)
int getsockopt(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738544(v=vs.85).aspx
TITLE : getsockopt function (Windows)
if (getsockopt(ListenSocket,.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738544(v=vs.85).aspx
TITLE : getsockopt function (Windows)
Before an IrDA socket connection can be initiated, a device address must be obtained by performing a getsockopt(,,IRLMP_ENUMDEVICES,,) function call, which returns a list of all available IrDA devices. A device address returned from the function call is copied into a SOCKADDR_IRDA structure, which in turn is used by a subsequent call to the connect function call........
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738544(v=vs.85).aspx
TITLE : getsockopt function (Windows)
iResult = getsockopt(Sock, SOL_IRLMP, IRLMP_ENUMDEVICES,.......
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738544(v=vs.85).aspx
TITLE : getsockopt function (Windows)
The IAS_QUERY structure shown in the Type column in the previous table is used to retrieve a single attribute of a single class from a peer device's IAS database. The application specifies the device and class to query and the attribute and attribute type. Note that the device would have been obtained previously by a call to getsockopt(IRLMP_ENUMDEVICES). It is expected that the application allocates a buffer, of the necessary size, for the returned parameters........
http://msdn.microsoft.com/en-us/library/windows/desktop/ms738544(v=vs.85).aspx
TITLE : getsockopt - perldoc.perl.org
The function returns a packed string representing the requested socket option, or undef on error, with the reason for the error placed in $! . Just what is in the packed string depends on LEVEL and OPTNAME; consult getsockopt(2) for details. A common case is that the option is an integer, in which case the result is a packed integer, which you can decode using unpack with the i (or I ) format........
http://perldoc.perl.org/functions/getsockopt.html
TITLE : getsockopt - perldoc.perl.org
my $packed = getsockopt($socket, $tcp, TCP_NODELAY).......
http://perldoc.perl.org/functions/getsockopt.html
TITLE : getsockopt
int getsockopt(int socket, int level, int option_name,.......
http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html
TITLE : getsockopt
The getsockopt() function manipulates options associated with a socket........
http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html
TITLE : getsockopt
The getsockopt() function shall retrieve the value for the option specified by the option_name argument for the socket specified by the socket argument. If the size of the option value is greater than option_len, the value stored in the object pointed to by the option_value argument shall be silently truncated. Otherwise, the object pointed to by the option_len argument shall be modified to indicate the actual length of the value........
http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html
TITLE : getsockopt
The socket in use may require the process to have appropriate privileges to use the getsockopt() function........
http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html
TITLE : getsockopt
Upon successful completion, getsockopt() shall return 0; otherwise, -1 shall be returned and errno set to indicate the error........
http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html
TITLE : getsockopt
The getsockopt() function shall fail if:.......
http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html
TITLE : getsockopt
The getsockopt() function may fail if:.......
http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html
TITLE : getsockopt
The restrict keyword is added to the getsockopt() prototype for alignment with the ISO/IEC 9899:1999 standard........
http://pubs.opengroup.org/onlinepubs/009695399/functions/getsockopt.html
TITLE : SO_REUSEPORT pythonサンプル - Qiita
sock.getsockopt(.......
http://qiita.com/takaomag/items/f43d0ccac04eb8dd9e5c
Googleで検索

https://www.google.co.jp/#q=getsockopt