| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Sat, 01 Nov 2008 10:42:52 GMT | ||||||||||||||||
| |||||||||||||||||
| Manpage of GETNSAPBYNAMEDescription: Manual PageKeywords: ss7 ss7/ip ss7 over ip ss7 mtp ss7 sccp ss7 tcap sigtran mtp sccp tcap openss7 acb56 linux telephony pstn linux telephony linux nebs linux compactpciGETNSAPBYNAMESection: OpenSS7 ISO Stack Library Calls (3)Updated: 2008-10-31 Index Return to Main Contents NAMEgetnsapbyname - get the NSAP that corresponds to a host nameSYNOPSIS#include <tiuser.h>
ARGUMENTS
DESCRIPTIONThe libosi user library provides a mechanism for setting local and remote addresses using the host name of the machine. This avoids the need for users of applications to deal with NSAPs and TSAPs. The library usese the file /etc/net/oclt/host for host name to NSAP conversion, and the fie /etc/net/oclt/services for hostname to TSEL conversion. getnsapbyname ()
translates a host name in the string pointed to by the
hostname
RETURNWhen successful, getnsapbyname() returns the positive length of the NSAP in octets; when unsuccessful, minus one (-1). ERRORSWhen unsuccessful, getnsapbyname() returns minus one, (-1) and sets errno(3) to an appropriate error number. EXAMPLESThe following example demonstrates placing the NSAP in a netbuf and using it to connect a /dev/otpi Stream: FILES
SEE ALSOlibosi(3). COMPATIBILITYgetnsapbyname() is compatible with SunLink OSI with the following portability considerations:
See libosi(3), for additional compatibility information. CONFORMANCEHISTORYgetnsapbyname() first appeared in SunLink OSI[1]. REFERENCES
TRADEMARKS
Other trademarks are the property of their respective owners. IDENTIFICATION
Copyright©1997-2008OpenSS7 Corp.
All Rights Reserved.
Index
This document was created by man2html, using the manual pages. Time: 01:49:15 GMT, May 23, 2013 | ||||||||||||||||
| OpenSS7 SS7 for the Common Man |
| ||||||||||||||||
| Last modified: Sat, 01 Nov 2008 10:42:52 GMT © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. |