Searched refs:socktype (Results 1 - 25 of 39) sorted by relevance

12

/macosx-10.10.1/Heimdal-398.1.2/lib/roken/
H A Dgetaddrinfo.c47 int *socktype)
52 *socktype = 0;
65 *socktype = hints->ai_socktype;
67 if (*socktype == SOCK_STREAM) {
71 } else if (*socktype == SOCK_DGRAM) {
75 } else if (*socktype == 0) {
81 *socktype = SOCK_STREAM;
85 *socktype = SOCK_DGRAM;
104 add_one (int port, int protocol, int socktype, argument
120 a->ai_socktype = socktype;
43 get_port_protocol_socktype(const char *servname, const struct addrinfo *hints, int *port, int *protocol, int *socktype) argument
180 get_null(const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument
223 add_hostent(int port, int protocol, int socktype, struct addrinfo ***current, int (*func)(struct addrinfo *, void *data, int port), struct hostent *he, int *flags) argument
271 get_number(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument
311 get_nodes(const char *nodename, const struct addrinfo *hints, int port, int protocol, int socktype, struct addrinfo **res) argument
377 int socktype = 0; local
[all...]
H A Dgetaddrinfo_hostspec.c42 int socktype,
54 int socktype; member in struct:hst
67 hints.ai_socktype = socktype;
71 hints.ai_socktype = hstp->socktype;
41 roken_getaddrinfo_hostspec2(const char *hostspec, int socktype, int port, struct addrinfo **ai) argument
H A Dgetaddrinfo-test.c41 static int socktype; variable
51 {"socktype",0, arg_integer, &socktype, "socktype", NULL},
79 hints.ai_socktype = socktype;
99 printf ("\tfamily = %d, socktype = %d, protocol = %d, "
/macosx-10.10.1/MITKerberosShim-66/Kerberos/
H A Dlocate_plugin.h55 int socktype, int family,
/macosx-10.10.1/MITKerberosShim-66/mit-include/krb5/
H A Dlocate_plugin.h55 int socktype, int family,
/macosx-10.10.1/passwordserver_sasl-193/cyrus_sasl/lib/
H A Dgetaddrinfo.c93 malloc_ai(int port, unsigned long addr, int socktype, int proto) argument
110 ai->ai_socktype = socktype;
155 int i, port = 0, socktype, proto; local
160 socktype = (hints && hints->ai_socktype) ? hints->ai_socktype
165 switch (socktype) {
184 switch (socktype) {
203 *res = malloc_ai(port, htonl(0x00000000), socktype, proto);
205 *res = malloc_ai(port, htonl(0x7f000001), socktype, proto);
217 *res = malloc_ai(port, in.s_addr, socktype, proto);
232 socktype, prot
[all...]
/macosx-10.10.1/passwordserver_sasl-193/cyrus_sasl/saslauthd/
H A Dgetaddrinfo.c69 malloc_ai(int port, u_long addr, int socktype, int proto) argument
86 ai->ai_socktype = socktype;
131 int i, port = 0, socktype, proto; local
136 socktype = (hints && hints->ai_socktype) ? hints->ai_socktype
141 switch (socktype) {
160 switch (socktype) {
178 *res = malloc_ai(port, htonl(0x00000000), socktype, proto);
180 *res = malloc_ai(port, htonl(0x7f000001), socktype, proto);
187 *res = malloc_ai(port, in.s_addr, socktype, proto);
201 socktype, prot
[all...]
/macosx-10.10.1/network_cmds-457/netstat.tproj/
H A Dunix.c88 static const char *const socktype[] = variable
110 snprintf(mibvar, sizeof(mibvar), "net.local.%s.pcblist64", socktype[type]);
112 snprintf(mibvar, sizeof(mibvar), "net.local.%s.pcblist", socktype[type]);
153 socktype[type]);
156 socktype[type]);
159 socktype[type]);
206 (long)xunp->xu_unpp, socktype[so->so_type], so->so_rcv.sb_cc,
212 (long)so->so_pcb, socktype[so->so_type], so->so_rcv.sb_cc,
/macosx-10.10.1/postfix-255/postfix/src/util/
H A Dmyaddrinfo.c19 /* int hostname_to_sockaddr(hostname, service, socktype, result)
22 /* int socktype;
25 /* int hostname_to_sockaddr_pf(hostname, pf, service, socktype, result)
29 /* int socktype;
32 /* int hostaddr_to_sockaddr(hostaddr, service, socktype, result)
35 /* int socktype;
38 /* int sockaddr_to_hostaddr(sa, salen, hostaddr, portnum, socktype)
43 /* int socktype;
45 /* int sockaddr_to_hostname(sa, salen, hostname, service, socktype)
50 /* int socktype;
244 init_ipv4addrinfo(struct ipv4addrinfo * ip, int socktype) argument
267 find_service(const char *service, int socktype) argument
295 hostname_to_sockaddr_pf(const char *hostname, int pf, const char *service, int socktype, struct addrinfo ** res) argument
464 hostaddr_to_sockaddr(const char *hostaddr, const char *service, int socktype, struct addrinfo ** res) argument
631 sockaddr_to_hostname(const struct sockaddr * sa, SOCKADDR_SIZE salen, MAI_HOSTNAME_STR *hostname, MAI_SERVNAME_STR *service, int socktype) argument
[all...]
/macosx-10.10.1/bind9-45.101/bind9/lib/lwres/
H A Dgetaddrinfo.c157 static int get_local(const char *name, int socktype, struct addrinfo **res);
161 int socktype, int port);
163 int socktype, int port);
179 int family, socktype, flags, protocol; local
198 socktype = hints->ai_socktype;
249 socktype = 0;
262 return (get_local(hostname, socktype, res));
266 return (get_local(servname, socktype, res));
284 if (socktype == 0)
294 if (socktype
560 add_ipv4(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
627 add_ipv6(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
710 get_local(const char *name, int socktype, struct addrinfo **res) argument
[all...]
/macosx-10.10.1/ruby-106/ruby/ext/socket/
H A Draddrinfo.c379 rsock_addrinfo(VALUE host, VALUE port, int socktype, int flags) argument
385 hints.ai_socktype = socktype;
547 int socktype; member in struct:__anon12158
613 int pfamily, int socktype, int protocol,
622 rai->socktype = socktype;
630 int family, int socktype, int protocol,
638 init_addrinfo(rai, addr, len, family, socktype, protocol, canonname, inspectname);
644 VALUE family, VALUE socktype, VALUE protocol, VALUE flags,
652 if (!NIL_P(socktype)) {
612 init_addrinfo(rb_addrinfo_t *rai, struct sockaddr *sa, socklen_t len, int pfamily, int socktype, int protocol, VALUE canonname, VALUE inspectname) argument
629 rsock_addrinfo_new(struct sockaddr *addr, socklen_t len, int family, int socktype, int protocol, VALUE canonname, VALUE inspectname) argument
643 call_getaddrinfo(VALUE node, VALUE service, VALUE family, VALUE socktype, VALUE protocol, VALUE flags, int socktype_hack) argument
671 init_addrinfo_getaddrinfo(rb_addrinfo_t *rai, VALUE node, VALUE service, VALUE family, VALUE socktype, VALUE protocol, VALUE flags, VALUE inspectnode, VALUE inspectservice) argument
739 addrinfo_firstonly_new(VALUE node, VALUE service, VALUE family, VALUE socktype, VALUE protocol, VALUE flags) argument
764 addrinfo_list_new(VALUE node, VALUE service, VALUE family, VALUE socktype, VALUE protocol, VALUE flags) argument
798 init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path, int socktype) argument
871 VALUE sockaddr_arg, sockaddr_ary, pfamily, socktype, protocol; local
1187 VALUE sockaddr, afamily, pfamily, socktype, protocol, canonname, inspectname; local
1265 int afamily, pfamily, socktype, protocol; local
2040 VALUE node, service, family, socktype, protocol, flags; local
2118 int socktype; local
2167 int socktype; local
[all...]
H A Drubysocket.h227 struct addrinfo *rsock_addrinfo(VALUE host, VALUE port, int socktype, int flags);
232 VALUE rsock_addrinfo_new(struct sockaddr *addr, socklen_t len, int family, int socktype, int protocol, VALUE canonname, VALUE inspectname);
/macosx-10.10.1/ntp-92/libntp/
H A Dntp_rfc2553.c144 int family, socktype, flags, protocol; local
167 socktype = hints->ai_socktype;
219 socktype = 0;
239 if (socktype == 0)
249 if (socktype == 0) {
251 socktype = SOCK_STREAM;
253 socktype = SOCK_DGRAM;
/macosx-10.10.1/bind9-45.101/bind9/lib/irs/
H A Dgetaddrinfo.c167 static int get_local(const char *name, int socktype, struct addrinfo **res);
172 struct addrinfo **aip, int socktype, int port);
175 int socktype, int port);
177 int socktype, int port);
196 int family, socktype, flags, protocol; local
216 socktype = hints->ai_socktype;
267 socktype = 0;
280 return (get_local(hostname, socktype, res));
284 return (get_local(servname, socktype, res));
302 if (socktype
890 resolve_name(int family, const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
1112 add_ipv4(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
1137 add_ipv6(const char *hostname, int flags, struct addrinfo **aip, int socktype, int port) argument
1177 get_local(const char *name, int socktype, struct addrinfo **res) argument
[all...]
/macosx-10.10.1/postfix-255/postfix/src/postscreen/
H A Dpostscreen_endpt.c93 int socktype)
98 addr_buf, port_buf, socktype)) == 0
89 psc_sockaddr_to_hostaddr(struct sockaddr * addr_storage, SOCKADDR_SIZE addr_storage_len, MAI_HOSTADDR_STR *addr_buf, MAI_SERVPORT_STR *port_buf, int socktype) argument
/macosx-10.10.1/ruby-106/ruby/ext/socket/lib/
H A Dsocket.rb21 (self.socktype != addrinfo.socktype)
28 Addrinfo.getaddrinfo(host, port, self.pfamily, self.socktype, self.protocol)[0]
48 sock = Socket.new(self.pfamily, self.socktype, self.protocol)
180 sock = Socket.new(self.pfamily, self.socktype, self.protocol)
202 sock = Socket.new(self.pfamily, self.socktype, self.protocol)
231 def self.foreach(nodename, service, family=nil, socktype=nil, protocol=nil, flags=nil, &block)
232 Addrinfo.getaddrinfo(nodename, service, family, socktype, protocol, flags).each(&block)
262 addr = Addrinfo.new(["AF_INET", addr.ip_port, nil, "127.0.0.1"], addr.pfamily, addr.socktype, addr.protocol)
267 addr = Addrinfo.new(["AF_INET6", addr.ip_port, nil, "::1"], addr.pfamily, addr.socktype, add
[all...]
/macosx-10.10.1/KerberosHelper-151/Source/
H A DLKDC-lookup-plugin.m88 int socktype,
111 debug("svc = %d, realm = %s, family= %d, socktype = %d", svc, realm, family, socktype);
137 aiHints.ai_socktype = socktype;
150 debug("0x%08p: family = %d, socktype = %d, protocol = %d", res, res->ai_family, res->ai_socktype, res->ai_protocol);
/macosx-10.10.1/ruby-106/ruby/test/socket/
H A Dtest_addrinfo.rb28 assert_equal(0, ai.socktype)
37 assert_equal(Socket::SOCK_STREAM, ai.socktype)
46 assert_equal(Socket::SOCK_DGRAM, ai.socktype)
67 assert_equal(0, ai.socktype)
191 assert_equal(Socket::SOCK_DGRAM, s1.local_address.socktype)
206 assert_equal(Socket::SOCK_STREAM, s3.remote_address.socktype)
321 assert_equal(Socket::SOCK_STREAM, ai.socktype)
325 assert_equal(Socket::SOCK_STREAM, ai.socktype)
466 assert_equal(ai1.socktype, ai2.socktype)
[all...]
/macosx-10.10.1/curl-83.1.2/curl/lib/
H A Dconnect.h83 int socktype; member in struct:Curl_sockaddr_ex
H A Dhostip6.c200 hints.ai_socktype = conn->socktype;
H A Dconnect.c665 if(conn->socktype == SOCK_DGRAM)
1060 if(!isconnected && (conn->socktype == SOCK_STREAM)) {
1285 addr->socktype = conn->socktype;
1286 addr->protocol = conn->socktype==SOCK_DGRAM?IPPROTO_UDP:ai->ai_protocol;
1308 *sockfd = socket(addr->family, addr->socktype, addr->protocol);
/macosx-10.10.1/Libinfo-459/lookup.subproj/
H A Dsi_getaddrinfo.c519 si_addrinfo_list(si_mod_t *si, uint32_t flags, int socktype, int proto, struct in_addr *a4, struct in6_addr *a6, int port, int scopeid, const char *cname4, const char *cname6) argument
714 si_addrinfo_list_from_hostent(si_mod_t *si, uint32_t flags, uint32_t socktype, uint32_t proto, uint16_t port, uint16_t scope, const struct hostent *h4, const struct hostent *h6) argument
726 list = si_addrinfo_list(si, flags, socktype, proto, NULL, &a6, port, scope, NULL, h6->h_name);
738 list = si_addrinfo_list(si, flags, socktype, proto, &a4, NULL, port, 0, h4->h_name, NULL);
849 _gai_simple(si_mod_t *si, const void *nodeptr, const void *servptr, uint32_t family, uint32_t socktype, uint32_t proto, uint32_t flags, const char *interface, uint32_t *err) argument
903 out = si_addrinfo_list_from_hostent(si, flags, socktype, proto, port, 0, h4, h6);
930 _gai_srv(si_mod_t *si, const char *node, const char *serv, uint32_t family, uint32_t socktype, uint32_t proto, uint32_t flags, const char *interface, uint32_t *err) argument
993 result = _gai_simple(si, srv->target, &srv->port, family, socktype, proto, flags, interface, err);
1011 si_addrinfo(si_mod_t *si, const char *node, const char *serv, uint32_t family, uint32_t socktype, uint32_t proto, uint32_t flags, const char *interface, uint32_t *err) argument
1054 switch (socktype)
[all...]
H A Dsi_module.h259 si_list_t *(*sim_addrinfo)(struct si_mod_s *si, const void *node, const void *serv, uint32_t family, uint32_t socktype, uint32_t protocol, uint32_t flags, const char *interface, uint32_t *err);
347 si_list_t *si_addrinfo(si_mod_t *si, const char *node, const char *serv, uint32_t family, uint32_t socktype, uint32_t protocol, uint32_t flags, const char *interface, uint32_t *err);
365 si_list_t *si_addrinfo_list(si_mod_t *si, uint32_t flags, int socktype, int proto, struct in_addr *a4, struct in6_addr *a6, int port, int scopeid, const char *cname4, const char *cname6);
366 si_list_t *si_addrinfo_list_from_hostent(si_mod_t *si, uint32_t flags, uint32_t socktype, uint32_t proto, uint16_t port, uint16_t scope, const struct hostent *h4, const struct hostent *h6);
369 si_list_t *_gai_simple(si_mod_t *si, const void *nodeptr, const void *servptr, uint32_t family, uint32_t socktype, uint32_t proto, uint32_t flags, const char *interface, uint32_t *err);
/macosx-10.10.1/curl-83.1.2/curl/tests/libtest/
H A Dlib500.c38 return socket(addr->family, addr->socktype, addr->protocol);
/macosx-10.10.1/OpenLDAP-499.27/OpenLDAP/libraries/libldap/
H A Dos-ip.c546 int socktype, port; local
580 case LDAP_PROTO_TCP: socktype = SOCK_STREAM;
585 case LDAP_PROTO_UDP: socktype = SOCK_DGRAM;
603 hints.ai_socktype = socktype;
628 s = ldap_int_socket( ld, sai->ai_family, socktype );
696 s = ldap_int_socket( ld, PF_INET, socktype );

Completed in 312 milliseconds

12