1
2
3
4
5
6
7
8
9
10
11
12
13
14 package ch.qos.logback.classic.net.server;
15
16 import java.io.IOException;
17 import java.net.ServerSocket;
18 import java.net.Socket;
19
20 import ch.qos.logback.core.net.server.ServerListener;
21 import ch.qos.logback.core.net.server.ServerSocketListener;
22
23
24
25
26
27
28 class RemoteAppenderServerListener extends ServerSocketListener<RemoteAppenderClient> {
29
30
31
32
33
34
35
36 public RemoteAppenderServerListener(ServerSocket serverSocket) {
37 super(serverSocket);
38 }
39
40
41
42
43 @Override
44 protected RemoteAppenderClient createClient(String id, Socket socket) throws IOException {
45 return new RemoteAppenderStreamClient(id, socket);
46 }
47
48 }