
/*
 * This file was generated by the SOM Compiler.
 * FileName: SOMSSOCK.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith.dll: 2.41
 */

/*
 * 
 *    COMPONENT_NAME: somu
 * 
 *    ORIGINS: 27
 * 
 * 
 *    10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
 *    All Rights Reserved
 *    Licensed Materials - Property of IBM
 *    US Government Users Restricted Rights - Use, duplication or
 *    disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
 * 
 */


#ifndef SOM_Sockets_h
#define SOM_Sockets_h


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))



/*
 * Define class data structures as resolution macros
 */
#define SocketsClassData (*resolve_SocketsClassData())
#define SocketsCClassData (*resolve_SocketsCClassData())

/*
 * Define the class name as an object type
 */
#ifndef Sockets
#define Sockets SOMObject
#endif
#include <somobj.h>

/*
 * Start of user-defined types:
 */
#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_Sockets_sockaddr
    #ifdef Sockets_sockaddr
        #undef Sockets_sockaddr
        #define SOMTGD_Sockets_sockaddr 1
    #else
        #define Sockets_sockaddr sockaddr
    #endif /* Sockets_sockaddr */
#endif /* SOMTGD_Sockets_sockaddr */
#endif /* SOM_DONT_USE_SHORT_NAMES */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_Sockets_iovec
    #ifdef Sockets_iovec
        #undef Sockets_iovec
        #define SOMTGD_Sockets_iovec 1
    #else
        #define Sockets_iovec iovec
    #endif /* Sockets_iovec */
#endif /* SOMTGD_Sockets_iovec */
#endif /* SOM_DONT_USE_SHORT_NAMES */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_Sockets_msghdr
    #ifdef Sockets_msghdr
        #undef Sockets_msghdr
        #define SOMTGD_Sockets_msghdr 1
    #else
        #define Sockets_msghdr msghdr
    #endif /* Sockets_msghdr */
#endif /* SOMTGD_Sockets_msghdr */
#endif /* SOM_DONT_USE_SHORT_NAMES */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_Sockets_fd_set
    #ifdef Sockets_fd_set
        #undef Sockets_fd_set
        #define SOMTGD_Sockets_fd_set 1
    #else
        #define Sockets_fd_set fd_set
    #endif /* Sockets_fd_set */
#endif /* SOMTGD_Sockets_fd_set */
#endif /* SOM_DONT_USE_SHORT_NAMES */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_Sockets_timeval
    #ifdef Sockets_timeval
        #undef Sockets_timeval
        #define SOMTGD_Sockets_timeval 1
    #else
        #define Sockets_timeval timeval
    #endif /* Sockets_timeval */
#endif /* SOMTGD_Sockets_timeval */
#endif /* SOM_DONT_USE_SHORT_NAMES */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_Sockets_hostent
    #ifdef Sockets_hostent
        #undef Sockets_hostent
        #define SOMTGD_Sockets_hostent 1
    #else
        #define Sockets_hostent hostent
    #endif /* Sockets_hostent */
#endif /* SOMTGD_Sockets_hostent */
#endif /* SOM_DONT_USE_SHORT_NAMES */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_Sockets_servent
    #ifdef Sockets_servent
        #undef Sockets_servent
        #define SOMTGD_Sockets_servent 1
    #else
        #define Sockets_servent servent
    #endif /* Sockets_servent */
#endif /* SOMTGD_Sockets_servent */
#endif /* SOM_DONT_USE_SHORT_NAMES */

#ifndef SOM_DONT_USE_SHORT_NAMES
#ifndef SOMTGD_Sockets_in_addr
    #ifdef Sockets_in_addr
        #undef Sockets_in_addr
        #define SOMTGD_Sockets_in_addr 1
    #else
        #define Sockets_in_addr in_addr
    #endif /* Sockets_in_addr */
#endif /* SOMTGD_Sockets_in_addr */
#endif /* SOM_DONT_USE_SHORT_NAMES */

/*
 * End of user-defined types.
 */

#define Sockets_MajorVersion 2
#define Sockets_MinorVersion 1

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define SocketsNewClass c
#define SocketsClassData d
#define SocketsCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */

/*
 * Include the meta class file
 */
#include <snglicls.h>
/*--------------Migration------------*/
#define Sockets_classObj SocketsClassData.classObject
#define _Sockets Sockets_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK SocketsNewClass(integer4 somntmajorVersion,
		integer4 somntminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct SocketsClassDataStructure {
	SOMClass *classObject;
	somMToken somsAccept;
	somMToken somsBind;
	somMToken somsConnect;
	somMToken somsGethostbyaddr;
	somMToken somsGethostbyname;
	somMToken somsGethostent;
	somMToken somsGethostid;
	somMToken somsGethostname;
	somMToken somsGetpeername;
	somMToken somsGetsockname;
	somMToken somsGetsockopt;
	somMToken somsHtonl;
	somMToken somsHtons;
	somMToken somsIoctl;
	somMToken somsInet_addr;
	somMToken somsInet_lnaof;
	somMToken somsInet_makeaddr;
	somMToken somsInet_netof;
	somMToken somsInet_network;
	somMToken somsInet_ntoa;
	somMToken somsListen;
	somMToken somsNtohl;
	somMToken somsNtohs;
	somMToken somsReadv;
	somMToken somsRecv;
	somMToken somsRecvfrom;
	somMToken somsRecvmsg;
	somMToken somsSelect;
	somMToken somsSend;
	somMToken somsSendmsg;
	somMToken somsSendto;
	somMToken somsSetsockopt;
	somMToken somsShutdown;
	somMToken somsSocket;
	somMToken somsSoclose;
	somMToken somsWritev;
	somMToken _set_serrno;
	somMToken _get_serrno;
	somMToken somsGetservbyname;
}  _SocketsClassData;
SOMEXTERN struct SocketsClassDataStructure * SOMLINK resolve_SocketsClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct SocketsCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _SocketsCClassData;
SOMEXTERN struct SocketsCClassDataStructure * SOMLINK resolve_SocketsCClassData(void);

