 <p>I'm not quite sure if I understood your question, but, can't you serialize your commands and send them through your sockets? </p> <p>An easier approach would be a <a href="http://msdn.microsoft.com/en-us/library/ms731758.aspx" rel="nofollow">self hosted wcf service</a>, as it will free you from implementing communication details.</p>