Update of /cvsroot/playerstage/code/player/libplayertcp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7786/libplayertcp

Modified Files:
        playertcp.cc playertcp.h 
Log Message:
new static hook for initialization

Index: playertcp.h
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayertcp/playertcp.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** playertcp.h 23 Aug 2007 19:58:42 -0000      1.23
--- playertcp.h 21 Sep 2007 18:30:39 -0000      1.24
***************
*** 141,147 ****
--- 141,150 ----
      ~PlayerTCP();
  
+     static void InitGlobals(void);
+ 
      pthread_t thread;
  
      int Listen(int* ports, int num_ports);
+     int Listen(int port);
      QueuePointer AddClient(struct sockaddr_in* cliaddr, 
                              unsigned int local_host,

Index: playertcp.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayertcp/playertcp.cc,v
retrieving revision 1.60
retrieving revision 1.61
diff -C2 -d -r1.60 -r1.61
*** playertcp.cc        21 Sep 2007 03:31:49 -0000      1.60
--- playertcp.cc        21 Sep 2007 18:30:39 -0000      1.61
***************
*** 111,114 ****
--- 111,121 ----
  } playertcp_conn_t;
  
+ void
+ PlayerTCP::InitGlobals(void)
+ {
+   player_globals_init();
+   ErrorInit(9);
+   playerxdr_ftable_init();
+ }
  
  PlayerTCP::PlayerTCP()
***************
*** 190,193 ****
--- 197,207 ----
  }
  
+ int
+ PlayerTCP::Listen(int port)
+ {
+   int p = port;
+   return(this->Listen(&p,1));
+ }
+ 
  // should be called with client_mutex locked
  QueuePointer


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to