Package kr.ac.konkuk.ccslab.cm.manager
Class CMCommManager
java.lang.Object
kr.ac.konkuk.ccslab.cm.manager.CMCommManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SocketChannel
addBlockSocketChannel
(int nChKey, String strTarget, CMInfo cmInfo) static MembershipKey
joinMulticastGroup
(DatagramChannel dc, String addr) static double
measureInputThroughput
(String target, CMInfo cmInfo) static double
measureOutputThroughput
(String target, CMInfo cmInfo) static SelectableChannel
openBlockChannel
(int channelType, String address, int port, CMInfo cmInfo) static SelectableChannel
openNonBlockChannel
(int channelType, String address, int port, CMInfo cmInfo) static boolean
removeBlockSocketChannel
(int nChKey, String strTarget, CMInfo cmInfo) static int
sendMessage
(ByteBuffer buf, DatagramChannel dc, String addr, int port) static int
sendMessage
(ByteBuffer buf, SocketChannel sc) static CMByteReceiver
startReceivingMessage
(CMInfo cmInfo) static CMByteSender
startSendingMessage
(CMInfo cmInfo) static void
-
Constructor Details
-
CMCommManager
public CMCommManager()
-
-
Method Details
-
terminate
-
getLocalIPList
-
openNonBlockChannel
public static SelectableChannel openNonBlockChannel(int channelType, String address, int port, CMInfo cmInfo) throws IOException - Throws:
IOException
-
openBlockChannel
public static SelectableChannel openBlockChannel(int channelType, String address, int port, CMInfo cmInfo) throws IOException - Throws:
IOException
-
addBlockSocketChannel
-
removeBlockSocketChannel
-
joinMulticastGroup
-
startReceivingMessage
-
startSendingMessage
-
sendMessage
-
sendMessage
-
measureInputThroughput
-
measureOutputThroughput
-