/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
ClientSessionContext.java | 24 * Caches client sessions. Indexes by host and port. Users are typically 25 * looking to reuse any session for a given host and port. 30 * Sessions indexed by host and port. Protect from concurrent 52 int port = session.getPeerPort(); local 56 HostAndPort hostAndPortKey = new HostAndPort(host, port); 63 * Finds a cached session for the given host name and port. 66 * @param port of server 69 public SSLSession getSession(String host, int port) { 74 HostAndPort hostAndPortKey = new HostAndPort(host, port); 84 byte[] data = persistentCache.getSessionData(host, port); 105 int port = session.getPeerPort(); local 126 final int port; field in class:ClientSessionContext.HostAndPort [all...] |
OpenSSLSocketFactoryImpl.java | 63 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 64 return new OpenSSLSocketImpl(host, port, (SSLParametersImpl) sslParameters.clone()); 67 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 70 port, 76 public Socket createSocket(InetAddress host, int port) throws IOException { 77 return new OpenSSLSocketImpl(host, port, (SSLParametersImpl) sslParameters.clone()); 81 int port, 86 port, 92 public Socket createSocket(Socket s, String host, int port, boolean autoClose) 96 port, [all...] |
/external/nist-sip/java/gov/nist/core/net/ |
SslNetworkLayer.java | 88 public ServerSocket createServerSocket(int port, int backlog,
90 return new ServerSocket(port, backlog, bindAddress);
93 public Socket createSocket(InetAddress address, int port)
95 return new Socket(address, port);
102 public DatagramSocket createDatagramSocket(int port, InetAddress laddr)
104 return new DatagramSocket(port, laddr);
108 public SSLServerSocket createSSLServerSocket(int port, int backlog,
111 port, backlog, bindAddress);
115 public SSLSocket createSSLSocket(InetAddress address, int port)
117 return (SSLSocket) sslSocketFactory.createSocket(address, port);
[all...] |
NetworkLayer.java | 49 * Creates a server with the specified port, listen backlog, and local IP address to bind to. 50 * comparable to "new java.net.ServerSocket(port,backlog,bindAddress);" 52 * @param port 57 public ServerSocket createServerSocket(int port, int backlog, 61 * Creates an SSL server with the specified port, listen backlog, and local IP address to bind to. 64 * @param port 69 public SSLServerSocket createSSLServerSocket(int port, int backlog, 73 * Creates a stream socket and connects it to the specified port number at the specified IP address. 74 * comparable to "new java.net.Socket(address, port);" 77 * @param port [all...] |
/external/webkit/LayoutTests/fast/dom/HTMLAnchorElement/script-tests/ |
set-href-attribute-port.js | 1 description('Test setting the port attribute of the URL in HTMLAnchorElement.'); 5 debug("Default port as number"); 7 a.port = 443; 10 debug("Default port as string"); 12 a.port = "443"; 15 debug("Set port to 0"); 17 a.port = "0"; 20 // Firefox 3.5.2 does not accept the port if any character is not a digit. 21 debug("Set port to non-number"); 23 a.port = "4a" [all...] |
/external/qemu/hw/ |
usb-hub.c | 32 USBPort port; member in struct:USBHubPort 160 0x00, /* (per-port OC, no power switching) */ 170 USBHubPort *port = &s->ports[port1->index]; local 173 if (port->port.dev) 176 port->wPortStatus |= PORT_STAT_CONNECTION; 177 port->wPortChange |= PORT_STAT_C_CONNECTION; 179 port->wPortStatus |= PORT_STAT_LOW_SPEED; 181 port->wPortStatus &= ~PORT_STAT_LOW_SPEED; 182 port->port.dev = dev 317 USBHubPort *port; local 339 USBHubPort *port; local 368 USBHubPort *port; local 443 USBHubPort *port; local 481 USBHubPort *port; local 527 USBHubPort *port; local [all...] |
/external/apache-http/src/org/apache/http/cookie/ |
CookieOrigin.java | 46 private final int port; field in class:CookieOrigin 50 public CookieOrigin(final String host, int port, final String path, boolean secure) { 60 if (port < 0) { 61 throw new IllegalArgumentException("Invalid port: " + port); 68 this.port = port; 86 return this.port; 102 buffer.append(Integer.toString(this.port));
|
/external/chromium/net/tools/flip_server/ |
create_listener.h | 21 // port - a port number or service name. By service name I mean a 41 const std::string& port, 52 const std::string& port,
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/ |
NetworkClient.java | 52 public void connectToServer( String host, int port, int remoteUdpPort ) throws IOException; 58 * @param port The remote TCP port on the server to which this client should 60 * @param remoteUdpPort The remote UDP port on the server to which this client should 65 public void connectToServer( InetAddress address, int port, int remoteUdpPort ) throws IOException;
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/base/ |
NioKernelFactory.java | 49 public Kernel createKernel( int channel, int port ) throws IOException 51 return new SelectorKernel(port);
|
/external/kernel-headers/original/asm-x86/ |
io_32.h | 22 * the two short jumps: using outb's to a nonexistent port seems 25 * On the other hand, I'd like to be sure of a non-existent port: 275 #define XQUAD_PORT_ADDR(port, quad) (xquad_portio + (XQUAD_PORTIO_QUAD*quad) + port) 277 static inline void out##bwl##_quad(unsigned type value, int port, int quad) { \ 279 write##bwl(value, XQUAD_PORT_ADDR(port, quad)); \ 281 out##bwl##_local(value, port); \ 283 static inline void out##bwl(unsigned type value, int port) { \ 284 out##bwl##_quad(value, port, 0); \ 286 static inline unsigned type in##bwl##_quad(int port, int quad) { [all...] |
/external/openssh/openbsd-compat/ |
bindresvport.c | 50 * Bind a socket to a privileged IP port 60 u_int16_t port; local 90 port = ntohs(*portp); 91 if (port == 0) 92 port = arc4random_uniform(NPORTS) + STARTPORT; 98 *portp = htons(port); 110 port++; 111 if (port > ENDPORT) 112 port = STARTPORT;
|
/external/webkit/Source/WebKit/android/wds/client/ |
ClientUtils.cpp | 30 void createTcpSocket(sockaddr_in& addr, short port) { 33 addr.sin_port = htons(port);
|
/external/apache-http/src/org/apache/http/auth/ |
AuthScope.java | 39 * a port number, a realm name and an authentication scheme name which 56 * The <tt>-1</tt> value represents any port. 71 * Default scope matching any host, port, realm and authentication scheme. 86 /** The port the credentials apply to. */ 87 private final int port; field in class:AuthScope 90 * <tt>host</tt>, <tt>port</tt>, <tt>realm</tt>, and 96 * @param port the port the credentials apply to. May be set 98 * any port. 106 public AuthScope(final String host, int port, [all...] |
/external/webkit/Source/WebCore/workers/ |
WorkerLocation.cpp | 49 return m_url.port() ? m_url.host() + ":" + String::number(m_url.port()) : m_url.host(); 57 String WorkerLocation::port() const function in class:WebCore::WorkerLocation 59 return m_url.port() ? String::number(m_url.port()) : "";
|
/frameworks/base/voip/jni/rtp/ |
util.cpp | 25 int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss) 31 if (port < 0 || port > 65535) { 32 jniThrowException(env, "java/lang/IllegalArgumentException", "port"); 45 sin->sin_port = htons(port); 53 sin6->sin6_port = htons(port);
|
/external/javassist/src/main/javassist/ |
URLClassPath.java | 30 protected int port; field in class:URLClassPath 47 * <code>port</code> is 80, and <code>directory</code> is "/java/classes/". 53 * @param port port number 59 public URLClassPath(String host, int port, 62 this.port = port; 68 return hostname + ":" + port + directory; 90 return fetchClass0(hostname, port, jarname); 123 * @param port port numbe [all...] |
/external/jmdns/src/javax/jmdns/ |
ServiceInfo.java | 73 * @param port 74 * the local port on which the service runs 79 public static ServiceInfo create(final String type, final String name, final int port, final String text) { 80 return new ServiceInfoImpl(type, name, "", port, 0, 0, false, text); 92 * @param port 93 * the local port on which the service runs 98 public static ServiceInfo create(final String type, final String name, final String subtype, final int port, final String text) { 99 return new ServiceInfoImpl(type, name, subtype, port, 0, 0, false, text); 109 * @param port 110 * the local port on which the service run [all...] |
/external/clang/tools/scan-view/ |
scan-view | 33 def start_browser(port, options): 36 url = 'http://%s:%d'%(options.host, port) 56 def run(port, options, root): 60 port) 62 httpd = ScanView.create_server((options.host, port), 68 def port_is_open(port): 71 t = SocketServer.TCPServer((kDefaultHost,port),None) 85 '--port', dest="port", default=None, type="int", 86 help="Port to listen on. (default=%s)" % kDefaultPort [all...] |
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
chromium_linux_unittest.py | 34 from webkitpy.layout_tests.port import chromium_linux 35 from webkitpy.layout_tests.port import port_testcase 52 port = chromium_linux.ChromiumLinuxPort(port_name=port_name, 54 self.assertEquals(port.architecture(), expected_architecture) 56 self.assertTrue(port.baseline_path().endswith('chromium-linux')) 57 self.assertTrue(port.baseline_search_path()[0].endswith('chromium-linux')) 59 self.assertTrue(port.baseline_path().endswith('chromium-linux-x86_64')) 60 self.assertTrue(port.baseline_search_path()[0].endswith('chromium-linux-x86_64')) 61 self.assertTrue(port.baseline_search_path()[1].endswith('chromium-linux')) 74 # FIXME: Check that, for now, these are illegal port names [all...] |
/external/libsepol/src/ |
ports.c | 39 /* Create a low level port structure from 43 ocontext_t ** port, const sepol_port_t * data) 62 tmp_port->u.port.protocol = tmp_proto; 64 /* Port range */ 65 tmp_port->u.port.low_port = low; 66 tmp_port->u.port.high_port = high; 67 if (tmp_port->u.port.low_port > tmp_port->u.port.high_port) { 68 ERR(handle, "low port %d exceeds high port %d" 246 ocontext_t *port = NULL; local 284 sepol_port_t *port = NULL; local [all...] |
/external/iptables/extensions/ |
libipt_REDIRECT.c | 20 " --to-ports <port>[-<port>]\n" 21 " Port (range) to map to.\n" 44 unsigned int port, maxport; local 48 if (!xtables_strtoui(arg, &end, &port, 0, UINT16_MAX) && 49 (port = xtables_service_to_port(arg, NULL)) == (unsigned)-1) 54 mr->range[0].min.tcp.port 55 = mr->range[0].max.tcp.port 56 = htons(port); 63 if (maxport < port) [all...] |
/external/apache-http/src/org/apache/http/conn/scheme/ |
Scheme.java | 65 /** The default port for this scheme */ 85 * @param port the default port for this scheme 89 final int port) { 99 if ((port <= 0) || (port > 0xffff)) { 101 ("Port is invalid: " + port); 106 this.defaultPort = port; 112 * Obtains the default port [all...] |
/development/tools/axl/ |
udpEater.py | 27 port = 9001 31 svrsocket.bind(('', port)) 36 print 'Listening for requests on port %s ...' % port
|
udpServer.py | 6 port = 9001 11 svrsocket.bind(('', port)) 17 print 'Listening for requests on port %s ...' % port
|