Skip to content

Commit 0f4be39

Browse files
committed
Removed main class
1 parent fe1bb94 commit 0f4be39

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/main/kotlin/Main.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import io.netty.channel.socket.nio.NioServerSocketChannel
77
import io.netty.handler.logging.LogLevel
88
import io.netty.handler.logging.LoggingHandler
99

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+
// }
1919
// // Configure the server.
2020
// val bossGroup: EventLoopGroup = NioEventLoopGroup(1)
2121
// val workerGroup: EventLoopGroup = NioEventLoopGroup()
@@ -39,4 +39,4 @@ fun main(args: Array<String>) {
3939
// bossGroup.shutdownGracefully()
4040
// workerGroup.shutdownGracefully()
4141
// }
42-
}
42+
//}

0 commit comments

Comments
 (0)