17 lines
426 B
Plaintext
17 lines
426 B
Plaintext
static box Main {
|
|
init { server }
|
|
|
|
main() {
|
|
me.server = new SocketBox()
|
|
|
|
print("=== Before bind ===")
|
|
print("isServer: " + me.server.isServer())
|
|
|
|
me.server.bind("127.0.0.1", 8080)
|
|
|
|
print("=== After bind ===")
|
|
print("isServer: " + me.server.isServer()) // This should be true if fix works!
|
|
|
|
return me.server.isServer()
|
|
}
|
|
} |