.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
Post a Comment