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.
482{
486
487#ifdef _WIN32
489 int proto_info_size = sizeof(proto_info);
491#ifndef __REACTOS__
493#endif
494 return 0;
495 }
496 len = proto_info.iMaxSockAddr;
498#else
501 return 0;
502 }
503#endif
505
508#ifndef __REACTOS__
510#endif
511 return 0;
512 }
513
514
515#ifdef AF_LOCAL
516 if (
ss.ss_family != AF_LOCAL) {
517#endif
522 else
523 return 0;
524#ifdef AF_LOCAL
525 } else
527#endif
528
532
533 return 1;
534}
GLuint GLuint GLsizei GLenum type
INT WSAAPI getsockname(IN SOCKET s, OUT LPSOCKADDR name, IN OUT INT FAR *namelen)
INT WSAAPI getsockopt(IN SOCKET s, IN INT level, IN INT optname, OUT CHAR FAR *optval, IN OUT INT FAR *optlen)
int PASCAL FAR WSAGetLastError(void)
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.
563{
566
568 return 0;
569
573
575 }
577}
int __rpc_nconf2sockinfo(const struct netconfig *nconf, struct __rpc_sockinfo *sip)
INT WSAAPI setsockopt(IN SOCKET s, IN INT level, IN INT optname, IN CONST CHAR FAR *optval, IN INT optlen)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
Referenced by clnt_tli_create(), and svc_tli_create().
◆ __rpc_nconf2sockinfo()
Definition at line 540 of file rpc_generic.c.
541{
543
553 return 0;
555 return 1;
556 }
557
558 return 0;
559}
int strcmp(const char *String1, const char *String2)
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 __rpc_seman2socktype(int semantics)
u_int __rpc_get_a_size(int af)
unsigned long nc_semantics
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.
164{
165#ifdef IPV6_PORTRANGE
166 int old;
167#endif
171#ifdef INET6
173#endif
174 int proto, portrange, portlow;
177#ifdef _WIN32
179 int proto_info_size = sizeof(proto_info);
180#endif
181
183 salen = sizeof(myaddr);
185
186#ifdef _WIN32
189#ifndef __REACTOS__
191#endif
192 return -1;
193 }
194 af = proto_info.iAddressFamily;
195#else
197 return -1;
198
201#endif
202 } else
204
205 switch (af) {
212 portp = &
sin->sin_port;
213 break;
214#ifdef INET6
216 proto = IPPROTO_IPV6;
217#ifdef IPV6_PORTRANGE
218 portrange = IPV6_PORTRANGE;
219 portlow = IPV6_PORTRANGE_LOW;
220#endif
224 break;
225#endif
226 default:
228 return (-1);
229 }
231
232#ifdef IPV6_PORTRANGE
233 if (*portp == 0) {
235
239
241 sizeof(portlow));
244 }
245#endif
246
249#ifndef __REACTOS__
251#endif
252 }
253
254#ifdef IPV6_PORTRANGE
255 if (*portp == 0) {
256 int saved_errno =
errno;
257
260 sizeof(old)) < 0)
263 }
264
266
270 }
271 }
272#endif
274}
static struct sockaddr_in sa
INT WSAAPI bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
Referenced by bindresvport(), and clnt_dg_create().
◆ callrpc()
◆ freenetbuf()
◆ freeuaddr()
◆ get_myaddress()
◆ getrpcport()
Definition at line 47 of file getrpcport.c.
50{
53
55
57 return (0);
64
67}
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
GLenum const GLvoid * addr
#define memcpy(s1, s2, n)
u_short pmap_getport(struct sockaddr_in *address, u_long program, u_long version, u_int protocol)
◆ registerrpc()
◆ taddr2uaddr()
◆ uaddr2taddr()