Top Description Constructors Methods
org.newsclub.net.unix

public final Class AFUNIXSocketPair<T extends AFSomeSocket>

extends AFSocketPair<T extends AFSomeSocket>
Class Inheritance
Type Parameters
<T>
The socket type.
Imports
java.io.IOException, java.nio.channels.DatagramChannel

A pair of sockets.
Author
Christian Kohlschütter

Constructor Summary

AccessConstructor and Description
pack-priv
AFUNIXSocketPair(T socket1, T socket2)

Method Summary

Modifier and TypeMethod and Description
public static AFUNIXSocketPair<AFUNIXSocketChannel>

Returns:

The new channel pair.
open
()

Opens a socket pair of interconnected channels.

public static AFUNIXSocketPair<AFUNIXDatagramChannel>

Returns:

The new channel pair.
openDatagram
()

Opens a socket pair of interconnected datagram channels.

public static AFUNIXSocketPair<AFUNIXDatagramChannel>

Returns:

The new channel pair.
openDatagram
(AFSocketType
The socket type.
type
)

Opens a socket pair of interconnected DatagramChannels, using the given socket type.

Inherited from org.newsclub.net.unix.AFSocketPair:
getSocket1getSocket2

Constructor Detail

AFUNIXSocketPairback to summary
pack-priv AFUNIXSocketPair(T socket1, T socket2)

Method Detail

openback to summary
public static AFUNIXSocketPair<AFUNIXSocketChannel> open() throws IOException

Opens a socket pair of interconnected channels.

Returns:AFUNIXSocketPair<AFUNIXSocketChannel>

The new channel pair.

Exceptions
IOException:
on error.
openDatagramback to summary
public static AFUNIXSocketPair<AFUNIXDatagramChannel> openDatagram() throws IOException

Opens a socket pair of interconnected datagram channels.

Returns:AFUNIXSocketPair<AFUNIXDatagramChannel>

The new channel pair.

Exceptions
IOException:
on error.
openDatagramback to summary
public static AFUNIXSocketPair<AFUNIXDatagramChannel> openDatagram(AFSocketType type) throws IOException

Opens a socket pair of interconnected DatagramChannels, using the given socket type.

Parameters
type:AFSocketType

The socket type.

Returns:AFUNIXSocketPair<AFUNIXDatagramChannel>

The new channel pair.

Exceptions
IOException:
on error.