Package jnr.constants.platform

Examples of jnr.constants.platform.Sock


        soProtocol = protocolFamily;
    }

    private void initType(Ruby runtime, IRubyObject type) {
        Sock sockType = SocketUtils.sockFromArg(type);

        if (sockType == null) {
            throw SocketUtils.sockerr(runtime, "unknown socket type " + type);
        }
View Full Code Here


        return addressFamily;
    }

    static Sock sockFromArg(IRubyObject type) {
        Sock sockType = null;

        if(type instanceof RubyString || type instanceof RubySymbol) {
            String typeString = type.toString();
            sockType = Sock.valueOf("SOCK_" + typeString);
        } else {
View Full Code Here

            }
            boolean is_ipv6 = addressFamily == AddressFamily.AF_INET6;
            boolean sock_stream = true;
            boolean sock_dgram = true;

            Sock sock = SOCK_STREAM;
            if(!socktype.isNil()) {
                sockFromArg(socktype);

                if(sock == SOCK_STREAM) {
                    sock_dgram = false;
View Full Code Here

        return addressFamily;
    }

    static Sock sockFromArg(IRubyObject type) {
        Sock sockType = null;

        if(type instanceof RubyString || type instanceof RubySymbol) {
            String typeString = type.toString();
            sockType = Sock.valueOf("SOCK_" + typeString);
        } else {
View Full Code Here

        soProtocol = protocolFamily;
    }

    private void initType(Ruby runtime, IRubyObject type) {
        Sock sockType = SocketUtils.sockFromArg(type);

        if (sockType == null) {
            throw SocketUtils.sockerr(runtime, "unknown socket type " + type);
        }
View Full Code Here

TOP

Related Classes of jnr.constants.platform.Sock

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.