All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.system.linux.Socket Maven / Gradle / Ivy

There is a newer version: 3.3.5
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.system.linux;

import org.lwjgl.system.*;

/** Native bindings to <sys/socket.h>. */
public class Socket {

    static { Library.initialize(); }

    /**
     * The following constants should be used for the second parameter of {@code shutdown}.
     * 
     * 
Enum values:
* *
    *
  • {@link #SHUT_RD SHUT_RD} - No more receptions.
  • *
  • {@link #SHUT_WR SHUT_WR} - No more transmissions.
  • *
  • {@link #SHUT_RDWR SHUT_RDWR} - No more receptions or transmissions.
  • *
*/ public static final int SHUT_RD = 0, SHUT_WR = 1, SHUT_RDWR = 2; protected Socket() { throw new UnsupportedOperationException(); } // --- [ socket ] --- /** * Create a new socket of type {@code __type} in domain {@code __domain}, using protocol {@code __protocol}. * *

If {@code __protocol} is zero, one is chosen automatically.

* * @return a file descriptor for the new socket, or -1 for errors */ public static native int socket(int __domain, int __type, int __protocol); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy