c# - Do synchronous sockets still allow for external user action? -
i'm developing client-server infrastructure file sharing, chat, , server tracking functions.
i need create 3 persistent tcp connections each since they'll utilize separate protocols and, often, separate server instances. haven't begun design communication stuff because i'm uncertain type of scheme should design as: async or sync?
if take async, benefits give me relative 3 other protocols?
if take sync, 2 chat messages sent in short time span each other, example, subject 1 of them beingness lost, or delayed, due other one's send process?
i hope question isn't unclear.
there no difference between can accomplish sync , async. features of sockets api not change. phone call mechanism changes.
the benefits of sync , async non-functional in nature. see also: should switch utilize async i/o default?
this answers question asked. if there specific issue or confusion leave comment.
c# sockets asynchronous chat
No comments:
Post a Comment