/*
 * New and Renew macros for Sockets
 */
#define SocketsNew() \
   (_somNew(_Sockets ? _Sockets : SocketsNewClass(Sockets_MajorVersion, Sockets_MinorVersion)))
#define SocketsRenew(buf) \
   (_somRenew(_Sockets ? _Sockets : SocketsNewClass(Sockets_MajorVersion, Sockets_MinorVersion), buf))

/*
 * New Method: somsAccept
 */
typedef long   (SOMLINK * somTD_Sockets_somsAccept)(Sockets *somSelf, Environment *ev,
		long s,
		sockaddr* name,
		long* namelen);
#define somMD_Sockets_somsAccept "::Sockets::somsAccept"
#define Sockets_somsAccept(somSelf,ev,s,name,namelen) \
    (SOM_Resolve(somSelf, Sockets, somsAccept) \
	(somSelf,ev,s,name,namelen))
#ifndef SOMGD_somsAccept
    #if (defined(_somsAccept) || defined(__somsAccept))
        #undef _somsAccept
        #undef __somsAccept
        #define SOMGD_somsAccept 1
    #else
        #define _somsAccept Sockets_somsAccept
    #endif /* _somsAccept */
#endif /* SOMGD_somsAccept */

/*
 * New Method: somsBind
 */
typedef long   (SOMLINK * somTD_Sockets_somsBind)(Sockets *somSelf, Environment *ev,
		long s,
		sockaddr* name,
		long namelen);
#define somMD_Sockets_somsBind "::Sockets::somsBind"
#define Sockets_somsBind(somSelf,ev,s,name,namelen) \
    (SOM_Resolve(somSelf, Sockets, somsBind) \
	(somSelf,ev,s,name,namelen))
#ifndef SOMGD_somsBind
    #if (defined(_somsBind) || defined(__somsBind))
        #undef _somsBind
        #undef __somsBind
        #define SOMGD_somsBind 1
    #else
        #define _somsBind Sockets_somsBind
    #endif /* _somsBind */
#endif /* SOMGD_somsBind */

/*
 * New Method: somsConnect
 */
typedef long   (SOMLINK * somTD_Sockets_somsConnect)(Sockets *somSelf, Environment *ev,
		long s,
		sockaddr* name,
		long namelen);
#define somMD_Sockets_somsConnect "::Sockets::somsConnect"
#define Sockets_somsConnect(somSelf,ev,s,name,namelen) \
    (SOM_Resolve(somSelf, Sockets, somsConnect) \
	(somSelf,ev,s,name,namelen))
#ifndef SOMGD_somsConnect
    #if (defined(_somsConnect) || defined(__somsConnect))
        #undef _somsConnect
        #undef __somsConnect
        #define SOMGD_somsConnect 1
    #else
        #define _somsConnect Sockets_somsConnect
    #endif /* _somsConnect */
#endif /* SOMGD_somsConnect */

/*
 * New Method: somsGethostbyaddr
 */
typedef hostent*   (SOMLINK * somTD_Sockets_somsGethostbyaddr)(Sockets *somSelf, Environment *ev,
		char* addr,
		long addrlen,
		long domain);
#define somMD_Sockets_somsGethostbyaddr "::Sockets::somsGethostbyaddr"
#define Sockets_somsGethostbyaddr(somSelf,ev,addr,addrlen,domain) \
    (SOM_Resolve(somSelf, Sockets, somsGethostbyaddr) \
	(somSelf,ev,addr,addrlen,domain))
#ifndef SOMGD_somsGethostbyaddr
    #if (defined(_somsGethostbyaddr) || defined(__somsGethostbyaddr))
        #undef _somsGethostbyaddr
        #undef __somsGethostbyaddr
        #define SOMGD_somsGethostbyaddr 1
    #else
        #define _somsGethostbyaddr Sockets_somsGethostbyaddr
    #endif /* _somsGethostbyaddr */
#endif /* SOMGD_somsGethostbyaddr */

/*
 * New Method: somsGethostbyname
 */
typedef hostent*   (SOMLINK * somTD_Sockets_somsGethostbyname)(Sockets *somSelf, Environment *ev,
		string name);
#define somMD_Sockets_somsGethostbyname "::Sockets::somsGethostbyname"
#define Sockets_somsGethostbyname(somSelf,ev,name) \
    (SOM_Resolve(somSelf, Sockets, somsGethostbyname) \
	(somSelf,ev,name))
