OpenSS7 SS7 for the Common Man |
© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved. |
||||||||||||||||||||||||||
Home | Overview | Status | News | Documentation | Resources | About | |||||||||||||||||||||
File /code/strss7/lib/libsocket/getsockopt.c#ident "@(#) $RCSfile: getsockopt.c,v $ $Name: $($Revision: 0.8.2.3 $) $Date: 2003/05/28 08:01:59 $" #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <socksys.h> #include <stropts.h> /* * GETSOCKOPT * ------------------------------------------------------------------------- */ int getsockopt(int socket, int level, int option_name, void *option_value, socklen_t * option_len) { struct socksysreq req = { { (long) SO_GETSOCKOPT, (long) socket, (long) level, (long) option_name, (long) option_value, (long) option_len, } }; struct strioctl ioc; ioc.ic_cmd = SIOCSOCKSYS; ioc.ic_timout = SOCKSYS_TIMEOUT; ioc.ic_len = sizeof(req); ioc.ic_dp = (char *) &req; return ioctl(socket, I_STR, &ioc); }
|
|||||||||||||||||||||||||||
OpenSS7 SS7 for the Common Man |
Home | Overview | Status | News | Documentation | Resources | About | ||||||||||||||||||||
© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved. |