#include <BackDoor.h>
Inheritance diagram for BackDoorAnalyzer:


Public Member Functions | |
| BackDoorAnalyzer (TCP_Connection *c) | |
| ~BackDoorAnalyzer () | |
| void | Done () |
| void | StatTimer (double t, int is_expire) |
Protected Member Functions | |
| void | StatEvent () |
| void | RemoveEvent () |
Protected Attributes | |
| BackDoorEndpoint * | orig_endp |
| BackDoorEndpoint * | resp_endp |
| double | timeout |
| double | backoff |
|
|
Definition at line 699 of file BackDoor.cc. References TimerMgr::Add(), backdoor_stat_backoff, backdoor_stat_period, backoff, network_time, TCP_Connection::Orig(), orig_endp, TCP_Connection::Resp(), resp_endp, timeout, and timer_mgr.
00700 : TCP_Analyzer(c) 00701 { 00702 orig_endp = new BackDoorEndpoint(conn->Orig()); 00703 resp_endp = new BackDoorEndpoint(conn->Resp()); 00704 00705 timeout = backdoor_stat_period; 00706 backoff = backdoor_stat_backoff; 00707 00708 timer_mgr->Add(new BackDoorTimer(network_time + timeout, this)); 00709 } |
|
|
Definition at line 711 of file BackDoor.cc. References Done(), orig_endp, resp_endp, and BroObj::Unref.
|
|
|
Reimplemented from TCP_Analyzer. Definition at line 719 of file BackDoor.cc. References TCP_Analyzer::Conn(), BackDoorEndpoint::FinalCheckForRlogin(), orig_endp, RemoveEvent(), resp_endp, Connection::Skipping(), and StatEvent(). Referenced by ~BackDoorAnalyzer().
00720 {
00721 if ( ! done )
00722 {
00723 orig_endp->FinalCheckForRlogin();
00724 resp_endp->FinalCheckForRlogin();
00725
00726 if ( ! Conn()->Skipping() )
00727 StatEvent();
00728
00729 RemoveEvent();
00730 done = 1;
00731 }
00732 }
|
|
|
Definition at line 758 of file BackDoor.cc. References TCP_Analyzer::Conn(), and Connection::ConnectionEvent(). Referenced by Done().
00759 {
00760 val_list* vl = new val_list;
00761 vl->append(Conn()->BuildConnVal());
00762
00763 Conn()->ConnectionEvent(backdoor_remove_conn, vl);
00764 }
|
|
|
Definition at line 748 of file BackDoor.cc. References BackDoorEndpoint::BuildStats(), TCP_Analyzer::Conn(), Connection::ConnectionEvent(), orig_endp, and resp_endp. Referenced by Done(), and StatTimer().
00749 {
00750 val_list* vl = new val_list;
00751 vl->append(Conn()->BuildConnVal());
00752 vl->append(orig_endp->BuildStats());
00753 vl->append(resp_endp->BuildStats());
00754
00755 Conn()->ConnectionEvent(backdoor_stats, vl);
00756 }
|
|
||||||||||||
|
Definition at line 734 of file BackDoor.cc. References TimerMgr::Add(), backoff, TCP_Analyzer::Conn(), Connection::Skipping(), StatEvent(), timeout, and timer_mgr. Referenced by BackDoorTimer::Dispatch().
|
|
|
Definition at line 97 of file BackDoor.h. Referenced by BackDoorAnalyzer(), and StatTimer(). |
|
|
Definition at line 94 of file BackDoor.h. Referenced by BackDoorAnalyzer(), Done(), StatEvent(), and ~BackDoorAnalyzer(). |
|
|
Definition at line 95 of file BackDoor.h. Referenced by BackDoorAnalyzer(), Done(), StatEvent(), and ~BackDoorAnalyzer(). |
|
|
Definition at line 96 of file BackDoor.h. Referenced by BackDoorAnalyzer(), and StatTimer(). |
1.3.5