#ifndef SOMGD_somsGethostbyname
    #if (defined(_somsGethostbyname) || defined(__somsGethostbyname))
        #undef _somsGethostbyname
        #undef __somsGethostbyname
        #define SOMGD_somsGethostbyname 1
    #else
        #define _somsGethostbyname Sockets_somsGethostbyname
    #endif /* _somsGethostbyname */
#endif /* SOMGD_somsGethostbyname */

/*
 * New Method: somsGethostent
 */
typedef hostent*   (SOMLINK * somTD_Sockets_somsGethostent)(Sockets *somSelf, Environment *ev);
#define somMD_Sockets_somsGethostent "::Sockets::somsGethostent"
#define Sockets_somsGethostent(somSelf,ev) \
    (SOM_Resolve(somSelf, Sockets, somsGethostent) \
	(somSelf,ev))
#ifndef SOMGD_somsGethostent
    #if (defined(_somsGethostent) || defined(__somsGethostent))
        #undef _somsGethostent
        #undef __somsGethostent
        #define SOMGD_somsGethostent 1
    #else
        #define _somsGethostent Sockets_somsGethostent
    #endif /* _somsGethostent */
#endif /* SOMGD_somsGethostent */

/*
 * New Method: somsGethostid
 */
typedef unsigned long   (SOMLINK * somTD_Sockets_somsGethostid)(Sockets *somSelf, Environment *ev);
#define somMD_Sockets_somsGethostid "::Sockets::somsGethostid"
#define Sockets_somsGethostid(somSelf,ev) \
    (SOM_Resolve(somSelf, Sockets, somsGethostid) \
	(somSelf,ev))
#ifndef SOMGD_somsGethostid
    #if (defined(_somsGethostid) || defined(__somsGethostid))
        #undef _somsGethostid
        #undef __somsGethostid
        #define SOMGD_somsGethostid 1
    #else
        #define _somsGethostid Sockets_somsGethostid
    #endif /* _somsGethostid */
#endif /* SOMGD_somsGethostid */

/*
 * New Method: somsGethostname
 */
typedef long   (SOMLINK * somTD_Sockets_somsGethostname)(Sockets *somSelf, Environment *ev,
		string name,
		long namelength);
#define somMD_Sockets_somsGethostname "::Sockets::somsGethostname"
#define Sockets_somsGethostname(somSelf,ev,name,namelength) \
    (SOM_Resolve(somSelf, Sockets, somsGethostname) \
	(somSelf,ev,name,namelength))
#ifndef SOMGD_somsGethostname
    #if (defined(_somsGethostname) || defined(__somsGethostname))
        #undef _somsGethostname
        #undef __somsGethostname
        #define SOMGD_somsGethostname 1
    #else
        #define _somsGethostname Sockets_somsGethostname
    #endif /* _somsGethostname */
#endif /* SOMGD_somsGethostname */

/*
 * New Method: somsGetpeername
 */
typedef long   (SOMLINK * somTD_Sockets_somsGetpeername)(Sockets *somSelf, Environment *ev,
		long s,
		sockaddr* name,
		long* namelen);
#define somMD_Sockets_somsGetpeername "::Sockets::somsGetpeername"
#define Sockets_somsGetpeername(somSelf,ev,s,name,namelen) \
    (SOM_Resolve(somSelf, Sockets, somsGetpeername) \
	(somSelf,ev,s,name,namelen))
#ifndef SOMGD_somsGetpeername
    #if (defined(_somsGetpeername) || defined(__somsGetpeername))
        #undef _somsGetpeername
        #undef __somsGetpeername
        #define SOMGD_somsGetpeername 1
    #else
        #define _somsGetpeername Sockets_somsGetpeername
    #endif /* _somsGetpeername */
#endif /* SOMGD_somsGetpeername */

/*
 * New Method: somsGetservbyname
 */
typedef servent*   (SOMLINK * somTD_Sockets_somsGetservbyname)(Sockets *somSelf, Environment *ev,
		string name,
		string protocol);
#define somMD_Sockets_somsGetservbyname "::Sockets::somsGetservbyname"
#define Sockets_somsGetservbyname(somSelf,ev,name,protocol) \
    (SOM_Resolve(somSelf, Sockets, somsGetservbyname) \
	(somSelf,ev,name,protocol))
#ifndef SOMGD_somsGetservbyname
    #if (defined(_somsGetservbyname) || defined(__somsGetservbyname))
        #undef _somsGetservbyname
        #undef __somsGetservbyname
        #define SOMGD_somsGetservbyname 1
    #else
        #define _somsGetservbyname Sockets_somsGetservbyname
    #endif /* _somsGetservbyname */
#endif /* SOMGD_somsGetservbyname */

/*
 * New Method: somsGetsockname
 */
typedef long   (SOMLINK * somTD_Sockets_somsGetsockname)(Sockets *somSelf, Environment *ev,
		long s,
		sockaddr* name,
		long* namelen);
#define somMD_Sockets_somsGetsockname "::Sockets::somsGetsockname"
#define Sockets_somsGetsockname(somSelf,ev,s,name,namelen) \
    (SOM_Resolve(somSelf, Sockets, somsGetsockname) \
	(somSelf,ev,s,name,namelen))
#ifndef SOMGD_somsGetsockname
    #if (defined(_somsGetsockname) || defined(__somsGetsockname))
        #undef _somsGetsockname
        #undef __somsGetsockname
        #define SOMGD_somsGetsockname 1
    #else
        #define _somsGetsockname Sockets_somsGetsockname
    #endif /* _somsGetsockname */
#endif /* SOMGD_somsGetsockname */

/*
 * New Method: somsGetsockopt
 */
typedef long   (SOMLINK * somTD_Sockets_somsGetsockopt)(Sockets *somSelf, Environment *ev,
		long s,
		long level,
		long optname,
		char* optval,
		long* option);
#define somMD_Sockets_somsGetsockopt "::Sockets::somsGetsockopt"
#define Sockets_somsGetsockopt(somSelf,ev,s,level,optname,optval,option) \
    (SOM_Resolve(somSelf, Sockets, somsGetsockopt) \
	(somSelf,ev,s,level,optname,optval,option))
#ifndef SOMGD_somsGetsockopt
    #if (defined(_somsGetsockopt) || defined(__somsGetsockopt))
        #undef _somsGetsockopt
        #undef __somsGetsockopt
        #define SOMGD_somsGetsockopt 1
    #else
        #define _somsGetsockopt Sockets_somsGetsockopt
    #endif /* _somsGetsockopt */
#endif /* SOMGD_somsGetsockopt */

/*
 * New Method: somsHtonl
 */
typedef unsigned long   (SOMLINK * somTD_Sockets_somsHtonl)(Sockets *somSelf, Environment *ev,
		unsigned long a);
#define somMD_Sockets_somsHtonl "::Sockets::somsHtonl"
#define Sockets_somsHtonl(somSelf,ev,a) \
    (SOM_Resolve(somSelf, Sockets, somsHtonl) \
	(somSelf,ev,a))
#ifndef SOMGD_somsHtonl
    #if (defined(_somsHtonl) || defined(__somsHtonl))
        #undef _somsHtonl
        #undef __somsHtonl
        #define SOMGD_somsHtonl 1
    #else
        #define _somsHtonl Sockets_somsHtonl
    #endif /* _somsHtonl */
#endif /* SOMGD_somsHtonl */

/*
 * New Method: somsHtons
 */
typedef unsigned short   (SOMLINK * somTD_Sockets_somsHtons)(Sockets *somSelf, Environment *ev,
		unsigned short a);
#define somMD_Sockets_somsHtons "::Sockets::somsHtons"
#define Sockets_somsHtons(somSelf,ev,a) \
    (SOM_Resolve(somSelf, Sockets, somsHtons) \
	(somSelf,ev,a))
#ifndef SOMGD_somsHtons
    #if (defined(_somsHtons) || defined(__somsHtons))
        #undef _somsHtons
        #undef __somsHtons
        #define SOMGD_somsHtons 1
    #else
        #define _somsHtons Sockets_somsHtons
    #endif /* _somsHtons */
#endif /* SOMGD_somsHtons */

/*
 * New Method: somsIoctl
 */
typedef long   (SOMLINK * somTD_Sockets_somsIoctl)(Sockets *somSelf, Environment *ev,
		long s,
		long cmd,
		char* data,
		long length);
#define somMD_Sockets_somsIoctl "::Sockets::somsIoctl"
#define Sockets_somsIoctl(somSelf,ev,s,cmd,data,length) \
    (SOM_Resolve(somSelf, Sockets, somsIoctl) \
	(somSelf,ev,s,cmd,data,length))
#ifndef SOMGD_somsIoctl
    #if (defined(_somsIoctl) || defined(__somsIoctl))
        #undef _somsIoctl
        #undef __somsIoctl
        #define SOMGD_somsIoctl 1
    #else
        #define _somsIoctl Sockets_somsIoctl
    #endif /* _somsIoctl */
#endif /* SOMGD_somsIoctl */

/*
 * New Method: somsInet_addr
 */
typedef unsigned long   (SOMLINK * somTD_Sockets_somsInet_addr)(Sockets *somSelf, Environment *ev,
		string cp);
#define somMD_Sockets_somsInet_addr "::Sockets::somsInet_addr"
#define Sockets_somsInet_addr(somSelf,ev,cp) \
    (SOM_Resolve(somSelf, Sockets, somsInet_addr) \
	(somSelf,ev,cp))
#ifndef SOMGD_somsInet_addr
    #if (defined(_somsInet_addr) || defined(__somsInet_addr))
        #undef _somsInet_addr
        #undef __somsInet_addr
        #define SOMGD_somsInet_addr 1
    #else
        #define _somsInet_addr Sockets_somsInet_addr
    #endif /* _somsInet_addr */
#endif /* SOMGD_somsInet_addr */

/*
 * New Method: somsInet_lnaof
 */
typedef unsigned long   (SOMLINK * somTD_Sockets_somsInet_lnaof)(Sockets *somSelf, Environment *ev,
		in_addr* addr);
#define somMD_Sockets_somsInet_lnaof "::Sockets::somsInet_lnaof"
#define Sockets_somsInet_lnaof(somSelf,ev,addr) \
    (SOM_Resolve(somSelf, Sockets, somsInet_lnaof) \
	(somSelf,ev,addr))
#ifndef SOMGD_somsInet_lnaof
    #if (defined(_somsInet_lnaof) || defined(__somsInet_lnaof))
        #undef _somsInet_lnaof
        #undef __somsInet_lnaof
        #define SOMGD_somsInet_lnaof 1
    #else
        #define _somsInet_lnaof Sockets_somsInet_lnaof
    #endif /* _somsInet_lnaof */
#endif /* SOMGD_somsInet_lnaof */

/*
 * New Method: somsInet_makeaddr
 */
typedef in_addr   (SOMLINK * somTD_Sockets_somsInet_makeaddr)(Sockets *somSelf, Environment *ev,
		unsigned long net,
		unsigned long lna);
#define somMD_Sockets_somsInet_makeaddr "::Sockets::somsInet_makeaddr"
#define Sockets_somsInet_makeaddr(somSelf,ev,net,lna) \
    (SOM_Resolve(somSelf, Sockets, somsInet_makeaddr) \
	(somSelf,ev,net,lna))
#ifndef SOMGD_somsInet_makeaddr
    #if (defined(_somsInet_makeaddr) || defined(__somsInet_makeaddr))
        #undef _somsInet_makeaddr
        #undef __somsInet_makeaddr
        #define SOMGD_somsInet_makeaddr 1
    #else
        #define _somsInet_makeaddr Sockets_somsInet_makeaddr
    #endif /* _somsInet_makeaddr */
#endif /* SOMGD_somsInet_makeaddr */

/*
 * New Method: somsInet_netof
 */
typedef unsigned long   (SOMLINK * somTD_Sockets_somsInet_netof)(Sockets *somSelf, Environment *ev,
		in_addr* addr);
#define somMD_Sockets_somsInet_netof "::Sockets::somsInet_netof"
#define Sockets_somsInet_netof(somSelf,ev,addr) \
    (SOM_Resolve(somSelf, Sockets, somsInet_netof) \
	(somSelf,ev,addr))
#ifndef SOMGD_somsInet_netof
    #if (defined(_somsInet_netof) || defined(__somsInet_netof))
        #undef _somsInet_netof
        #undef __somsInet_netof
        #define SOMGD_somsInet_netof 1
    #else
        #define _somsInet_netof Sockets_somsInet_netof
    #endif /* _somsInet_netof */
#endif /* SOMGD_somsInet_netof */

/*
 * New Method: somsInet_network
 */
typedef unsigned long   (SOMLINK * somTD_Sockets_somsInet_network)(Sockets *somSelf, Environment *ev,
		string cp);
#define somMD_Sockets_somsInet_network "::Sockets::somsInet_network"
#define Sockets_somsInet_network(somSelf,ev,cp) \
    (SOM_Resolve(somSelf, Sockets, somsInet_network) \
	(somSelf,ev,cp))
#ifndef SOMGD_somsInet_network
    #if (defined(_somsInet_network) || defined(__somsInet_network))
        #undef _somsInet_network
        #undef __somsInet_network
        #define SOMGD_somsInet_network 1
    #else
        #define _somsInet_network Sockets_somsInet_network
    #endif /* _somsInet_network */
#endif /* SOMGD_somsInet_network */

/*
 * New Method: somsInet_ntoa
 */
typedef string   (SOMLINK * somTD_Sockets_somsInet_ntoa)(Sockets *somSelf, Environment *ev,
		in_addr* addr);
#define somMD_Sockets_somsInet_ntoa "::Sockets::somsInet_ntoa"
#define Sockets_somsInet_ntoa(somSelf,ev,addr) \
    (SOM_Resolve(somSelf, Sockets, somsInet_ntoa) \
	(somSelf,ev,addr))
#ifndef SOMGD_somsInet_ntoa
    #if (defined(_somsInet_ntoa) || defined(__somsInet_ntoa))
        #undef _somsInet_ntoa
        #undef __somsInet_ntoa
        #define SOMGD_somsInet_ntoa 1
    #else
        #define _somsInet_ntoa Sockets_somsInet_ntoa
    #endif /* _somsInet_ntoa */
#endif /* SOMGD_somsInet_ntoa */

/*
 * New Method: somsListen
 */
typedef long   (SOMLINK * somTD_Sockets_somsListen)(Sockets *somSelf, Environment *ev,
		long s,
		long backlog);
#define somMD_Sockets_somsListen "::Sockets::somsListen"
#define Sockets_somsListen(somSelf,ev,s,backlog) \
    (SOM_Resolve(somSelf, Sockets, somsListen) \
	(somSelf,ev,s,backlog))
#ifndef SOMGD_somsListen
    #if (defined(_somsListen) || defined(__somsListen))
        #undef _somsListen
        #undef __somsListen
        #define SOMGD_somsListen 1
    #else
        #define _somsListen Sockets_somsListen
    #endif /* _somsListen */
#endif /* SOMGD_somsListen */

/*
 * New Method: somsNtohl
 */
typedef unsigned long   (SOMLINK * somTD_Sockets_somsNtohl)(Sockets *somSelf, Environment *ev,
		unsigned long a);
#define somMD_Sockets_somsNtohl "::Sockets::somsNtohl"
#define Sockets_somsNtohl(somSelf,ev,a) \
    (SOM_Resolve(somSelf, Sockets, somsNtohl) \
	(somSelf,ev,a))
#ifndef SOMGD_somsNtohl
    #if (defined(_somsNtohl) || defined(__somsNtohl))
        #undef _somsNtohl
        #undef __somsNtohl
        #define SOMGD_somsNtohl 1
    #else
        #define _somsNtohl Sockets_somsNtohl
    #endif /* _somsNtohl */
#endif /* SOMGD_somsNtohl */

/*
 * New Method: somsNtohs
 */
typedef unsigned short   (SOMLINK * somTD_Sockets_somsNtohs)(Sockets *somSelf, Environment *ev,
		unsigned short a);
#define somMD_Sockets_somsNtohs "::Sockets::somsNtohs"
#define Sockets_somsNtohs(somSelf,ev,a) \
    (SOM_Resolve(somSelf, Sockets, somsNtohs) \
	(somSelf,ev,a))
#ifndef SOMGD_somsNtohs
    #if (defined(_somsNtohs) || defined(__somsNtohs))
        #undef _somsNtohs
        #undef __somsNtohs
        #define SOMGD_somsNtohs 1
    #else
        #define _somsNtohs Sockets_somsNtohs
    #endif /* _somsNtohs */
#endif /* SOMGD_somsNtohs */

/*
 * New Method: somsReadv
 */
typedef long   (SOMLINK * somTD_Sockets_somsReadv)(Sockets *somSelf, Environment *ev,
		long s,
		iovec* iov,
		long iovcnt);
#define somMD_Sockets_somsReadv "::Sockets::somsReadv"
#define Sockets_somsReadv(somSelf,ev,s,iov,iovcnt) \
    (SOM_Resolve(somSelf, Sockets, somsReadv) \
	(somSelf,ev,s,iov,iovcnt))
#ifndef SOMGD_somsReadv
    #if (defined(_somsReadv) || defined(__somsReadv))
        #undef _somsReadv
        #undef __somsReadv
        #define SOMGD_somsReadv 1
    #else
        #define _somsReadv Sockets_somsReadv
    #endif /* _somsReadv */
#endif /* SOMGD_somsReadv */

/*
 * New Method: somsRecv
 */
typedef long   (SOMLINK * somTD_Sockets_somsRecv)(Sockets *somSelf, Environment *ev,
		long s,
		char* buf,
		long len,
		long flags);
#define somMD_Sockets_somsRecv "::Sockets::somsRecv"
#define Sockets_somsRecv(somSelf,ev,s,buf,len,flags) \
    (SOM_Resolve(somSelf, Sockets, somsRecv) \
	(somSelf,ev,s,buf,len,flags))
#ifndef SOMGD_somsRecv
    #if (defined(_somsRecv) || defined(__somsRecv))
        #undef _somsRecv
        #undef __somsRecv
        #define SOMGD_somsRecv 1
    #else
        #define _somsRecv Sockets_somsRecv
    #endif /* _somsRecv */
#endif /* SOMGD_somsRecv */

/*
 * New Method: somsRecvfrom
 */
typedef long   (SOMLINK * somTD_Sockets_somsRecvfrom)(Sockets *somSelf, Environment *ev,
		long s,
		char* buf,
		long len,
		long flags,
		sockaddr* name,
		long* namelen);
#define somMD_Sockets_somsRecvfrom "::Sockets::somsRecvfrom"
#define Sockets_somsRecvfrom(somSelf,ev,s,buf,len,flags,name,namelen) \
    (SOM_Resolve(somSelf, Sockets, somsRecvfrom) \
	(somSelf,ev,s,buf,len,flags,name,namelen))
#ifndef SOMGD_somsRecvfrom
    #if (defined(_somsRecvfrom) || defined(__somsRecvfrom))
        #undef _somsRecvfrom
        #undef __somsRecvfrom
        #define SOMGD_somsRecvfrom 1
    #else
        #define _somsRecvfrom Sockets_somsRecvfrom
    #endif /* _somsRecvfrom */
#endif /* SOMGD_somsRecvfrom */

/*
 * New Method: somsRecvmsg
 */
typedef long   (SOMLINK * somTD_Sockets_somsRecvmsg)(Sockets *somSelf, Environment *ev,
		long s,
		msghdr* msg,
		long flags);
#define somMD_Sockets_somsRecvmsg "::Sockets::somsRecvmsg"
#define Sockets_somsRecvmsg(somSelf,ev,s,msg,flags) \
    (SOM_Resolve(somSelf, Sockets, somsRecvmsg) \
	(somSelf,ev,s,msg,flags))
#ifndef SOMGD_somsRecvmsg
    #if (defined(_somsRecvmsg) || defined(__somsRecvmsg))
        #undef _somsRecvmsg
        #undef __somsRecvmsg
        #define SOMGD_somsRecvmsg 1
    #else
        #define _somsRecvmsg Sockets_somsRecvmsg
    #endif /* _somsRecvmsg */
#endif /* SOMGD_somsRecvmsg */

/*
 * New Method: somsSelect
 */
typedef long   (SOMLINK * somTD_Sockets_somsSelect)(Sockets *somSelf, Environment *ev,
		long nfds,
		fd_set* readfds,
		fd_set* writefds,
		fd_set* exceptfds,
		timeval* timeout);
#define somMD_Sockets_somsSelect "::Sockets::somsSelect"
#define Sockets_somsSelect(somSelf,ev,nfds,readfds,writefds,exceptfds,timeout) \
    (SOM_Resolve(somSelf, Sockets, somsSelect) \
	(somSelf,ev,nfds,readfds,writefds,exceptfds,timeout))
