2005-06-17 23:10:15 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2001-2005, Haiku, Inc.
|
|
|
|
* Distributed under the terms of the MIT license.
|
|
|
|
*
|
2005-06-23 21:40:35 +04:00
|
|
|
* Authors:
|
|
|
|
* DarkWyrm <bpmagic@columbus.rr.com>
|
|
|
|
* Axel Dörfler, axeld@pinc-software.de
|
2005-11-02 16:15:36 +03:00
|
|
|
* Stephan Aßmus <superstippi@gmx.de>
|
2005-06-17 23:10:15 +04:00
|
|
|
*/
|
2005-06-23 21:40:35 +04:00
|
|
|
|
|
|
|
|
2005-11-14 22:46:20 +03:00
|
|
|
#include "AppServer.h"
|
2003-08-31 21:38:34 +04:00
|
|
|
|
2005-05-15 04:22:55 +04:00
|
|
|
#include "BitmapManager.h"
|
2003-03-31 01:09:39 +04:00
|
|
|
#include "ColorSet.h"
|
2005-05-15 04:22:55 +04:00
|
|
|
#include "CursorManager.h"
|
2005-06-17 23:10:15 +04:00
|
|
|
#include "DecorManager.h"
|
2005-05-15 04:22:55 +04:00
|
|
|
#include "DefaultDecorator.h"
|
|
|
|
#include "Desktop.h"
|
2005-11-02 16:25:39 +03:00
|
|
|
#include "FontManager.h"
|
2005-06-24 03:46:17 +04:00
|
|
|
#include "HWInterface.h"
|
* the new input event dispatcher is now actually used, although it doesn't
distribute any messages to the clients yet.
* removed the working thread from RootLayer - for now, its event handlers are
still called using input filters in the new event dispatcher, though (to
get things started).
* ServerApp is now using a BMessenger to identify its client, and no longer
stores the port/token separately.
* the input_server handshake is a bit simpler now, as it can now just reply
to the app_server message, removed unused code from ServerProtocol.h
* calmed down the MultiLocker (it always printed thread statistics on startup,
because it's compiled in debug mode).
* removed the cursor thread stuff from AppServer.cpp
* the new event dispatcher now uses a cursor thread when supported (only in
native mode, not in the test environment), although it improves cursor
movement under Qemu, the effect is not as good as expected - this might
need some more investigations (might just be a thread priority problem).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-18 14:30:06 +03:00
|
|
|
#include "InputManager.h"
|
2005-10-30 23:05:18 +03:00
|
|
|
#include "Layer.h"
|
2005-11-14 22:46:20 +03:00
|
|
|
#include "RGBColor.h"
|
|
|
|
#include "RegistrarDefs.h"
|
2005-05-15 04:22:55 +04:00
|
|
|
#include "RootLayer.h"
|
2005-07-15 16:45:23 +04:00
|
|
|
#include "ScreenManager.h"
|
2003-01-27 22:43:15 +03:00
|
|
|
#include "ServerApp.h"
|
2005-07-29 03:48:46 +04:00
|
|
|
#include "ServerConfig.h"
|
2003-02-20 23:14:57 +03:00
|
|
|
#include "ServerCursor.h"
|
2003-01-27 22:43:15 +03:00
|
|
|
#include "ServerProtocol.h"
|
2003-02-07 15:53:57 +03:00
|
|
|
#include "ServerWindow.h"
|
2005-06-08 01:32:24 +04:00
|
|
|
#include "SystemPalette.h"
|
2005-05-15 04:22:55 +04:00
|
|
|
|
2005-11-14 22:46:20 +03:00
|
|
|
#include <Accelerant.h>
|
|
|
|
#include <AppDefs.h>
|
|
|
|
#include <Autolock.h>
|
|
|
|
#include <Directory.h>
|
|
|
|
#include <Entry.h>
|
|
|
|
#include <File.h>
|
|
|
|
#include <Message.h>
|
|
|
|
#include <Path.h>
|
|
|
|
#include <PortLink.h>
|
|
|
|
#include <RosterPrivate.h>
|
|
|
|
#include <StopWatch.h>
|
|
|
|
|
|
|
|
#include <unistd.h>
|
2005-05-15 04:22:55 +04:00
|
|
|
|
2004-07-30 19:16:59 +04:00
|
|
|
|
* the new input event dispatcher is now actually used, although it doesn't
distribute any messages to the clients yet.
* removed the working thread from RootLayer - for now, its event handlers are
still called using input filters in the new event dispatcher, though (to
get things started).
* ServerApp is now using a BMessenger to identify its client, and no longer
stores the port/token separately.
* the input_server handshake is a bit simpler now, as it can now just reply
to the app_server message, removed unused code from ServerProtocol.h
* calmed down the MultiLocker (it always printed thread statistics on startup,
because it's compiled in debug mode).
* removed the cursor thread stuff from AppServer.cpp
* the new event dispatcher now uses a cursor thread when supported (only in
native mode, not in the test environment), although it improves cursor
movement under Qemu, the effect is not as good as expected - this might
need some more investigations (might just be a thread priority problem).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-18 14:30:06 +03:00
|
|
|
//#define DEBUG_SERVER
|
2004-07-30 19:16:59 +04:00
|
|
|
#ifdef DEBUG_SERVER
|
|
|
|
# include <stdio.h>
|
2003-09-09 01:08:27 +04:00
|
|
|
# define STRACE(x) printf x
|
|
|
|
#else
|
|
|
|
# define STRACE(x) ;
|
|
|
|
#endif
|
2004-01-20 01:18:37 +03:00
|
|
|
|
2005-06-23 21:40:35 +04:00
|
|
|
|
2003-02-15 18:28:22 +03:00
|
|
|
// Globals
|
2005-05-27 17:36:05 +04:00
|
|
|
port_id gAppServerPort;
|
2005-06-17 23:10:15 +04:00
|
|
|
static AppServer *sAppServer;
|
2005-11-14 22:46:20 +03:00
|
|
|
BTokenSpace gTokenSpace;
|
2003-01-20 23:38:49 +03:00
|
|
|
|
2003-03-31 01:09:39 +04:00
|
|
|
//! System-wide GUI color object
|
2005-06-24 07:31:41 +04:00
|
|
|
ColorSet gGUIColorSet;
|
2003-03-31 01:09:39 +04:00
|
|
|
|
2005-11-14 22:46:20 +03:00
|
|
|
|
2003-01-27 22:43:15 +03:00
|
|
|
/*!
|
|
|
|
\brief Constructor
|
|
|
|
|
|
|
|
This loads the default fonts, allocates all the major global variables, spawns the main housekeeping
|
|
|
|
threads, loads user preferences for the UI and decorator, and allocates various locks.
|
|
|
|
*/
|
2005-07-26 01:53:48 +04:00
|
|
|
AppServer::AppServer()
|
|
|
|
: MessageLooper("app_server"),
|
2005-11-04 19:56:15 +03:00
|
|
|
fMessagePort(-1),
|
|
|
|
fDesktops(),
|
2005-11-15 22:59:53 +03:00
|
|
|
fDesktopLock("AppServerDesktopLock")
|
2003-01-20 23:38:49 +03:00
|
|
|
{
|
2005-07-26 01:53:48 +04:00
|
|
|
fMessagePort = create_port(DEFAULT_MONITOR_PORT_SIZE, SERVER_PORT_NAME);
|
|
|
|
if (fMessagePort < B_OK)
|
2005-04-17 16:26:16 +04:00
|
|
|
debugger("app_server could not create message port");
|
2005-05-27 17:36:05 +04:00
|
|
|
|
2005-07-26 01:53:48 +04:00
|
|
|
fLink.SetReceiverPort(fMessagePort);
|
2005-05-27 17:36:05 +04:00
|
|
|
|
2005-05-28 17:43:13 +04:00
|
|
|
sAppServer = this;
|
2005-06-23 21:40:35 +04:00
|
|
|
|
* the new input event dispatcher is now actually used, although it doesn't
distribute any messages to the clients yet.
* removed the working thread from RootLayer - for now, its event handlers are
still called using input filters in the new event dispatcher, though (to
get things started).
* ServerApp is now using a BMessenger to identify its client, and no longer
stores the port/token separately.
* the input_server handshake is a bit simpler now, as it can now just reply
to the app_server message, removed unused code from ServerProtocol.h
* calmed down the MultiLocker (it always printed thread statistics on startup,
because it's compiled in debug mode).
* removed the cursor thread stuff from AppServer.cpp
* the new event dispatcher now uses a cursor thread when supported (only in
native mode, not in the test environment), although it improves cursor
movement under Qemu, the effect is not as good as expected - this might
need some more investigations (might just be a thread priority problem).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15012 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-18 14:30:06 +03:00
|
|
|
gInputManager = new InputManager();
|
|
|
|
|
2003-01-27 22:43:15 +03:00
|
|
|
// Create the font server and scan the proper directories.
|
2005-11-02 16:25:39 +03:00
|
|
|
gFontManager = new FontManager;
|
2005-11-03 20:03:36 +03:00
|
|
|
if (gFontManager->InitCheck() != B_OK)
|
|
|
|
debugger("font manager could not be initialized!");
|
|
|
|
|
|
|
|
gFontManager->Run();
|
2005-05-27 17:36:05 +04:00
|
|
|
|
2003-07-05 21:40:42 +04:00
|
|
|
// Load the GUI colors here and set the global set to the values contained therein. If this
|
|
|
|
// is not possible, set colors to the defaults
|
2005-06-24 07:31:41 +04:00
|
|
|
if (LoadColorSet(SERVER_SETTINGS_DIR COLOR_SETTINGS_NAME, &gGUIColorSet) != B_OK)
|
|
|
|
gGUIColorSet.SetToDefaults();
|
2003-07-12 02:30:55 +04:00
|
|
|
|
2005-07-15 16:45:23 +04:00
|
|
|
gScreenManager = new ScreenManager();
|
2005-07-26 01:08:34 +04:00
|
|
|
gScreenManager->Run();
|
2005-07-15 16:45:23 +04:00
|
|
|
|
2005-07-24 22:32:05 +04:00
|
|
|
// the system palette needs to be initialized before the desktop,
|
|
|
|
// since it is used there already
|
2005-06-08 01:32:24 +04:00
|
|
|
InitializeColorMap();
|
|
|
|
|
2003-02-20 23:14:57 +03:00
|
|
|
// Create the bitmap allocator. Object declared in BitmapManager.cpp
|
2005-06-24 07:31:41 +04:00
|
|
|
gBitmapManager = new BitmapManager();
|
2005-07-24 22:32:05 +04:00
|
|
|
|
2005-04-17 16:26:16 +04:00
|
|
|
#if 0
|
2005-10-31 22:35:46 +03:00
|
|
|
_LaunchCursorThread();
|
2005-04-17 16:26:16 +04:00
|
|
|
#endif
|
2003-01-20 23:38:49 +03:00
|
|
|
}
|
|
|
|
|
2003-01-27 22:43:15 +03:00
|
|
|
/*!
|
|
|
|
\brief Destructor
|
2005-07-26 01:53:48 +04:00
|
|
|
Reached only when the server is asked to shut down in Test mode.
|
2003-01-27 22:43:15 +03:00
|
|
|
*/
|
2005-06-24 07:31:41 +04:00
|
|
|
AppServer::~AppServer()
|
2003-01-20 23:38:49 +03:00
|
|
|
{
|
2005-06-24 07:31:41 +04:00
|
|
|
delete gBitmapManager;
|
2003-02-20 23:14:57 +03:00
|
|
|
|
2005-07-26 01:53:48 +04:00
|
|
|
gScreenManager->Lock();
|
|
|
|
gScreenManager->Quit();
|
2003-01-27 22:43:15 +03:00
|
|
|
|
2005-11-04 14:57:43 +03:00
|
|
|
gFontManager->Lock();
|
|
|
|
gFontManager->Quit();
|
2003-01-20 23:38:49 +03:00
|
|
|
}
|
|
|
|
|
2005-04-20 00:44:09 +04:00
|
|
|
|
2005-10-31 22:35:46 +03:00
|
|
|
/*!
|
|
|
|
\brief The call that starts it all...
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
AppServer::RunLooper()
|
|
|
|
{
|
|
|
|
rename_thread(find_thread(NULL), "picasso");
|
|
|
|
_message_thread((void *)this);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-11-15 22:59:53 +03:00
|
|
|
#if 0
|
2005-04-20 00:44:09 +04:00
|
|
|
/*!
|
|
|
|
\brief Starts Input Server
|
|
|
|
*/
|
|
|
|
void
|
2005-10-31 22:35:46 +03:00
|
|
|
AppServer::_LaunchInputServer()
|
2005-04-20 00:44:09 +04:00
|
|
|
{
|
|
|
|
// We are supposed to start the input_server, but it's a BApplication
|
|
|
|
// that depends on the registrar running, which is started after app_server
|
|
|
|
// so we wait on roster thread to launch the input server
|
|
|
|
|
|
|
|
fISThreadID = B_ERROR;
|
|
|
|
|
2005-06-23 21:40:35 +04:00
|
|
|
while (!BRoster::Private().IsMessengerValid(false) && !fQuitting) {
|
2005-04-20 00:44:09 +04:00
|
|
|
snooze(250000);
|
2005-06-17 02:30:50 +04:00
|
|
|
BRoster::Private::DeleteBeRoster();
|
|
|
|
BRoster::Private::InitBeRoster();
|
2005-04-20 00:44:09 +04:00
|
|
|
}
|
|
|
|
|
2005-06-23 21:40:35 +04:00
|
|
|
if (fQuitting)
|
2005-04-20 00:44:09 +04:00
|
|
|
return;
|
|
|
|
|
|
|
|
// we use an area for cursor data communication with input_server
|
|
|
|
// area id and sem id are sent to the input_server
|
|
|
|
|
|
|
|
if (fCursorArea < B_OK)
|
|
|
|
fCursorArea = create_area("isCursor", (void**) &fCursorAddr, B_ANY_ADDRESS, B_PAGE_SIZE, B_FULL_LOCK, B_READ_AREA | B_WRITE_AREA);
|
|
|
|
if (fCursorSem < B_OK)
|
2005-05-15 04:22:55 +04:00
|
|
|
fCursorSem = create_sem(0, "isSem");
|
2005-04-20 00:44:09 +04:00
|
|
|
|
|
|
|
int32 arg_c = 1;
|
|
|
|
char **arg_v = (char **)malloc(sizeof(char *) * (arg_c + 1));
|
2005-04-28 14:10:52 +04:00
|
|
|
#if TEST_MODE
|
|
|
|
arg_v[0] = strdup("/boot/home/svnhaiku/trunk/distro/x86.R1/beos/system/servers/input_server");
|
|
|
|
#else
|
|
|
|
arg_v[0] = strdup("/system/servers/input_server");
|
|
|
|
#endif
|
2005-04-20 00:44:09 +04:00
|
|
|
arg_v[1] = NULL;
|
|
|
|
fISThreadID = load_image(arg_c, (const char**)arg_v, (const char **)environ);
|
|
|
|
free(arg_v[0]);
|
|
|
|
|
|
|
|
int32 tmpbuf[2] = {fCursorSem, fCursorArea};
|
2005-05-15 04:22:55 +04:00
|
|
|
int32 code = 0;
|
|
|
|
send_data(fISThreadID, code, (void *)tmpbuf, sizeof(tmpbuf));
|
2005-04-20 00:44:09 +04:00
|
|
|
|
|
|
|
resume_thread(fISThreadID);
|
|
|
|
setpgid(fISThreadID, 0);
|
|
|
|
|
|
|
|
// we receive
|
|
|
|
|
|
|
|
thread_id sender;
|
2005-05-15 04:22:55 +04:00
|
|
|
code = receive_data(&sender, (void *)tmpbuf, sizeof(tmpbuf));
|
|
|
|
fISASPort = tmpbuf[0];
|
|
|
|
fISPort = tmpbuf[1];
|
2005-04-20 00:44:09 +04:00
|
|
|
|
|
|
|
// if at any time, one of these ports is error prone, it might mean input_server is gone
|
|
|
|
// then relaunch input_server
|
|
|
|
}
|
2005-11-15 22:59:53 +03:00
|
|
|
#endif
|
2005-04-20 00:44:09 +04:00
|
|
|
|
|
|
|
|
2003-02-15 18:28:22 +03:00
|
|
|
/*!
|
2005-10-31 22:35:46 +03:00
|
|
|
\brief Creates a desktop object for an authorized user
|
2003-02-15 18:28:22 +03:00
|
|
|
*/
|
2005-10-31 22:35:46 +03:00
|
|
|
Desktop *
|
|
|
|
AppServer::_CreateDesktop(uid_t userID)
|
2003-01-20 23:38:49 +03:00
|
|
|
{
|
2005-10-31 22:35:46 +03:00
|
|
|
BAutolock locker(fDesktopLock);
|
|
|
|
Desktop* desktop = NULL;
|
|
|
|
try {
|
|
|
|
desktop = new Desktop(userID);
|
|
|
|
|
|
|
|
desktop->Init();
|
|
|
|
desktop->Run();
|
|
|
|
|
|
|
|
if (!fDesktops.AddItem(desktop)) {
|
|
|
|
delete desktop;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
} catch (...) {
|
|
|
|
// there is obviously no memory left
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return desktop;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
\brief Finds the desktop object that belongs to a certain user
|
|
|
|
*/
|
|
|
|
Desktop *
|
|
|
|
AppServer::_FindDesktop(uid_t userID)
|
|
|
|
{
|
|
|
|
BAutolock locker(fDesktopLock);
|
|
|
|
|
|
|
|
for (int32 i = 0; i < fDesktops.CountItems(); i++) {
|
|
|
|
Desktop* desktop = fDesktops.ItemAt(i);
|
|
|
|
|
|
|
|
if (desktop->UserID() == userID)
|
|
|
|
return desktop;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
2003-01-20 23:38:49 +03:00
|
|
|
}
|
|
|
|
|
2005-07-26 01:53:48 +04:00
|
|
|
|
2003-01-27 22:43:15 +03:00
|
|
|
/*!
|
|
|
|
\brief Message handling function for all messages sent to the app_server
|
|
|
|
\param code ID of the message sent
|
2004-07-30 19:16:59 +04:00
|
|
|
\param buffer Attachment buffer for the message.
|
2003-01-27 22:43:15 +03:00
|
|
|
|
|
|
|
*/
|
2005-05-26 19:06:31 +04:00
|
|
|
void
|
2005-07-26 01:53:48 +04:00
|
|
|
AppServer::_DispatchMessage(int32 code, BPrivate::LinkReceiver& msg)
|
2003-01-20 23:38:49 +03:00
|
|
|
{
|
2005-05-26 19:06:31 +04:00
|
|
|
switch (code) {
|
2005-07-26 01:08:34 +04:00
|
|
|
case AS_GET_DESKTOP:
|
2003-01-27 22:43:15 +03:00
|
|
|
{
|
2005-07-26 01:08:34 +04:00
|
|
|
port_id replyPort;
|
|
|
|
if (msg.Read<port_id>(&replyPort) < B_OK)
|
2005-06-08 08:01:59 +04:00
|
|
|
break;
|
2005-05-26 19:06:31 +04:00
|
|
|
|
2005-07-26 01:08:34 +04:00
|
|
|
int32 userID;
|
|
|
|
msg.Read<int32>(&userID);
|
2003-01-27 22:43:15 +03:00
|
|
|
|
2005-10-31 22:35:46 +03:00
|
|
|
Desktop* desktop = _FindDesktop(userID);
|
|
|
|
if (desktop == NULL) {
|
|
|
|
// we need to create a new desktop object for this user
|
|
|
|
// ToDo: test if the user exists on the system
|
|
|
|
// ToDo: maybe have a separate AS_START_DESKTOP_SESSION for authorizing the user
|
|
|
|
desktop = _CreateDesktop(userID);
|
|
|
|
}
|
|
|
|
|
2005-07-26 01:08:34 +04:00
|
|
|
BPrivate::LinkSender reply(replyPort);
|
|
|
|
reply.StartMessage(B_OK);
|
2005-10-31 22:35:46 +03:00
|
|
|
reply.Attach<port_id>(desktop->MessagePort());
|
2005-07-26 01:08:34 +04:00
|
|
|
reply.Flush();
|
2003-01-27 22:43:15 +03:00
|
|
|
break;
|
|
|
|
}
|
2005-06-23 21:40:35 +04:00
|
|
|
|
2005-04-14 04:11:33 +04:00
|
|
|
#if TEST_MODE
|
2005-06-23 21:40:35 +04:00
|
|
|
case B_QUIT_REQUESTED:
|
2005-07-26 01:08:34 +04:00
|
|
|
{
|
2003-01-27 22:43:15 +03:00
|
|
|
// We've been asked to quit, so (for now) broadcast to all
|
2005-10-31 22:35:46 +03:00
|
|
|
// desktops to quit. This situation will occur only when the server
|
2003-01-27 22:43:15 +03:00
|
|
|
// is compiled as a regular Be application.
|
2005-03-08 00:52:41 +03:00
|
|
|
|
2005-06-23 21:40:35 +04:00
|
|
|
fQuitting = true;
|
2005-07-05 05:02:32 +04:00
|
|
|
|
2005-10-31 22:35:46 +03:00
|
|
|
while (fDesktops.CountItems() > 0) {
|
|
|
|
Desktop *desktop = fDesktops.RemoveItemAt(0);
|
|
|
|
|
2005-11-02 16:15:36 +03:00
|
|
|
thread_id thread = desktop->Thread();
|
2005-10-31 22:35:46 +03:00
|
|
|
desktop->PostMessage(B_QUIT_REQUESTED);
|
|
|
|
|
|
|
|
// we just wait for the desktop to kill itself
|
|
|
|
status_t status;
|
|
|
|
wait_for_thread(thread, &status);
|
|
|
|
}
|
2005-03-04 02:21:36 +03:00
|
|
|
|
2005-07-26 01:53:48 +04:00
|
|
|
delete this;
|
2004-01-17 21:37:57 +03:00
|
|
|
|
|
|
|
// we are now clear to exit
|
2005-07-06 08:57:57 +04:00
|
|
|
exit(0);
|
2003-01-27 22:43:15 +03:00
|
|
|
break;
|
2005-07-06 08:57:57 +04:00
|
|
|
}
|
2005-06-23 21:40:35 +04:00
|
|
|
#endif
|
|
|
|
|
2003-01-27 22:43:15 +03:00
|
|
|
default:
|
2005-06-23 21:40:35 +04:00
|
|
|
STRACE(("Server::MainLoop received unexpected code %ld (offset %ld)\n",
|
|
|
|
code, code - SERVER_TRUE));
|
2003-01-27 22:43:15 +03:00
|
|
|
break;
|
|
|
|
}
|
2003-01-20 23:38:49 +03:00
|
|
|
}
|
|
|
|
|
2005-06-23 21:40:35 +04:00
|
|
|
|
|
|
|
// #pragma mark -
|
|
|
|
|
|
|
|
|
2003-01-27 22:43:15 +03:00
|
|
|
/*!
|
|
|
|
\brief Entry function to run the entire server
|
|
|
|
\param argc Number of command-line arguments present
|
|
|
|
\param argv String array of the command-line arguments
|
|
|
|
\return -1 if the app_server is already running, 0 if everything's OK.
|
|
|
|
*/
|
2005-05-27 14:57:25 +04:00
|
|
|
int
|
|
|
|
main(int argc, char** argv)
|
2003-01-20 23:38:49 +03:00
|
|
|
{
|
|
|
|
// There can be only one....
|
2005-05-27 17:36:05 +04:00
|
|
|
if (find_port(SERVER_PORT_NAME) >= B_OK)
|
2003-01-20 23:38:49 +03:00
|
|
|
return -1;
|
|
|
|
|
2005-03-13 20:07:40 +03:00
|
|
|
srand(real_time_clock_usecs());
|
2005-06-23 21:40:35 +04:00
|
|
|
|
2005-07-26 01:53:48 +04:00
|
|
|
AppServer* server = new AppServer;
|
|
|
|
server->RunLooper();
|
2005-06-23 21:40:35 +04:00
|
|
|
|
2003-01-20 23:38:49 +03:00
|
|
|
return 0;
|
|
|
|
}
|