001package ca.uhn.hl7v2.hoh.sockets;
002
003import java.io.IOException;
004import java.net.ServerSocket;
005import java.net.Socket;
006
007/**
008 * Pluggable interface for creating new sockets
009 */
010public interface ISocketFactory {
011
012        /**
013         * Creates a new client socket and returns it
014         */
015        Socket createClientSocket() throws IOException;
016        
017        /**
018         * Creates a new server socket and returns it
019         * @throws IOException 
020         */
021        ServerSocket createServerSocket() throws IOException;
022        
023}