Top Description Fields Constructors Methods
org.lwjgl.system.linux

public Class Socket

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to <sys/socket.h>.

Field Summary

Modifier and TypeField and Description
public static final int
SHUT_RD

The following constants should be used for the second parameter of shutdown.

public static final int
SHUT_RDWR

The following constants should be used for the second parameter of shutdown.

public static final int
SHUT_WR

The following constants should be used for the second parameter of shutdown.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native int

Returns:

a file descriptor for the new socket, or -1 for errors
socket
(int __domain, int __type, int __protocol)

Create a new socket of type __type in domain __domain, using protocol __protocol.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SHUT_RDback to summary
public static final int SHUT_RD

The following constants should be used for the second parameter of shutdown.

Enum values:
SHUT_RDWRback to summary
public static final int SHUT_RDWR

The following constants should be used for the second parameter of shutdown.

Enum values:
SHUT_WRback to summary
public static final int SHUT_WR

The following constants should be used for the second parameter of shutdown.

Enum values:

Constructor Detail

Socketback to summary
protected Socket()

Method Detail

socketback to summary
public static native int socket(int __domain, int __type, int __protocol)

Create a new socket of type __type in domain __domain, using protocol __protocol.

If __protocol is zero, one is chosen automatically.

Returns:int

a file descriptor for the new socket, or -1 for errors