writeblock

This commit is contained in:
云风
2012-08-17 15:10:31 +08:00
parent aad2a1b446
commit c8d80d58ac
2 changed files with 45 additions and 0 deletions

View File

@@ -38,6 +38,10 @@ function socket.write(...)
c.write(fd, ...)
end
function socket.writeblock(...)
c.writeblock(fd, ...)
end
function socket.close()
if fd then
c.close(fd)