3 ms·
NO NO NO!!! For the sake of all that is holy don't do it!!!! Or rather, read & understand the fallacies of network programming: http://www.jezuk.co.uk/cgi-bin/
by nl 16y ago
NO NO NO!!! For the sake of all that is holy don't do it!!!!
Or rather, read & understand the fallacies of network programming: http://www.jezuk.co.uk/cgi-bin/view/jez?id=2650 http://www.jezuk.co.uk/cgi-bin/view/jez?id=2650 before you do it.
The failure mode of networks is quite different to that of files, and the programming model reflects that.
- DannoHung 16y agoWhat about files hosted over the network? Such as on a SAN?
- jerf 16y agoWhat about them? Every last point on that list applies to them, by necessity, because they automatically apply to all networks.
- lisper 16y ago> The failure mode of networks is quite different to that of files Actually, with a remote file system, the failure modes of networks is necessarily exactly the same as that of files.
- nl 16y agoYes, and you'll note that a huge amount of the remote file driver code involves dealing with those failures. If you drop that down a level and turn sockets into files then suddenly programs that are written to work with files will try to deal with these kind-of-file-but-not-really things, and fail in unexpected ways.