Changeset 334
- Timestamp:
- 05/26/07 07:10:45 (2 years ago)
- Files:
-
- version_0/ext/ed.cpp (modified) (7 diffs)
- version_0/ext/em.cpp (modified) (2 diffs)
- version_0/ext/em.h (modified) (2 diffs)
- version_0/ext/emwin.cpp (modified) (1 diff)
- version_0/ext/eventmachine.h (modified) (1 diff)
- version_0/ext/project.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
version_0/ext/ed.cpp
r325 r334 86 86 { 87 87 if (EventCallback) 88 (*EventCallback)(GetBinding().c_str(), E ventMachine_t::CONNECTION_UNBOUND, NULL, 0);88 (*EventCallback)(GetBinding().c_str(), EM_CONNECTION_UNBOUND, NULL, 0); 89 89 Close(); 90 90 } … … 422 422 B [s] = 0; 423 423 if (EventCallback) 424 (*EventCallback)(GetBinding().c_str(), E ventMachine_t::CONNECTION_READ, B, s);424 (*EventCallback)(GetBinding().c_str(), EM_CONNECTION_READ, B, s); 425 425 } 426 426 // INCOMPLETE, s may indicate an SSL error that would force the connection down. … … 429 429 else { 430 430 if (EventCallback) 431 (*EventCallback)(GetBinding().c_str(), E ventMachine_t::CONNECTION_READ, buffer, size);431 (*EventCallback)(GetBinding().c_str(), EM_CONNECTION_READ, buffer, size); 432 432 } 433 433 #endif … … 435 435 #ifdef WITHOUT_SSL 436 436 if (EventCallback) 437 (*EventCallback)(GetBinding().c_str(), E ventMachine_t::CONNECTION_READ, buffer, size);437 (*EventCallback)(GetBinding().c_str(), EM_CONNECTION_READ, buffer, size); 438 438 #endif 439 439 } … … 473 473 if ((o == 0) && (error == 0)) { 474 474 if (EventCallback) 475 (*EventCallback)(GetBinding().c_str(), E ventMachine_t::CONNECTION_COMPLETED, "", 0);475 (*EventCallback)(GetBinding().c_str(), EM_CONNECTION_COMPLETED, "", 0); 476 476 bConnectPending = false; 477 477 } … … 745 745 cd->SetServerMode(); 746 746 if (EventCallback) { 747 (*EventCallback) (GetBinding().c_str(), E ventMachine_t::CONNECTION_ACCEPTED, cd->GetBinding().c_str(), cd->GetBinding().size());747 (*EventCallback) (GetBinding().c_str(), EM_CONNECTION_ACCEPTED, cd->GetBinding().c_str(), cd->GetBinding().size()); 748 748 } 749 749 assert (MyEventMachine); … … 870 870 871 871 if (EventCallback) 872 (*EventCallback)(GetBinding().c_str(), E ventMachine_t::CONNECTION_READ, readbuffer, r);872 (*EventCallback)(GetBinding().c_str(), EM_CONNECTION_READ, readbuffer, r); 873 873 874 874 } version_0/ext/em.cpp
r332 r334 403 403 read (LoopBreakerReader, buffer, sizeof(buffer)); 404 404 if (EventCallback) 405 (*EventCallback)("", E ventMachine_t::LOOPBREAK_SIGNAL, "", 0);405 (*EventCallback)("", EM_LOOPBREAK_SIGNAL, "", 0); 406 406 } 407 407 … … 441 441 break; 442 442 if (EventCallback) 443 (*EventCallback) ("", TIMER_FIRED, i->second.GetBinding().c_str(), i->second.GetBinding().length());443 (*EventCallback) ("", EM_TIMER_FIRED, i->second.GetBinding().c_str(), i->second.GetBinding().length()); 444 444 Timers.erase (i); 445 445 } version_0/ext/em.h
r325 r334 77 77 static void SetuidString (const char*); 78 78 79 /* 79 80 public: 80 81 enum { // Event names … … 86 87 LOOPBREAK_SIGNAL = 105 87 88 }; 89 */ 88 90 89 91 version_0/ext/emwin.cpp
r325 r334 139 139 break; 140 140 if (EventCallback) 141 (*EventCallback) ("", TIMER_FIRED, i->second.GetBinding().c_str(), i->second.GetBinding().length());141 (*EventCallback) ("", EM_TIMER_FIRED, i->second.GetBinding().c_str(), i->second.GetBinding().length()); 142 142 Timers.erase (i); 143 143 } version_0/ext/eventmachine.h
r325 r334 24 24 extern "C" { 25 25 #endif 26 27 enum { // Event names 28 EM_TIMER_FIRED = 100, 29 EM_CONNECTION_READ = 101, 30 EM_CONNECTION_UNBOUND = 102, 31 EM_CONNECTION_ACCEPTED = 103, 32 EM_CONNECTION_COMPLETED = 104, 33 EM_LOOPBREAK_SIGNAL = 105 34 }; 26 35 27 36 void evma_initialize_library (void(*)(const char*, int, const char*, int)); version_0/ext/project.h
r325 r334 91 91 #include "page.h" 92 92 #include "ssl.h" 93 #include "eventmachine.h" 93 94 94 95
