High performance TCP server (Linux C)
Posted on 2010-09-18
I have an app that generates content that needs to be shipped out to interested parties. Originally I thought about using UDP but I want the guarantee of delivery that TCP provides and I'm not convinced (by a long way) that I could do a better job. So now I'm thinking that I would be better off creating a simple TCP server. Clients would connect to the server and whenever a snippet of data is ready, I would fire it off to all interested parties.
Does anyone have any examples or feedback on this implementation? I'm not looking for complete examples ( though finding any on the web would be great), but I really just want to make sure I'm doing this the right way. I want to make sure that each interested party gets the data as quickly as possible...
Thanks in advance!