File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ import io.netty.channel.socket.nio.NioServerSocketChannel
7
7
import io.netty.handler.logging.LogLevel
8
8
import io.netty.handler.logging.LoggingHandler
9
9
10
- fun main (args : Array <String >) {
11
- var modbusServer = ModbusServer (ModbusServerEventListenerReplyRandomNumbers ())
12
- try {
13
- modbusServer.start()
14
- modbusServer.block()
15
- }catch (ex: Exception ){
16
- println (" modbus server terminated" )
17
- modbusServer.stop()
18
- }
10
+ // fun main(args: Array<String>) {
11
+ // var modbusServer = ModbusServer(ModbusServerEventListenerReplyRandomNumbers())
12
+ // try {
13
+ // modbusServer.start()
14
+ // modbusServer.block()
15
+ // }catch (ex: Exception){
16
+ // println("modbus server terminated")
17
+ // modbusServer.stop()
18
+ // }
19
19
// // Configure the server.
20
20
// val bossGroup: EventLoopGroup = NioEventLoopGroup(1)
21
21
// val workerGroup: EventLoopGroup = NioEventLoopGroup()
@@ -39,4 +39,4 @@ fun main(args: Array<String>) {
39
39
// bossGroup.shutdownGracefully()
40
40
// workerGroup.shutdownGracefully()
41
41
// }
42
- }
42
+ // }
You can’t perform that action at this time.
0 commit comments