1 4 package com.tc.net.protocol.transport; 5 6 import com.tc.net.TCSocketAddress; 7 import com.tc.net.core.TCConnection; 8 import com.tc.net.protocol.NetworkLayer; 9 import com.tc.net.protocol.TCNetworkMessage; 10 11 import java.util.List ; 12 13 16 public interface MessageTransport extends NetworkLayer { 17 public ConnectionID getConnectionId(); 18 19 public void addTransportListener(MessageTransportListener listener); 20 21 public void addTransportListeners(List transportListeners); 22 23 public void removeTransportListeners(); 24 25 public void attachNewConnection(TCConnection connection); 26 27 public void receiveTransportMessage(WireProtocolMessage message); 28 29 public void sendToConnection(TCNetworkMessage message); 30 31 public TCSocketAddress getRemoteAddress(); 32 33 public TCSocketAddress getLocalAddress(); 34 35 } | Popular Tags |