.net - Is socket communication reliable protocol for Inter-process communication? -


i'm designing communication protocol used communicate between 2 pc applications using socket connection. common case when both application work on same machine, possible run 1 application on remote machine. application can exchange data 2mb/s. question is: shall use confirmation packets ensure packet sent 1 application received other one? know socket uses tcp connection confirmation/retransmission implemented need feedback used in practice.

the technologies used: - socket server: .net application uses following library: http://www.codeproject.com/kb/ip/asyncsocketserverandclien.aspx - socket client: .net or delphi application

this fine, traffic short-circuited in tcp/ip driver stack. there no great difference other ipc mechanism, takes memory-to-memory copy operates @ bus speeds. 5 gigabytes/sec typ microsecond or overhead. plus whatever context switching needs happen, far largest cost. named pipe operate same. falls off cliff of course once need go through nic.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -