bugfix : connection

This commit is contained in:
云风
2012-08-30 16:30:52 +08:00
parent 1791becd09
commit 51ef283887
8 changed files with 34 additions and 20 deletions

View File

@@ -12,7 +12,9 @@ function socket.connect(addr)
if fd == nil then
return true
end
skynet.send(".connection","ADD "..fd.." "..skynet.self())
print("connect to " .. addr)
local command = "ADD "..fd.." ".. skynet.address(skynet.self())
skynet.send(".connection", command )
object = c.new()
end