Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 2133) sorted by relevance

12345678910>>...86

/external/libevent/
Devent_iocp.c65 struct event_iocp_port *port = _port; in loop() local
66 long ms = port->ms; in loop()
67 HANDLE p = port->port; in loop()
78 EnterCriticalSection(&port->lock); in loop()
79 if (port->shutdown) { in loop()
80 if (--port->n_live_threads == 0) in loop()
81 ReleaseSemaphore(port->shutdownSemaphore, 1, in loop()
83 LeaveCriticalSection(&port->lock); in loop()
86 LeaveCriticalSection(&port->lock); in loop()
94 EnterCriticalSection(&port->lock); in loop()
[all …]
/external/selinux/libsepol/src/
Dport_record.c63 const sepol_port_t * port, in hidden_def()
68 (handle, port->low, port->high, port->proto, key_ptr) < 0) { in hidden_def()
71 sepol_port_get_proto_str(port->proto), in hidden_def()
72 port->low, port->high); in hidden_def()
85 int sepol_port_compare(const sepol_port_t * port, const sepol_port_key_t * key) in sepol_port_compare() argument
88 if ((port->low == key->low) && in sepol_port_compare()
89 (port->high == key->high) && (port->proto == key->proto)) in sepol_port_compare()
92 if (port->low < key->low) in sepol_port_compare()
95 else if (key->low < port->low) in sepol_port_compare()
98 else if (port->high < key->high) in sepol_port_compare()
[all …]
Dports.c43 ocontext_t ** port, const sepol_port_t * data) in port_from_record() argument
62 tmp_port->u.port.protocol = tmp_proto; in port_from_record()
65 tmp_port->u.port.low_port = low; in port_from_record()
66 tmp_port->u.port.high_port = high; in port_from_record()
67 if (tmp_port->u.port.low_port > tmp_port->u.port.high_port) { in port_from_record()
69 tmp_port->u.port.low_port, tmp_port->u.port.high_port); in port_from_record()
82 *port = tmp_port; in port_from_record()
102 ocontext_t * port, sepol_port_t ** record) in port_to_record() argument
105 int proto = port->u.port.protocol; in port_to_record()
106 int low = port->u.port.low_port; in port_to_record()
[all …]
/external/autotest/client/site_tests/usbpd_GFU/
Dusbpd_GFU.py65 def _is_gfu(self, port): argument
72 return port.is_amode_supported(self.GOOGLE_VID)
74 def _is_in_rw(self, port): argument
81 flash_info = port.get_flash_info()
95 def _modify_rw(self, port, rw=None, tries=3): argument
117 port.ec_command('flashpd 0 %d %s' % (port.index, rw),
126 if rw != '/dev/null' and not self._is_in_rw(port):
128 port.index)
135 msg = self._reader.get_last_msg([r'%s.*is in RO' % port.index,
140 port.index)
[all …]
/external/selinux/libsemanage/src/
Dport_record.c27 int semanage_port_compare(const semanage_port_t * port, in semanage_port_compare() argument
31 return sepol_port_compare(port, key); in semanage_port_compare()
36 int semanage_port_compare2(const semanage_port_t * port, in hidden_def()
40 return sepol_port_compare2(port, port2); in hidden_def()
45 hidden int semanage_port_compare2_qsort(const semanage_port_t ** port, in hidden_def()
49 return sepol_port_compare2(*port, *port2); in hidden_def()
61 const semanage_port_t * port, in semanage_port_key_extract() argument
65 return sepol_port_key_extract(handle->sepolh, port, key_ptr); in semanage_port_key_extract()
79 int semanage_port_get_proto(const semanage_port_t * port) in hidden_def()
82 return sepol_port_get_proto(port); in hidden_def()
[all …]
/external/nist-sip/java/gov/nist/core/net/
DDefaultNetworkLayer.java69 public ServerSocket createServerSocket(int port, int backlog, in createServerSocket() argument
71 return new ServerSocket(port, backlog, bindAddress); in createServerSocket()
74 public Socket createSocket(InetAddress address, int port) in createSocket() argument
76 return new Socket(address, port); in createSocket()
83 public DatagramSocket createDatagramSocket(int port, InetAddress laddr) in createDatagramSocket() argument
88 MulticastSocket ds = new MulticastSocket( port ); in createDatagramSocket()
94 } else return new DatagramSocket(port, laddr); in createDatagramSocket()
98 public SSLServerSocket createSSLServerSocket(int port, int backlog, in createSSLServerSocket() argument
101 port, backlog, bindAddress); in createSSLServerSocket()
105 public SSLSocket createSSLSocket(InetAddress address, int port) in createSSLSocket() argument
[all …]
DSslNetworkLayer.java88 public ServerSocket createServerSocket(int port, int backlog, in createServerSocket() argument
90 return new ServerSocket(port, backlog, bindAddress); in createServerSocket()
93 public Socket createSocket(InetAddress address, int port) in createSocket() argument
95 return new Socket(address, port); in createSocket()
102 public DatagramSocket createDatagramSocket(int port, InetAddress laddr) in createDatagramSocket() argument
104 return new DatagramSocket(port, laddr); in createDatagramSocket()
108 public SSLServerSocket createSSLServerSocket(int port, int backlog, in createSSLServerSocket() argument
111 port, backlog, bindAddress); in createSSLServerSocket()
115 public SSLSocket createSSLSocket(InetAddress address, int port) in createSSLSocket() argument
117 return (SSLSocket) sslSocketFactory.createSocket(address, port); in createSSLSocket()
[all …]
/external/autotest/server/cros/servo/
Dpd_console.py106 def execute_pd_state_cmd(self, port): argument
119 pd_cmd = cmd +" " + str(port) + " " + subcmd
135 def get_pd_state(self, port): argument
142 pd_dict = self.execute_pd_state_cmd(port)
145 def get_pd_port(self, port): argument
151 pd_dict = self.execute_pd_state_cmd(port)
154 def get_pd_role(self, port): argument
160 pd_dict = self.execute_pd_state_cmd(port)
163 def get_pd_flags(self, port): argument
169 pd_dict = self.execute_pd_state_cmd(port)
[all …]
/external/tcpdump/tests/
Dmstp-v.out2 port-role Root, CIST root-id 0000.00:1f:27:b4:7d:80, CIST ext-pathcost 200000
3 CIST regional-root-id 8000.00:16:46:b5:8c:80, CIST port-id 8012,
8 MSTI 1, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Designated
10 MSTI bridge-prio 6, port-prio 8, hops 20
11 MSTI 2, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Root
13 MSTI bridge-prio 8, port-prio 8, hops 20
15 port-role Designated, CIST root-id 0000.00:1f:27:b4:7d:80, CIST ext-pathcost 200000
16 CIST regional-root-id 8000.00:16:46:b5:8c:80, CIST port-id 800f,
21 MSTI 1, Flags [Learn, Forward, Agreement, Topology change ACK], port-role Root
23 MSTI bridge-prio 8, port-prio 8, hops 20
[all …]
/external/jmdns/src/javax/jmdns/
DServiceInfo.java79 …public static ServiceInfo create(final String type, final String name, final int port, final Strin… in create() argument
80 return new ServiceInfoImpl(type, name, "", port, 0, 0, false, text); in create()
98 …ate(final String type, final String name, final String subtype, final int port, final String text)… in create() argument
99 return new ServiceInfoImpl(type, name, subtype, port, 0, 0, false, text); in create()
119 …public static ServiceInfo create(final String type, final String name, final int port, final int w… in create() argument
120 return new ServiceInfoImpl(type, name, "", port, weight, priority, false, text); in create()
142 …ate(final String type, final String name, final String subtype, final int port, final int weight, … in create() argument
143 return new ServiceInfoImpl(type, name, subtype, port, weight, priority, false, text); in create()
163 …public static ServiceInfo create(final String type, final String name, final int port, final int w… in create() argument
164 return new ServiceInfoImpl(type, name, "", port, weight, priority, false, props); in create()
[all …]
/external/autotest/client/tests/kvm/tests/
Dvirtio_console.py279 def __init__(self, port, data, event, quiet=False): argument
287 self.port = port
303 self.idx += self.port.send(self.data)
316 def __init__(self, port, event, queues, blocklen=1024): argument
324 self.port = port
346 ret = select.select([], [self.port.sock], [], 1.0)
359 idx = self.port.sock.send(buf)
369 self.port.is_open = False
370 self.port.open()
372 idx = self.port.sock.send(buf)
[all …]
/external/guava/guava/src/com/google/common/net/
DHostAndPort.java75 private final int port; field in HostAndPort
80 private HostAndPort(String host, int port, boolean hasBracketlessColons) { in HostAndPort() argument
82 this.port = port; in HostAndPort()
99 return port >= 0; in hasPort()
111 return port; in getPort()
118 return hasPort() ? port : defaultPort; in getPortOrDefault()
133 public static HostAndPort fromParts(String host, int port) { in fromParts() argument
134 checkArgument(isValidPort(port), "Port out of range: %s", port); in fromParts() local
137 return new HostAndPort(parsedHost.host, port, parsedHost.hasBracketlessColons); in fromParts()
190 int port = NO_PORT; in fromString() local
[all …]
/external/apache-http/src/org/apache/http/auth/
DAuthScope.java92 private final int port; field in AuthScope
111 public AuthScope(final String host, int port, in AuthScope() argument
115 this.port = (port < 0) ? ANY_PORT: port; in AuthScope()
134 public AuthScope(final String host, int port, final String realm) { in AuthScope() argument
135 this(host, port, realm, ANY_SCHEME); in AuthScope()
149 public AuthScope(final String host, int port) { in AuthScope() argument
150 this(host, port, ANY_REALM, ANY_SCHEME); in AuthScope()
162 this.port = authscope.getPort(); in AuthScope()
178 return this.port; in getPort()
218 if (this.port == that.port) { in match()
[all …]
/external/autotest/server/hosts/
Drpc_server_tracker.py44 def _setup_rpc(self, port, command_name, remote_pid=None): argument
79 self.disconnect(port)
81 tunnel_proc = self._host.rpc_port_forward(port, local_port)
82 self._rpc_proxy_map[port] = (command_name, tunnel_proc, remote_pid)
86 def xmlrpc_connect(self, command, port, command_name=None, argument
133 self.disconnect(port)
143 rpc_url = self._setup_rpc(port, command_name, remote_pid=remote_pid)
166 self.disconnect(port)
171 def jsonrpc_connect(self, port): argument
197 proxy = jsonrpclib.jsonrpc.ServerProxy(self._setup_rpc(port, None))
[all …]
/external/nist-sip/java/gov/nist/core/
DHostPort.java55 protected int port; field in HostPort
62 port = -1; // marker for not set. in HostPort()
77 if (port != -1) in encode()
78 buffer.append(COLON).append(port); in encode()
92 return port == that.port && host.equals(that.host); in equals()
106 return port; in getPort()
114 return port != -1; in hasPort()
120 port = -1; in removePort()
136 port = p; in setPort()
152 if (port == -1) in merge()
[all …]
/external/selinux/libsemanage/include/semanage/
Dport_record.h21 extern int semanage_port_compare(const semanage_port_t * port,
24 extern int semanage_port_compare2(const semanage_port_t * port,
32 const semanage_port_t * port,
38 extern int semanage_port_get_proto(const semanage_port_t * port);
40 extern void semanage_port_set_proto(semanage_port_t * port, int proto);
45 extern int semanage_port_get_low(const semanage_port_t * port);
47 extern int semanage_port_get_high(const semanage_port_t * port);
49 extern void semanage_port_set_port(semanage_port_t * port, int port_num);
51 extern void semanage_port_set_range(semanage_port_t * port, int low, int high);
54 extern semanage_context_t *semanage_port_get_con(const semanage_port_t * port);
[all …]
/external/jetty/src/java/org/eclipse/jetty/client/
DAddress.java29 private final int port; field in Address
34 int port; in from() local
39 port = Integer.parseInt(hostAndPort.substring(colon + 1)); in from()
44 port = 0; in from()
46 return new Address(host, port); in from()
49 public Address(String host, int port) in Address() argument
55 this.port = port; in Address()
65 return port == that.port; in equals()
72 result = 31 * result + port; in hashCode()
83 return port; in getPort()
[all …]
/external/selinux/libsepol/include/sepol/
Dport_record.h19 extern int sepol_port_compare(const sepol_port_t * port,
22 extern int sepol_port_compare2(const sepol_port_t * port,
33 const sepol_port_t * port,
39 extern int sepol_port_get_proto(const sepol_port_t * port);
41 extern void sepol_port_set_proto(sepol_port_t * port, int proto);
46 extern int sepol_port_get_low(const sepol_port_t * port);
48 extern int sepol_port_get_high(const sepol_port_t * port);
50 extern void sepol_port_set_port(sepol_port_t * port, int port_num);
52 extern void sepol_port_set_range(sepol_port_t * port, int low, int high);
55 extern sepol_context_t *sepol_port_get_con(const sepol_port_t * port);
[all …]
/external/iptables/extensions/
Dlibip6t_REDIRECT.c43 unsigned int port, maxport; in parse_ports() local
47 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX) && in parse_ports()
48 (port = xtables_service_to_port(arg, NULL)) == (unsigned)-1) in parse_ports()
53 range->min_proto.tcp.port in parse_ports()
54 = range->max_proto.tcp.port in parse_ports()
55 = htons(port); in parse_ports()
62 if (maxport < port) in parse_ports()
65 range->min_proto.tcp.port = htons(port); in parse_ports()
66 range->max_proto.tcp.port = htons(maxport); in parse_ports()
113 printf("%hu", ntohs(range->min_proto.tcp.port)); in REDIRECT_print()
[all …]
Dlibip6t_MASQUERADE.c44 unsigned int port, maxport; in parse_ports() local
48 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX)) in parse_ports()
53 r->min_proto.tcp.port in parse_ports()
54 = r->max_proto.tcp.port in parse_ports()
55 = htons(port); in parse_ports()
61 if (maxport < port) in parse_ports()
64 r->min_proto.tcp.port = htons(port); in parse_ports()
65 r->max_proto.tcp.port = htons(maxport); in parse_ports()
110 printf("%hu", ntohs(r->min_proto.tcp.port)); in MASQUERADE_print()
111 if (r->max_proto.tcp.port != r->min_proto.tcp.port) in MASQUERADE_print()
[all …]
/external/libmicrohttpd/src/testcurl/
Dperf_get_concurrent.c163 do_gets (int port) in do_gets() argument
173 sprintf(url, "http://127.0.0.1:%d/hello_world", port); in do_gets()
233 testInternalGet (int port, int poll_flag) in testInternalGet() argument
238 port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END); in testInternalGet()
242 join_gets (do_gets (port)); in testInternalGet()
250 testMultithreadedGet (int port, int poll_flag) in testMultithreadedGet() argument
255 port, NULL, NULL, &ahc_echo, "GET", MHD_OPTION_END); in testMultithreadedGet()
259 join_gets (do_gets (port)); in testMultithreadedGet()
266 testMultithreadedPoolGet (int port, int poll_flag) in testMultithreadedPoolGet() argument
271 port, NULL, NULL, &ahc_echo, "GET", in testMultithreadedPoolGet()
[all …]
/external/conscrypt/src/main/java/org/conscrypt/
DClientSessionContext.java52 int port = session.getPeerPort(); in sessionRemoved() local
56 HostAndPort hostAndPortKey = new HostAndPort(host, port); in sessionRemoved()
69 public SSLSession getSession(String host, int port) { in getSession() argument
74 HostAndPort hostAndPortKey = new HostAndPort(host, port); in getSession()
84 byte[] data = persistentCache.getSessionData(host, port); in getSession()
86 session = toSession(data, host, port); in getSession()
105 int port = session.getPeerPort(); in putSession() local
110 HostAndPort hostAndPortKey = new HostAndPort(host, port); in putSession()
126 final int port; field in ClientSessionContext.HostAndPort
128 HostAndPort(String host, int port) { in HostAndPort() argument
[all …]
/external/apache-http/src/org/apache/http/
DHttpHost.java68 protected final int port; field in HttpHost
85 public HttpHost(final String hostname, int port, final String scheme) { in HttpHost() argument
97 this.port = port; in HttpHost()
107 public HttpHost(final String hostname, int port) { in HttpHost() argument
108 this(hostname, port, null); in HttpHost()
126 this(httphost.hostname, httphost.port, httphost.schemeName); in HttpHost()
144 return this.port; in getPort()
166 if (this.port != -1) { in toURI()
168 buffer.append(Integer.toString(this.port)); in toURI()
182 if (this.port != -1) { in toHostString()
[all …]
/external/webrtc/webrtc/p2p/base/
Dstunport_unittest.cc54 const cricket::Port* port() const { return stun_port_.get(); } in port() function in StunPortTest
120 void OnPortComplete(cricket::Port* port) { in OnPortComplete() argument
125 void OnPortError(cricket::Port* port) { in OnPortError() argument
158 EXPECT_EQ("stun", port()->Type()); in TEST_F()
159 EXPECT_EQ(0U, port()->Candidates().size()); in TEST_F()
167 ASSERT_EQ(1U, port()->Candidates().size()); in TEST_F()
168 EXPECT_TRUE(kLocalAddr.EqualIPs(port()->Candidates()[0].address())); in TEST_F()
180 EXPECT_EQ(0U, port()->Candidates().size()); in TEST_F()
188 ASSERT_EQ(1U, port()->Candidates().size()); in TEST_F()
189 EXPECT_TRUE(kLocalAddr.EqualIPs(port()->Candidates()[0].address())); in TEST_F()
[all …]
/external/autotest/site_utils/
Dlog_socket_server.py85 def __init__(self, host='localhost', port=None, argument
87 if not port:
88 port = utils.get_unused_port()
89 SocketServer.ThreadingTCPServer.__init__(self, (host, port), handler)
93 self.port = port
113 port = None variable in LogSocketServer
126 port = multiprocessing.Value(ctypes.c_int, 0)
129 args=(server_started, port),
134 LogSocketServer.port = port.value
135 print 'Log Record Socket Server is started at port %d.' % port.value
[all …]

12345678910>>...86