00001 /*************************************************************************** 00002 *cr 00003 *cr (C) Copyright 1995-2008 The Board of Trustees of the 00004 *cr University of Illinois 00005 *cr All Rights Reserved 00006 *cr 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * RCS INFORMATION: 00011 * 00012 * $RCSfile: VMDCollab.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.3 $ $Date: 2008/03/27 19:36:48 $ 00015 * 00016 ***************************************************************************/ 00017 00018 #ifndef VMDCOLLAB_H 00019 #define VMDCOLLAB_H 00020 00021 #include "UIObject.h" 00022 #include "ResizeArray.h" 00023 class Inform; 00024 00025 class VMDCollab : public UIObject { 00026 00027 private: 00028 void *serversock; 00029 static void *serverproc(void *v); 00030 00031 Inform *cmdbufstr; 00032 void *clientsock; 00033 bool eval_in_progress; 00034 00035 public: 00036 // normal constructor 00037 VMDCollab(VMDApp *); 00038 ~VMDCollab(); 00039 00040 // start a vmdcollab server on localhost using the given port. 00041 // Return success. 00042 int startserver(int port); 00043 00044 void stopserver(); 00045 00046 // connect to a vmdcollab server at the given host/port. Fails if 00047 // already connected to another server. Return success. 00048 int connect(const char *host, int port); 00049 00050 // close client connection to collab server 00051 void disconnect(); 00052 00053 // virtual UIObject methods 00054 int check_event(); 00055 int act_on_command(int, Command *); 00056 }; 00057 00058 #endif
1.2.14 written by Dimitri van Heesch,
© 1997-2002