|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsystem.messages.MessageUtil
public class MessageUtil
Some utility functions to help manage network communications between Tasks.
Constructor Summary | |
---|---|
MessageUtil()
|
Method Summary | |
---|---|
static NetworkMessage |
getMessage(java.nio.channels.SocketChannel channel)
Read a NetworkChannel from the SocketChannel. |
static void |
sendMessage(java.nio.channels.SocketChannel channel,
NetworkMessage message)
Send a NetworkMessage packet onto the given SocketChannel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageUtil()
Method Detail |
---|
public static void sendMessage(java.nio.channels.SocketChannel channel, NetworkMessage message) throws java.io.IOException
channel
- message
-
java.io.IOException
public static NetworkMessage getMessage(java.nio.channels.SocketChannel channel) throws java.io.IOException
channel
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |