support 2-bytes length block

This commit is contained in:
云风
2012-08-17 14:46:03 +08:00
parent da2c075e8d
commit aad2a1b446
2 changed files with 42 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ function socket.readline(sep)
return c.readline(object, sep)
end
function socket.readblock(...)
return c.readblock(object,...)
end
function socket.write(...)
c.write(fd, ...)
end