Lines Matching defs:handler
2 handler.cpp
4 Multi-threaded C++ stand-alone event handler service
15 cc -o handler++ handler.cpp stdsoap2.cpp soapC.cpp soapEventService.cpp soapEventProxy.cpp
18 handler 18000 &
25 fixed using MSG_NOSIGNAL, SO_NOSIGPIPE, or with a signal handler,
76 { fprintf(stderr, "Usage: handler <port>\n");
81 EventService handler(SOAP_IO_KEEPALIVE, SOAP_IO_KEEPALIVE | SOAP_XML_INDENT);
82 handler.accept_timeout = TIMEOUT;
83 handler.bind_flags |= SO_REUSEADDR; /* don't use this in unsecured environments */
84 /* handler.socket_flags = MSG_NOSIGNAL; */ /* use this to disable SIGPIPE */
85 /* handler.bind_flags |= SO_NOSIGPIPE; */ /* or use this to disable SIGPIPE */
86 SOAP_SOCKET m = handler.bind(NULL, port, BACKLOG);
88 { handler.soap_print_fault(stderr);
93 { SOAP_SOCKET s = handler.accept();
95 { if (handler.errnum)
96 handler.soap_print_fault(stderr);
101 fprintf(stderr, "Thread %d accepts socket %d connection from IP %d.%d.%d.%d\n", i, s, (int)(handler.ip>>24)&0xFF, (int)(handler.ip>>16)&0xFF, (int)(handler.ip>>8)&0xFF, (int)handler.ip&0xFF);
102 EventService *thandler = handler.copy();
114 { EventService *handler = (EventService *)thandler;
118 handler->serve();
119 delete handler;