/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/core/socket/ |
DefaultSocketFactory.java | 32 * Create a new Socket instance for the specified host and port.
34 * @param port - the port number of the enpoint to which the socket is connected
40 public Socket createSocket(InetAddress host, int port) throws IOException {
41 return new Socket(host, port);
|
/external/mockftpserver/branches/1.x_Branch/src/main/java/org/mockftpserver/core/socket/ |
DefaultSocketFactory.java | 32 * Create a new Socket instance for the specified host and port.
34 * @param port - the port number of the enpoint to which the socket is connected
40 public Socket createSocket(InetAddress host, int port) throws IOException {
41 return new Socket(host, port);
|
/external/nist-sip/java/gov/nist/core/net/ |
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/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
DelegatingSocketFactory.java | 43 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 44 Socket socket = delegate.createSocket(host, port); 49 public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) 51 Socket socket = delegate.createSocket(host, port, localAddress, localPort); 56 public Socket createSocket(InetAddress host, int port) throws IOException { 57 Socket socket = delegate.createSocket(host, port); 62 public Socket createSocket(InetAddress host, int port, InetAddress localAddress, int localPort) 64 Socket socket = delegate.createSocket(host, port, localAddress, localPort);
|
DelegatingSSLSocketFactory.java | 43 @Override public SSLSocket createSocket(String host, int port) throws IOException { 44 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port); 49 String host, int port, InetAddress localAddress, int localPort) throws IOException { 50 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port, localAddress, localPort); 54 @Override public SSLSocket createSocket(InetAddress host, int port) throws IOException { 55 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port); 60 InetAddress host, int port, InetAddress localAddress, int localPort) throws IOException { 61 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(host, port, localAddress, localPort); 74 Socket socket, String host, int port, boolean autoClose) throws IOException { 75 SSLSocket sslSocket = (SSLSocket) delegate.createSocket(socket, host, port, autoClose) [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;
|
/frameworks/base/core/java/android/app/admin/ |
ConnectEvent.java | 33 /** The destination port number. */ 34 private final int port; field in class:ConnectEvent 37 public ConnectEvent(String ipAddress, int port, String packageName, long timestamp) { 40 this.port = port; 45 this.port = in.readInt(); 61 return port; 66 return String.format("ConnectEvent(%s, %d, %d, %s)", ipAddress, port, timestamp, 96 out.writeInt(port);
|
/libcore/support/src/test/java/tests/net/ |
DelegatingSocketFactory.java | 53 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 54 Socket socket = mDelegate.createSocket(host, port); 59 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 61 Socket socket = mDelegate.createSocket(host, port, localHost, localPort); 66 public Socket createSocket(InetAddress host, int port) throws IOException { 67 Socket socket = mDelegate.createSocket(host, port); 72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, 74 Socket socket = mDelegate.createSocket(address, port, localAddress, localPort);
|
DelegatingSSLSocketFactory.java | 65 public Socket createSocket(Socket s, String host, int port, boolean autoClose) 67 SSLSocket socket = (SSLSocket) mDelegate.createSocket(s, host, port, autoClose); 72 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 73 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); 78 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 80 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port, localHost, localPort); 85 public Socket createSocket(InetAddress host, int port) throws IOException { 86 SSLSocket socket = (SSLSocket) mDelegate.createSocket(host, port); 91 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, 93 SSLSocket socket = (SSLSocket) mDelegate.createSocket(address, port, localAddress, localPort) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/ |
gopher.py | 5 # Usage: gopher [ [selector] host [port] ]
12 # Default selector, host and port
40 # Open a TCP connection to a given host and port
41 def open_socket(host, port):
42 if not port:
43 port = DEF_PORT
44 elif type(port) == type(''):
45 port = string.atoi(port)
47 s.connect((host, port))
[all...] |
/external/apache-http/src/org/apache/http/auth/ |
AuthScope.java | 39 * a port number, a realm name and an authentication scheme name which 61 * The <tt>-1</tt> value represents any port. 76 * Default scope matching any host, port, realm and authentication scheme. 91 /** The port the credentials apply to. */ 92 private final int port; field in class:AuthScope 95 * <tt>host</tt>, <tt>port</tt>, <tt>realm</tt>, and 101 * @param port the port the credentials apply to. May be set 103 * any port. 111 public AuthScope(final String host, int port, [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/stub/example/ |
RemoteFile.java | 35 private int port;
field in class:RemoteFile 40 ftpClient.connect(server, port);
63 * Set the port number for the FTP server
65 * @param port - the port number
67 public void setPort(int port) {
68 this.port = port;
|
/external/mockftpserver/branches/1.x_Branch/src/test/java/org/mockftpserver/stub/example/ |
RemoteFile.java | 34 private int port;
field in class:RemoteFile 39 ftpClient.connect(server, port);
60 * Set the port number for the FTP server
61 * @param port - the port number
63 public void setPort(int port) {
64 this.port = port;
|
/frameworks/opt/net/voip/src/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);
|
/libcore/ojluni/src/main/java/sun/net/util/ |
URLUtil.java | 61 int port = url.getPort(); local 62 if (port == -1) { 63 /* if no port is specificed then use the protocols 65 port = url.getDefaultPort(); 67 if (port != -1) { 68 strForm.append(":").append(port);
|
/external/syslinux/gpxe/src/drivers/net/ |
skge.c | 62 static int xm_phy_write(struct skge_hw *hw, int port, u16 reg, u16 val); 63 static int gm_phy_write(struct skge_hw *hw, int port, u16 reg, u16 val); 64 static void yukon_init(struct skge_hw *hw, int port); 65 static void genesis_mac_init(struct skge_hw *hw, int port); 138 int port = skge->port; local 144 xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL, PHY_B_PEC_LED_OFF); 146 skge_write32(hw, SK_REG(port, TX_LED_VAL), 0); 147 skge_write8(hw, SK_REG(port, TX_LED_CTRL), LED_T_OFF); 149 skge_write8(hw, SK_REG(port, LNK_LED_REG), LINKLED_OFF) 626 int port = skge->port; local 723 int port = skge->port; local 758 int port = skge->port; local 833 int port = skge->port; local 1003 int port = skge->port; local 1050 int port = skge->port; local 1134 int port = skge->port; local 1497 int port = skge->port; local 1529 int port = skge->port; local 1550 int port = skge->port; local 1572 int port = skge->port; local 1713 int port = skge->port; local 1796 int port = skge->port; local 2088 int port; local [all...] |
/external/conscrypt/android/src/main/java/org/conscrypt/ |
BaseOpenSSLSocketAdapterFactory.java | 49 public Socket createSocket(String hostname, int port) 51 return wrap((OpenSSLSocketImpl) delegate.createSocket(hostname, port)); 55 public Socket createSocket(String hostname, int port, InetAddress localHost, int localPort) 58 (OpenSSLSocketImpl) delegate.createSocket(hostname, port, localHost, localPort)); 61 public Socket createSocket(InetAddress address, int port) throws IOException { 62 return wrap((OpenSSLSocketImpl) delegate.createSocket(address, port)); 67 int port, 72 (OpenSSLSocketImpl) delegate.createSocket(address, port, localAddress, localPort)); 76 public Socket createSocket(Socket s, String hostname, int port, boolean autoClose) 78 return wrap((OpenSSLSocketImpl) delegate.createSocket(s, hostname, port, autoClose)) [all...] |
/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/jcommander/src/test/java/com/beust/jcommander/ |
MethodSetterTest.java | 64 private Integer port; field in class:MethodSetterTest.Arg 66 @Parameter(names = "--port") 67 public void setPort(String port) { 68 this.port = Integer.parseInt(port); 72 return port; 76 new JCommander(arg, new String[] { "--port", "42" }); 78 Assert.assertEquals(arg.port, new Integer(42)); 83 private Integer port = 43; field in class:MethodSetterTest.Arg 85 @Parameter(names = "--port") [all...] |
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
TestUtils.java | 34 public static void assertConnectionFails(SSLContext context, String host, int port) 37 Socket s = context.getSocketFactory().createSocket(host, port); 39 fail("Expected connection to " + host + ":" + port + " to fail."); 44 public static void assertConnectionSucceeds(SSLContext context, String host, int port) 46 Socket s = context.getSocketFactory().createSocket(host, port); 50 public static void assertUrlConnectionFails(SSLContext context, String host, int port) 52 URL url = new URL("https://" + host + ":" + port); 57 fail("Connection to " + host + ":" + port + " expected to fail"); 63 public static void assertUrlConnectionSucceeds(SSLContext context, String host, int port) 65 URL url = new URL("https://" + host + ":" + port); [all...] |
/system/core/adb/ |
console.cpp | 55 // Return the console port of the currently connected emulator (if any) or -1 if 60 int port; local 61 return (sscanf(serial, "emulator-%d", &port) == 1) ? port : -1; 74 int port; local 77 if (sscanf(device.c_str(), "emulator-%d", &port) == 1) { 91 return port; 95 int port = adb_get_emulator_console_port(serial); local 96 if (port == -1) { 101 int fd = network_loopback_client(port, SOCK_STREAM, &error) [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...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
NewChromaHistogramFilter.java | 70 public void onInputPortOpen(InputPort port) { 71 if (port.getName().equals("huebins")) { 72 port.bindToFieldNamed("mHueBins"); 73 port.setAutoPullEnabled(true); 74 } else if (port.getName().equals("saturationbins")) { 75 port.bindToFieldNamed("mSaturationBins"); 76 port.setAutoPullEnabled(true); 77 } else if (port.getName().equals("saturationthreshold")) { 78 port.bindToFieldNamed("mSaturationThreshold"); 79 port.setAutoPullEnabled(true) [all...] |
/prebuilts/misc/darwin-x86/analyzer/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...] |
/prebuilts/misc/linux-x86/analyzer/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...] |