zj
2025-06-25 7f45e436fe6d33784356f660ac328f72c00733fb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package project.web.socketio;//package project.web.data.socketio;
//
//import com.corundumstudio.socketio.SocketConfig;
//import com.corundumstudio.socketio.SocketIOServer;
//
//public class SocketIOConfig {
//
//    private String host;
//    
//    private int port;
//    
//    public SocketIOServer socketIOServer() {
//        SocketConfig socketConfig = new SocketConfig();
//        socketConfig.setTcpNoDelay(true);
//        socketConfig.setSoLinger(0);
//        com.corundumstudio.socketio.Configuration config = new com.corundumstudio.socketio.Configuration();
//        config.setSocketConfig(socketConfig);
//        config.setHostname(host);
//        config.setPort(port);
//        return new SocketIOServer(config);
//    }
//
//    public String getHost() {
//        return host;
//    }
//
//    public void setHost(String host) {
//        this.host = host;
//    }
//
//    public int getPort() {
//        return port;
//    }
//
//    public void setPort(int port) {
//        this.port = port;
//    }
//
//}