Kim Alvefur
unread,Feb 18, 2013, 1:11:29 AM2/18/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to proso...@googlegroups.com
On 2013-02-15 18:14, rkadeFR wrote:
> Hello everyone,
Hi,
> I'm currently implementing another command line for the telnet admin
> interface, and I'm facing one problem with the conn to search the ip of
> the session.
>
> I searched on the archives to know if the question has ever been asked,
> but I don't think so.
>
> So I would like to know why all my conn, or ip are at nil ?
I don't quite understand where this happens, could you perhaps show some
code?
>
> I browsed a bit the source code and I never find the call of the
> onconnect(conn) function with a normal conn.
>
> I only find the function called from net/server_event.lua, and it's
> called without any parameters.
This may be obscured a bit in server_select.lua, because it names it
dispatch() internally.
The call in server_event.lua I think you are referring to:
self:onconnect()
is equal to
self.onconnect(self)
so it does have a parameter.
--
Regards,
Kim "Zash" Alvefur