1 package ca.uhn.hl7v2.util;
2
3 import java.io.IOException;
4 import java.net.ServerSocket;
5 import java.net.Socket;
6 import java.net.SocketException;
7
8
9
10
11 public interface SocketFactory {
12
13
14
15
16 Socket createSocket() throws IOException;
17
18
19
20
21 Socket createTlsSocket() throws IOException;
22
23
24
25
26 ServerSocket createServerSocket() throws IOException;
27
28
29
30
31 ServerSocket createTlsServerSocket() throws IOException;
32
33
34
35
36
37 void configureNewAcceptedSocket(Socket theSocket) throws SocketException;
38
39 }