OpenSS7
SS7 for the
Common Man

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified:

Home Overview Status News Documentation Resources About
   
 Overview
 Status
 News
 Documentation
 Resources
 About

   
Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/lib/libsocket/socketpair.c


File /code/strss7/lib/libsocket/socketpair.c



#ident "@(#) $RCSfile: socketpair.c,v $ $Name:  $($Revision: 0.8.2.3 $) $Date: 2003/05/28 08:02:00 $"

#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>

#if 0
/*
 *  SOCKETPAIR
 *  -------------------------------------------------------------------------
 */
int socketpair(int domain, int type, int protocol, int socket_vector[2])
{
	struct socksysreq req = {
		{
		 (long) SO_SOCKPAIR,
		 (long) domain,
		 (long) type,
		 (long) protocol,
		 (long) socket_vector,
		 }
	};
	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);
}
#endif


Home Index Prev Next More Download Info FAQ Mail   Home -> Resources -> Browse Source -> strss7/lib/libsocket/socketpair.c

OpenSS7
SS7 for the
Common Man
Home Overview Status News Documentation Resources About

© Copyright 1997-2004,OpenSS7 Corporation, All Rights Reserved.
Last modified: