Go to the source code of this file.
|
__BEGIN_DECLS int | get_myaddress (struct sockaddr_in *) |
|
int | bindresvport (SOCKET, struct sockaddr_in *) __THROW |
|
int | registerrpc (int, int, int, char *(*)(char [UDPMSGSIZE]), xdrproc_t, xdrproc_t) |
|
int | callrpc (const char *, int, int, int, xdrproc_t, void *, xdrproc_t, void *) |
|
int | getrpcport (char *, int, int, int) |
|
char * | taddr2uaddr (const struct netconfig *, const struct netbuf *) |
|
struct netbuf * | uaddr2taddr (const struct netconfig *, const char *) |
|
void | freeuaddr (char *) |
|
void | freenetbuf (struct netbuf *) |
|
int | bindresvport_sa (SOCKET, struct sockaddr *) |
|
__END_DECLS __BEGIN_DECLS SOCKET | __rpc_nconf2fd (const struct netconfig *) |
|
int | __rpc_nconf2sockinfo (const struct netconfig *, struct __rpc_sockinfo *) |
|
int | __rpc_fd2sockinfo (SOCKET, struct __rpc_sockinfo *) |
|
u_int | __rpc_get_t_size (int, int, int) |
|
◆ UDPMSGSIZE
Definition at line 80 of file rpc.h.
◆ __rpc_fd2sockinfo()
Definition at line 481 of file rpc_generic.c.
489 int proto_info_size =
sizeof(proto_info);
496 len = proto_info.iMaxSockAddr;
516 if (
ss.ss_family != AF_LOCAL) {
529 sip->si_af =
ss.ss_family;
530 sip->si_proto =
proto;
531 sip->si_socktype =
type;
INT WSAAPI WSAGetLastError(VOID)
INT WSAAPI getsockopt(IN SOCKET s, IN INT level, IN INT optname, OUT CHAR FAR *optval, IN OUT INT FAR *optlen)
GLuint GLuint GLsizei GLenum type
INT WSAAPI getsockname(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
Referenced by __rpcgettp(), clnt_dg_create(), clnt_tli_create(), clnt_vc_create(), makefd_xprt(), rendezvous_request(), rpc_reg(), svc_dg_create(), svc_tli_create(), and svc_vc_create().
◆ __rpc_get_t_size()
◆ __rpc_nconf2fd()
Definition at line 562 of file rpc_generic.c.
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
INT WSAAPI setsockopt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen)
int __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip)
Referenced by clnt_tli_create(), and svc_tli_create().
◆ __rpc_nconf2sockinfo()
Definition at line 540 of file rpc_generic.c.
546 strcmp(nconf->nc_netid,
"unix") == 0 &&
549 sip->si_proto =
na_cvt[
i].protocol;
552 if (sip->si_socktype == -1)
int __rpc_seman2socktype(int semantics)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static const struct netid_af na_cvt[]
int strcmp(const char *String1, const char *String2)
u_int __rpc_get_a_size(int af)
Referenced by __rpc_nconf2fd(), getclnthandle(), rpc_broadcast_exp(), svc_tli_create(), taddr2uaddr(), and uaddr2taddr().
◆ bindresvport()
◆ bindresvport_sa()
Definition at line 161 of file bindresvport.c.
165 #ifdef IPV6_PORTRANGE 174 int proto, portrange, portlow;
179 int proto_info_size =
sizeof(proto_info);
183 salen =
sizeof(myaddr);
194 af = proto_info.iAddressFamily;
212 portp = &
sin->sin_port;
216 proto = IPPROTO_IPV6;
217 #ifdef IPV6_PORTRANGE 218 portrange = IPV6_PORTRANGE;
219 portlow = IPV6_PORTRANGE_LOW;
232 #ifdef IPV6_PORTRANGE 254 #ifdef IPV6_PORTRANGE 256 int saved_errno =
errno;
INT WSAAPI bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
INT WSAAPI setsockopt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen)
INT WSAAPI WSAGetLastError(VOID)
INT WSAAPI getsockopt(IN SOCKET s, IN INT level, IN INT optname, OUT CHAR FAR *optval, IN OUT INT FAR *optlen)
_STLP_DECLSPEC complex< float > _STLP_CALL sin(const complex< float > &)
INT WSAAPI getsockname(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
static struct sockaddr_in sa
Referenced by bindresvport(), and clnt_dg_create().
◆ callrpc()
◆ freenetbuf()
◆ freeuaddr()
◆ get_myaddress()
◆ getrpcport()
Definition at line 47 of file getrpcport.c.
u_short pmap_getport(struct sockaddr_in *address, u_long program, u_long version, u_int protocol)
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
GLenum const GLvoid * addr
#define memcpy(s1, s2, n)
◆ registerrpc()
◆ taddr2uaddr()
◆ uaddr2taddr()