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 SocketChanneladdBlockSocketChannel(int nChKey, String strTarget, CMInfo cmInfo) static MembershipKeyjoinMulticastGroup(DatagramChannel dc, String addr) static doublemeasureInputThroughput(String target, CMInfo cmInfo) static doublemeasureOutputThroughput(String target, CMInfo cmInfo) static SelectableChannelopenBlockChannel(int channelType, String address, int port, CMInfo cmInfo) static SelectableChannelopenNonBlockChannel(int channelType, String address, int port, CMInfo cmInfo) static booleanremoveBlockSocketChannel(int nChKey, String strTarget, CMInfo cmInfo) static intsendMessage(ByteBuffer buf, DatagramChannel dc, String addr, int port) static intsendMessage(ByteBuffer buf, SocketChannel sc) static CMByteReceiverstartReceivingMessage(CMInfo cmInfo) static CMByteSenderstartSendingMessage(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
-