mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
bugfix : connection
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user