Hi,
first of: this is my first post on Cplusplus (please let me if this is the wrong sub forum, sorry) and please excuse my writing since english is not my native language.
So, im trying to control a highspeed camera with a windows application using winsock (client-server chat). The camera is connected via ethernet and it does accept TCP connections to a given port. A control stream is implemented as TCP stream socket.
Control Stream Syntax: "All communication over the control streams is done in text (ASCII) format. The commands are formatted so that it is reasonable for a human to type commands and interpret the results.
The control stream command interpreter reads command lines and produces re-
sponse lines. For each command line there is exactly one reponse line. Receiving
a newline causes the command interpreter to attempt to execute all input since the last newline as a command. After the response (or error) is generated, the command interpreter returns to it’s base state.
Command lines are limited to a total length of 65536 bytes (including the newline). All response lines are guaranteed not to exceed the same length."
I already was able to establish a telnet connection to the camera and send /receive messages.
BUT: my c++ client application wont receive or send any messages. It says the connection is established successfully though.
Im using Windows 10 and Visual Studio 2015; my Code: