View Javadoc

1   /*
2    * $Header: /cvsroot/silcmob/silc/src/java/org/neo/swarm/util/network/tcp/client/TcpSender.java,v 1.4 2004/07/02 15:19:56 neil_g_avery Exp $
3    * $Revision: 1.4 $
4    * $Date: 2004/07/02 15:19:56 $
5    *
6    *
7    */
8   
9   package org.neo.swarm.util.network.tcp.client;
10  
11  import java.io.IOException;
12  import java.io.Serializable;
13  
14  
15  public interface TcpSender extends Serializable
16  {
17      void connect() throws IOException;
18      void disconnect();
19  	void send(byte[] data) throws IOException; 
20  	byte[] sendAndReceiveMessage(byte[] data) throws IOException;	
21      boolean isConnected();
22  }