Luasockets - socket.bind not working?

Hi! I'm building a websocket module but I need to take use of the Luasockets bind method. But it seems to return a nil value. The Socket.connect returns the tcp object. Any ideas what I'm doing wrong?

1
2
local socket = require('socket')
server = socket.bind('localhost', 8000)
views:1277 update:2011/12/3 14:45:35
corona forums © 2003-2011