Class InoNetReceiveImpl
java.lang.Object
de.mid.innovator.net.InoNetReceiveImpl
Helping class for receiving data from channel.
- Author:
- nagl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<byte[]> receive(SocketChannel ch, InoSocket socket, SelectionKey key) Read raw telegram from channel or socket.
-
Constructor Details
-
InoNetReceiveImpl
public InoNetReceiveImpl()
-
-
Method Details
-
receive
public static List<byte[]> receive(SocketChannel ch, InoSocket socket, SelectionKey key) throws IOException, InoNetException Read raw telegram from channel or socket.- Parameters:
ch- channelsocket- socketkey- for non-blocking IO- Returns:
- list of byte arrays
- Throws:
IOExceptionInoNetException
-