Now you can download a copy of these docs so you can use them offline! Download now
PCVideoServer.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 
7 #ifndef __PC_VIDEO_SERVER_H__
8 #define __PC_VIDEO_SERVER_H__
9 
10 #include "Task.h"
11 #include <semLib.h>
12 
14 #define VIDEO_TO_PC_PORT 1180
15 
19 class PCVideoServer : public ErrorBase {
20 
21 public:
22  PCVideoServer();
24  unsigned int Release();
25  void Start();
26  void Stop();
27 
28 private:
29  static int s_ServerTask(PCVideoServer *thisPtr);
30  int ServerTask();
31  int StartServerTask();
32 
33  Task m_serverTask;
34  SEM_ID m_newImageSem;
35  bool m_stopServer;
36 };
37 
38 #endif
39 
void Start()
Start sending images to the PC.
~PCVideoServer()
Destructor. Stop serving images and destroy this class.
void Stop()
Stop sending images to the PC.
Definition: Task.h:17
PCVideoServer()
Constructor.

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6