View Javadoc

1   package ca.uhn.hl7v2.hoh.sockets;
2   
3   import java.io.IOException;
4   import java.net.ServerSocket;
5   import java.net.Socket;
6   
7   /**
8    * Socket Factory which returns a normal, non encrypted TCP socket
9    */
10  public class StandardSocketFactory implements ISocketFactory {
11  
12  	public Socket createClientSocket() {
13  		return new Socket();
14  	}
15  
16  	public ServerSocket createServerSocket() throws IOException {
17  		return new ServerSocket();
18  	}
19  
20  }