View Javadoc

1   
2   package org.neo.swarm.util.network.tcp.client;
3   import java.io.IOException;
4   import java.net.InetAddress;
5   public class TcpSenderFactory implements TcpSenderFactoryI {
6   	public TcpSenderFactory() {
7   	}
8   
9   	public synchronized final TcpSender getTcpSender(int bufferSize, InetAddress host, int port) throws IOException {
10  		return new TcpAsyncSender(bufferSize, host, port, true);
11  	}
12  
13  }