#ifndef SOMGD_somsSelect
    #if (defined(_somsSelect) || defined(__somsSelect))
        #undef _somsSelect
        #undef __somsSelect
        #define SOMGD_somsSelect 1
    #else
        #define _somsSelect Sockets_somsSelect
    #endif /* _somsSelect */
#endif /* SOMGD_somsSelect */

/*
 * New Method: somsSend
 */
typedef long   (SOMLINK * somTD_Sockets_somsSend)(Sockets *somSelf, Environment *ev,
		long s,
		char* msg,
		long len,
		long flags);
#define somMD_Sockets_somsSend "::Sockets::somsSend"
#define Sockets_somsSend(somSelf,ev,s,msg,len,flags) \
    (SOM_Resolve(somSelf, Sockets, somsSend) \
	(somSelf,ev,s,msg,len,flags))
#ifndef SOMGD_somsSend
    #if (defined(_somsSend) || defined(__somsSend))
        #undef _somsSend
        #undef __somsSend
        #define SOMGD_somsSend 1
    #else
        #define _somsSend Sockets_somsSend
    #endif /* _somsSend */
#endif /* SOMGD_somsSend */

/*
 * New Method: somsSendmsg
 */
typedef long   (SOMLINK * somTD_Sockets_somsSendmsg)(Sockets *somSelf, Environment *ev,
		long s,
		msghdr* msg,
		long flags);
#define somMD_Sockets_somsSendmsg "::Sockets::somsSendmsg"
#define Sockets_somsSendmsg(somSelf,ev,s,msg,flags) \
    (SOM_Resolve(somSelf, Sockets, somsSendmsg) \
	(somSelf,ev,s,msg,flags))
#ifndef SOMGD_somsSendmsg
    #if (defined(_somsSendmsg) || defined(__somsSendmsg))
        #undef _somsSendmsg
        #undef __somsSendmsg
        #define SOMGD_somsSendmsg 1
    #else
        #define _somsSendmsg Sockets_somsSendmsg
    #endif /* _somsSendmsg */
#endif /* SOMGD_somsSendmsg */

/*
 * New Method: somsSendto
 */
typedef long   (SOMLINK * somTD_Sockets_somsSendto)(Sockets *somSelf, Environment *ev,
		long s,
		char* msg,
		long len,
		long flags,
		sockaddr* to,
		long tolen);
#define somMD_Sockets_somsSendto "::Sockets::somsSendto"
#define Sockets_somsSendto(somSelf,ev,s,msg,len,flags,to,tolen) \
    (SOM_Resolve(somSelf, Sockets, somsSendto) \
	(somSelf,ev,s,msg,len,flags,to,tolen))
#ifndef SOMGD_somsSendto
    #if (defined(_somsSendto) || defined(__somsSendto))
        #undef _somsSendto
        #undef __somsSendto
        #define SOMGD_somsSendto 1
    #else
        #define _somsSendto Sockets_somsSendto
    #endif /* _somsSendto */
#endif /* SOMGD_somsSendto */

/*
 * New Method: somsSetsockopt
 */
typedef long   (SOMLINK * somTD_Sockets_somsSetsockopt)(Sockets *somSelf, Environment *ev,
		long s,
		long level,
		long optname,
		char* optval,
		long optlen);
#define somMD_Sockets_somsSetsockopt "::Sockets::somsSetsockopt"
#define Sockets_somsSetsockopt(somSelf,ev,s,level,optname,optval,optlen) \
    (SOM_Resolve(somSelf, Sockets, somsSetsockopt) \
	(somSelf,ev,s,level,optname,optval,optlen))
#ifndef SOMGD_somsSetsockopt
    #if (defined(_somsSetsockopt) || defined(__somsSetsockopt))
        #undef _somsSetsockopt
        #undef __somsSetsockopt
        #define SOMGD_somsSetsockopt 1
    #else
        #define _somsSetsockopt Sockets_somsSetsockopt
    #endif /* _somsSetsockopt */
#endif /* SOMGD_somsSetsockopt */

/*
 * New Method: somsShutdown
 */
typedef long   (SOMLINK * somTD_Sockets_somsShutdown)(Sockets *somSelf, Environment *ev,
		long s,
		long how);
#define somMD_Sockets_somsShutdown "::Sockets::somsShutdown"
#define Sockets_somsShutdown(somSelf,ev,s,how) \
    (SOM_Resolve(somSelf, Sockets, somsShutdown) \
	(somSelf,ev,s,how))
#ifndef SOMGD_somsShutdown
    #if (defined(_somsShutdown) || defined(__somsShutdown))
        #undef _somsShutdown
        #undef __somsShutdown
        #define SOMGD_somsShutdown 1
    #else
        #define _somsShutdown Sockets_somsShutdown
    #endif /* _somsShutdown */
#endif /* SOMGD_somsShutdown */

/*
 * New Method: somsSocket
 */
typedef long   (SOMLINK * somTD_Sockets_somsSocket)(Sockets *somSelf, Environment *ev,
		long domain,
		long type,
		long protocol);
#define somMD_Sockets_somsSocket "::Sockets::somsSocket"
#define Sockets_somsSocket(somSelf,ev,domain,type,protocol) \
    (SOM_Resolve(somSelf, Sockets, somsSocket) \
	(somSelf,ev,domain,type,protocol))
