Hi, I agree with you There is a listener command when it is called it listens to all handle functions when they have been written with official name, such as: > _handle_PacketIn
Also, you can read this topic: Listeners in class In pox dev archive Best regards, Amer On ١٦/١١/٢٠١٣, at ١١:٢٩ م, farshad tajedin <farshad.taje...@gmail.com> wrote: > hi amer > in the of_tutorial.py file and in lunch function below code is exist: > ''''''''''''''''''''''''''''''''''''''''''''''''''''''' > def start_switch (event): > > log.debug("Controlling %s" % (event.connection,)) > Tutorial(event.connection) > core.openflow.addListenerByName("ConnectionUp", start_switch) > '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' > and it call _handle_PacketIn function that defined in the class > tutorial, i agree with you that it must be in form of > core.openflow.addListenerByName("PacketInReceived", _handle_PacketIn) > to calling _handle_PacketIn function but the first one do this!!!! i > dont know how > > On 11/16/13, Amer <amer7...@hotmail.com> wrote: >> Hello, >> >> You should add a listener something like: >> core.openflow.addListenerByName("PacketInReceived", _handle_PacketIn) >> Or you can check Pox wiki to correct this statement, also this statement >> should be added in def launch >> >> Or check in pox archive the topic >> Listener in class >> >> Cheers >> Amer >> >> Sent from my iPhone >> >> On ١٦/١١/٢٠١٣, at ٥:١٩ م, farshad tajedin <farshad.taje...@gmail.com> >> wrote: >> >>> hi >>> i have a question about of_tutorial.py: how " _handle_PacketIn" >>> function is called? >>> >>> -- >>> Best Regards >>> >>> Farshad Tajedin > > > -- > Best Regards > > Farshad Tajedin >