1 4 package com.tc.net.protocol; 5 6 import com.tc.bytes.TCByteBuffer; 7 import com.tc.net.MaxConnectionsExceededException; 8 import com.tc.util.TCTimeoutException; 9 10 import java.io.IOException ; 11 import java.net.UnknownHostException ; 12 13 16 public interface NetworkLayer { 17 18 public void setSendLayer(NetworkLayer layer); 19 20 public void setReceiveLayer(NetworkLayer layer); 21 22 public void send(TCNetworkMessage message); 23 24 public void receive(TCByteBuffer[] msgData); 25 26 public boolean isConnected(); 27 28 public NetworkStackID open() throws MaxConnectionsExceededException, TCTimeoutException, UnknownHostException , IOException ; 29 30 public void close(); 31 } | Popular Tags |