#ifndef SOMGD_somsSocket
    #if (defined(_somsSocket) || defined(__somsSocket))
        #undef _somsSocket
        #undef __somsSocket
        #define SOMGD_somsSocket 1
    #else
        #define _somsSocket Sockets_somsSocket
    #endif /* _somsSocket */
#endif /* SOMGD_somsSocket */

/*
 * New Method: somsSoclose
 */
typedef long   (SOMLINK * somTD_Sockets_somsSoclose)(Sockets *somSelf, Environment *ev,
		long s);
#define somMD_Sockets_somsSoclose "::Sockets::somsSoclose"
#define Sockets_somsSoclose(somSelf,ev,s) \
    (SOM_Resolve(somSelf, Sockets, somsSoclose) \
	(somSelf,ev,s))
#ifndef SOMGD_somsSoclose
    #if (defined(_somsSoclose) || defined(__somsSoclose))
        #undef _somsSoclose
        #undef __somsSoclose
        #define SOMGD_somsSoclose 1
    #else
        #define _somsSoclose Sockets_somsSoclose
    #endif /* _somsSoclose */
#endif /* SOMGD_somsSoclose */

/*
 * New Method: somsWritev
 */
typedef long   (SOMLINK * somTD_Sockets_somsWritev)(Sockets *somSelf, Environment *ev,
		long s,
		iovec* iov,
		long iovcnt);
#define somMD_Sockets_somsWritev "::Sockets::somsWritev"
#define Sockets_somsWritev(somSelf,ev,s,iov,iovcnt) \
    (SOM_Resolve(somSelf, Sockets, somsWritev) \
	(somSelf,ev,s,iov,iovcnt))
#ifndef SOMGD_somsWritev
    #if (defined(_somsWritev) || defined(__somsWritev))
        #undef _somsWritev
        #undef __somsWritev
        #define SOMGD_somsWritev 1
    #else
        #define _somsWritev Sockets_somsWritev
    #endif /* _somsWritev */
#endif /* SOMGD_somsWritev */

/*
 * New Method: _get_serrno
 */
typedef long   (SOMLINK * somTD_Sockets__get_serrno)(Sockets *somSelf, Environment *ev);
#define somMD_Sockets__get_serrno "::Sockets::serrno"
#define Sockets__get_serrno(somSelf,ev) \
    (SOM_Resolve(somSelf, Sockets, _get_serrno) \
	(somSelf,ev))
#ifndef SOMGD_get_serrno
    #if (defined(_get_serrno) || defined(__get_serrno))
        #undef _get_serrno
        #undef __get_serrno
        #define SOMGD_get_serrno 1
    #else
        #define __get_serrno Sockets__get_serrno
    #endif /* __get_serrno */
#endif /* SOMGD_get_serrno */

/*
 * New Method: _set_serrno
 */
typedef void   (SOMLINK * somTD_Sockets__set_serrno)(Sockets *somSelf, Environment *ev,
		long serrno);
#define somMD_Sockets__set_serrno "::Sockets::serrno"
#define Sockets__set_serrno(somSelf,ev,serrno) \
    (SOM_Resolve(somSelf, Sockets, _set_serrno) \
	(somSelf,ev,serrno))
#ifndef SOMGD_set_serrno
    #if (defined(_set_serrno) || defined(__set_serrno))
        #undef _set_serrno
        #undef __set_serrno
        #define SOMGD_set_serrno 1
    #else
        #define __set_serrno Sockets__set_serrno
    #endif /* __set_serrno */
#endif /* SOMGD_set_serrno */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define Sockets_somDefaultInit SOMObject_somDefaultInit
#define Sockets_somDestruct SOMObject_somDestruct
#define Sockets_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define Sockets_somDefaultAssign SOMObject_somDefaultAssign
#define Sockets_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define Sockets_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define Sockets_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define Sockets_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define Sockets_somDefaultVAssign SOMObject_somDefaultVAssign
#define Sockets_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define Sockets_somInit SOMObject_somInit
#define Sockets_somFree SOMObject_somFree
#define Sockets_somUninit SOMObject_somUninit
#define Sockets_somGetClass SOMObject_somGetClass
#define Sockets_somGetClassName SOMObject_somGetClassName
#define Sockets_somGetSize SOMObject_somGetSize
#define Sockets_somIsA SOMObject_somIsA
#define Sockets_somIsInstanceOf SOMObject_somIsInstanceOf
#define Sockets_somRespondsTo SOMObject_somRespondsTo
#define Sockets_somDispatch SOMObject_somDispatch
#define Sockets_somClassDispatch SOMObject_somClassDispatch
#define Sockets_somCastObj SOMObject_somCastObj
#define Sockets_somResetObj SOMObject_somResetObj
#define Sockets_somDispatchV SOMObject_somDispatchV
#define Sockets_somDispatchL SOMObject_somDispatchL
#define Sockets_somDispatchA SOMObject_somDispatchA
#define Sockets_somDispatchD SOMObject_somDispatchD
#define Sockets_somPrintSelf SOMObject_somPrintSelf
#define Sockets_somDumpSelf SOMObject_somDumpSelf
#define Sockets_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_Sockets_h */
