Grease/ENET not working
Posted: Sun Jul 10, 2016 5:06 pm
I've been messing around with Grease and I got both a TCP and UDP client/server working, but I can't manage to get it's ENET implementation working. A code as simple as this:
Plus the update(dt) functions, will work perfectly, but the ENET implementations (enetClient and enetServer) won't work at all. The client just won't connect and I have no idea why. I have looked onto other ENET examples and they all seem to be basically the same...
Code: Select all
server = grease.udpServer()
server.handshake = "handshake"
server:setPing()
server:listen(1337)
Code: Select all
client = grease.udpClient()
client.handshake = "handshake"
client:setPing()
client:connect("localhost", 1337)