Top Description Constructors Methods
org.newsclub.net.unix

pack-priv final Class AFGenericSocketPair<T extends AFSomeSocket>

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

A pair of sockets.
Author
Christian Kohlschütter

Constructor Summary

AccessConstructor and Description
pack-priv
AFGenericSocketPair(T
The first socket.
socket1
,
T
The second socket.
socket2
)

Creates a new socket pair.

Method Summary

Modifier and TypeMethod and Description
public static AFGenericSocketPair<AFGenericSocketChannel>

Returns:

The new channel pair.
open
()

Opens a socket pair of interconnected channels.

public static AFGenericSocketPair<AFGenericDatagramChannel>

Returns:

The new channel pair.
openDatagram
()

Opens a socket pair of interconnected datagram channels.

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

Constructor Detail

AFGenericSocketPairback to summary
pack-priv AFGenericSocketPair(T socket1, T socket2)

Creates a new socket pair.

Parameters
socket1:T

The first socket.

socket2:T

The second socket.

Method Detail

openback to summary
public static AFGenericSocketPair<AFGenericSocketChannel> open() throws IOException

Opens a socket pair of interconnected channels.

Returns:AFGenericSocketPair<AFGenericSocketChannel>

The new channel pair.

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

Opens a socket pair of interconnected datagram channels.

Returns:AFGenericSocketPair<AFGenericDatagramChannel>

The new channel pair.

Exceptions
IOException:
on error.