Package org.apache.harmony.luni.net

Examples of org.apache.harmony.luni.net.PlainSocketImpl


                if (connectAddress != null) {
                    addr = connectAddress.getAddress();
                    port = connectAddress.getPort();
                }
                socket = new SocketAdapter(
                        new PlainSocketImpl(fd, localPort, addr, port), this);
            } catch (SocketException e) {
                return null;
            }
        }
        return socket;
View Full Code Here


        super(sp);
        status = SERVER_STATUS_OPEN;
        fd = new FileDescriptor();
        Platform.getNetworkSystem().createStreamSocket(fd,
                NetUtil.preferIPv4Stack());
        impl = new PlainSocketImpl(fd);
        socket = new ServerSocketAdapter(impl, this);
    }
View Full Code Here

    @SuppressWarnings("unused")
    private ServerSocketChannelImpl() throws IOException {
        super(SelectorProvider.provider());
        status = SERVER_STATUS_OPEN;
        fd = new FileDescriptor();
        impl = new PlainSocketImpl(fd);
        socket = new ServerSocketAdapter(impl, this);
        isBound = false;
    }
View Full Code Here

     *
     * @see SocketImplFactory
     */
    public Socket() {
        impl = factory != null ? factory.createSocketImpl()
                : new PlainSocketImpl();
    }
View Full Code Here

            }
            int port = address.getPort();
            checkConnectPermission(host, port);
        }
        impl = factory != null ? factory.createSocketImpl()
                : new PlainSocketImpl(proxy);
        this.proxy = proxy;
    }
View Full Code Here

    }

    private class MockSocketImplFactory implements SocketImplFactory {

        public SocketImpl createSocketImpl() {
            return new PlainSocketImpl();
        }
View Full Code Here

                if (connectAddress != null) {
                    addr = connectAddress.getAddress();
                    port = connectAddress.getPort();
                }
                socket = new SocketAdapter(
                        new PlainSocketImpl(fd, localPort, addr, port), this);
            } catch (SocketException e) {
                return null;
            }
        }
        return socket;
View Full Code Here

                if (connectAddress != null) {
                    addr = connectAddress.getAddress();
                    port = connectAddress.getPort();
                }
                socket = new SocketAdapter(
                        new PlainSocketImpl(fd, localPort, addr, port), this);
            } catch (SocketException e) {
                return null;
            }
        }
        return socket;
View Full Code Here

    }

    private class MockSocketImplFactory implements SocketImplFactory {

        public SocketImpl createSocketImpl() {
            return new PlainSocketImpl();
        }
View Full Code Here

    }

    private class MockSocketImplFactory implements SocketImplFactory {

        public SocketImpl createSocketImpl() {
            return new PlainSocketImpl();
        }
View Full Code Here

TOP

Related Classes of org.apache.harmony.luni.net.PlainSocketImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.