Home | History | Annotate | Download | only in io

Lines Matching defs:connect

115     public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException {
117 IoBridge.connect(fd, inetAddress, port, 0);
119 throw new AssertionError(ex); // Can't happen for a connect without a timeout.
125 * Use timeoutMs == 0 for a blocking connect with no timeout.
127 public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException {
149 // With no timeout, just call connect(2) directly.
151 Libcore.os.connect(fd, inetAddress, port);
155 // For connect with a timeout, we:
157 // 2. connect(2),
165 // 2. call connect(2) non-blocking.
168 Libcore.os.connect(fd, inetAddress, port);
204 StringBuilder sb = new StringBuilder("failed to connect")
267 throw new ErrnoException("isConnected", connectError); // The connect(2) failed.