I would like to build a simple DLL, using C++ and Async socket ( have a skeleton ) that have the following functions:
1) Connect- Takes a host, port
2) char * ReadLine- Return an received data from host [ non-blocking], or null if no data was received from server.
3) SendLine(char *)- Sends buffer to host [ non-blocking]
DLL would need to run on Windows XP/ Vista.
a) The DLL should keep any received data in internal buffer and return them one by one when ReadLine is invoked.
b)The DLL should clean up any resources on PROCESS_DETACH.