Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

mxcpcCameraLiveMxPEGFastStreamPOSIX.h

00001 //           ///          //                                        Mx clientSDK
00002 //          /////        ////                    Mx Crossplatform Client Library
00003 //         /// XXX     XXX ///
00004 //        ///    XXX XXX    ///     $RCSfile: mxcpcCameraLiveMxPEGFastStreamPOSIX.h,v $
00005 //       ///       XXX       ///     $Revision: 1.3 $
00006 //      ///      XXX XXX      ///     $Date: 2005/12/09 15:33:45 $
00007 //     ////    XXX     XXX    ////     $Author: cvs-kai $
00008 //    ////                     ////
00009 //   ////  M  O  B  O  T  I  X  ////////////////////////////////////////////////
00010 //  //// Security Vision Systems //////////////////////////////////////////////
00011 //                                                                          //
00012 //  Copyright (C) 2005 - 2006, MOBOTIX AG, Germany                         //
00013 //  This software is made available under the BSD licence. Please refer   //
00014 //  to the file LICENCE.TXT contained in this distribution for details.  //
00015 //                                                                      //
00016 //  /////////////////////////////////////////////////////////////////////
00017 
00018 
00019 
00020 #ifndef __MXCPC_CAMERALIVEMXPEGFASTSTREAMPOSIX_H__
00021 #define __MXCPC_CAMERALIVEMXPEGFASTSTREAMPOSIX_H__
00022 
00023 
00024 
00025 #include <mxcpcCameraLiveMxPEGFastStream.h>
00026 #include <mxcpcIPAddress.h>
00027 
00028 
00029 
00030 //! Low-level camera faststream access implementation directly using POSIX 
00031 //! socket I/O.
00032 /*!
00033  *  \ingroup mxcpc_core
00034  */
00035 class mxcpcCameraLiveMxPEGFastStreamPOSIX 
00036         : public mxcpcCameraLiveMxPEGFastStream {
00037 
00038  private:
00039   int Socket;
00040         
00041  public:
00042   mxcpcCameraLiveMxPEGFastStreamPOSIX(int ip1, int ip2, int ip3, int ip4, 
00043                                       int port,
00044                                       int fps = 4,
00045                                       bool asynchronous = true);
00046   mxcpcCameraLiveMxPEGFastStreamPOSIX(const mxcpcIPAddress& camera_ip, 
00047                                       int port,
00048                                       float fps = 4.0,
00049                                       bool asynchronous = true);
00050  private:
00051   void constructCommonStuff(const mxcpcIPAddress& camera_ip, 
00052                             int port,
00053                             float fps,
00054                             bool asynchronous = true);
00055  public:
00056   ~mxcpcCameraLiveMxPEGFastStreamPOSIX();
00057   
00058  public:
00059   //! Reimplemented.
00060   int fetchBytes(unsigned char *buffer, int num);
00061 };
00062 
00063 
00064 
00065 #endif   // __MXCPC_CAMERALIVEMXPEGFASTSTREAMPOSIX_H__

Generated on Mon Jan 30 15:13:06 2006 for mxcpc by  doxygen 1.4.4