Featured post
Single vs. Dual Sockets In Network Programming -
the question network programming, more precisely servers. let's suppose there server handles lot of connections, , has listening socket. there exists single instance of such socket, that's clear. i've seen designs use (a)one socket every connection, both incoming , outgoing data, , (b)two sockets, 1 incoming data, 1 outgoing data. makes 1 or other design more preferrable? possible reasons / usecases these 2 designs? programs referring instant messengers (two of them), theoretically applies multiple-connection server (any server, then.)
hope question not generic, don't know lot network programming @ moment, asking this. rapid googling didn't either.
tcp , udp sockets full duplex. there no reason whatsoever use separate sockets input , output same client. wastefully using kernel resources @ double rate.
- Get link
- X
- Other Apps
Comments
Post a Comment