I need to create a communication layer between programs. For this i decided to use winsockets. There are different options, e.g. use queue of messages i want to send and separate thread which sends messages via blocking sockets. But maybe there are better options. Could you please describe or give a link. Thanks.