ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Smersh/Daemon.cpp
(Generate patch)

Comparing Smersh/Daemon.cpp (file contents):
Revision 182 by Douglas Thrift, 2004-07-03T06:52:04-07:00 vs.
Revision 184 by Douglas Thrift, 2004-07-13T21:43:09-07:00

# Line 12 | Line 12 | void Daemon::serve(bool fork, Daemon* se
12   {
13          api::TcpSocket server;
14  
15        server.Create();
15          server.SetAddress(api::InternetAddress(api::InternetAddress::Any, port));
16  
17          if (fork)
# Line 35 | Line 34 | void Daemon::serve(bool fork, Daemon* se
34  
35          while (true)
36          {
37 <                Client* client (new Client);
39 <
40 <                server.Accept(client->socket, &client->ip);
41 <
37 >                Client* client (new Client(server));
38                  api::Thread thread(etl::BindAll(&Daemon::handle, self, client));
39          }
40   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines