00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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
00031
00032
00033
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
00060 int fetchBytes(unsigned char *buffer, int num);
00061 };
00062
00063
00064
00065 #endif // __MXCPC_CAMERALIVEMXPEGFASTSTREAMPOSIX_H__