Jump to content

CGI, Java Applets & C++

- - - - -

  • Please log in to reply
No replies to this topic

#1
aloplop

aloplop

    Newbie

  • Members
  • Pip
  • 2 posts
Hello,

the fact is that I have 2 C++ Programmes running together (programmed in Borland Builder 6).

In the first, I have the main interface, where I load a modified version of a html file which accompanies an IP camera (port 80). In this file an <APPLET name = "cvcs" > is loaded.

In the second programme I have the main application (the file which makes every calculations). From this one, I would like also to connect to the camera and send to it commands (cvcs.MovePanTiltDegree(i) /*to move the camera up, down left or right*/ and cvcs.Zoom(1) /* to make a zoom */, TWO METHODS of the applet ).

However, a Technical assistant from the camera´s company, sent me a file which tells that the communication to the camera is done by SDK (CGI commands).
For example:

" POST /pantiltcontrol.cgi HTTP/1.0(0D0A)
User-Agent: agent_name(0D0A)
Content-length: length(0D0A)
Authorization: Basic encoded_id_password(0D0A)(0D0A)
PanTiltCommand=value(0D0A)(0D0A) "

Should I create a char chain as long as these to send to the camera through a TCP socket connected to the Port 80 ????

What should I do??? Is it possible to communicate to the camera with a c++ programme???




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users