/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1990-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* Glenn Fowler
* AT&T Research
*
* return the port number given its name
*/
#include "cslib.h"
#include <hashkey.h>
/*
* map <type,serv> to port number
* e points to chars after service name
*/
unsigned long
{
unsigned long n;
char* t;
return CS_PORT_RESERVED;
return CS_PORT_NORMAL;
if (t > serv && *t == '.')
strtol(t + 1, &t, 0);
if (*t)
{
{
#if CS_LIB_SOCKET || CS_LIB_V10
{
#if CS_LIB_V10
#endif
#if CS_LIB_SOCKET
#endif
}
#endif
{
return 1;
return 7;
return 9;
return 11;
return 13;
return 15;
return 17;
return 19;
return 21;
return 23;
return 25;
return 37;
return 39;
return 42;
return 43;
return 53;
return 57;
return 67;
return 68;
return 69;
return 70;
return 77;
return 79;
return 80;
return 87;
return 95;
return 101;
return 103;
return 111;
return 113;
return 115;
return 119;
return 121;
return 123;
return 143;
return 161;
return 402;
break;
return 512;
return 512;
return 512;
return 513;
return 513;
return 514;
return 514;
return 515;
return 517;
return 518;
return 520;
return 525;
return 526;
return 540;
}
}
return CS_PORT_INVALID;
}
return n;
}
unsigned long
{
}