All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.uhn.hl7v2.hoh.sockets.ISocketFactory Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show newest version
package ca.uhn.hl7v2.hoh.sockets;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * Pluggable interface for creating new sockets
 */
public interface ISocketFactory {

	/**
	 * Creates a new client socket and returns it
	 */
	Socket createClientSocket() throws IOException;
	
	/**
	 * Creates a new server socket and returns it
	 * @throws IOException 
	 */
	ServerSocket createServerSocket() throws IOException;
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy