Chapter Contents

Previous

Next
setsockimp

setsockimp



Specifies the Socket Implementation

Portability: SAS/C extension


SYNOPSIS
DESCRIPTION
RETURN VALUE


SYNOPSIS

#include <sys/types.h>
#include <sys/socket.h>

int setsockimp(const char *name);


DESCRIPTION

setsockimp defines the name of the socket implementation. It must be called before calling any other socket function. The argument name is a one-to-four character string identifying the socket implementation. If name is "COM" , the standard non-integrated socket implementation at your site is used. If name is "OE" , the USS integrated socket implementation is used. Your TCP/IP vendor may define other names to access a specific implementation. The name string is used to construct the name of a load module (LSCNname) implementing the socket interface.

If setsockimp is not called before socket functions are used, a default socket implementation is used. For programs invoked with exec -linkage, the default implementation is USS integrated sockets. For other programs, the default is non-integrated sockets.


RETURN VALUE

setsockimp returns 0 if successful or -1 if unsuccessful. If setsockimp fails because an invalid implementation name was specified, socket functions can still be called, and the default implementation will be used.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.