From caabd6510bf55c8a040e9bcd02161714e3b70951 Mon Sep 17 00:00:00 2001 From: Carlos Daniel Ruvalcaba Valenzuela Date: Sat, 29 Sep 2007 18:58:51 -0700 Subject: [PATCH] Applied WANG Cong patch: Coding Style Cleanups for backends/mailbox/fsmailbox.cpp --- backends/mailbox/fsmailbox.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/backends/mailbox/fsmailbox.cpp b/backends/mailbox/fsmailbox.cpp index 71cb8a6..1b60fd0 100644 --- a/backends/mailbox/fsmailbox.cpp +++ b/backends/mailbox/fsmailbox.cpp @@ -101,18 +101,18 @@ public: class SimpleLoad : public LoadHandler{ public: - int Dispatch(Socket *sock, ProtocolHandler *ph){ - printf("SimpleLoad: Dispatching\n"); - if (ph) - return ph->Handle(sock); - return 0; - } + int Dispatch(Socket *sock, ProtocolHandler *ph){ + printf("SimpleLoad: Dispatching\n"); + if (ph) + return ph->Handle(sock); + return 0; + } }; int main(){ - //BaseServer *serv; - LoadHandler *lh; - FSMailbox *handler; + //BaseServer *serv; + LoadHandler *lh; + FSMailbox *handler; Socket *s, *client; int r; @@ -122,13 +122,13 @@ int main(){ s->Bind(); s->Listen(10); - - printf("Creating new FSMailbox\n"); - handler = new FSMailbox(); - - printf("Creating new SimpleLoad\n"); - lh = new SimpleLoad(); - + + printf("Creating new FSMailbox\n"); + handler = new FSMailbox(); + + printf("Creating new SimpleLoad\n"); + lh = new SimpleLoad(); + while (1){ r = s->Poll(10000, SOCKET_POLL_READ); if (r == SOCKET_POLL_READ){ -- 2.11.4.GIT