28 Jan
2012
28 Jan
'12
7:25 p.m.
Hello, I am writing a client application that reads and writes data into a remote server. Currently the communication is done using synchronous (blocking) sockets. I am running Ubuntu and using C++. I need to re-write this app so it will asynchronously read & write into sockets and stdin/stdout, I also need to send a heartbeat signal if there wasn't any communication with the server for 60 seconds. I am new to Asio, I went through tutorial and looked at the examples such as asynchronous timer and client chat but they are not all that I need. Could someone point me to a sample Asio application that does what I need. Thank you!