Considering Outside Factors
00:00 Let’s start taking a look at what’s more common with using sockets, starting with connectivity and communication breakdown. So far, our client and server have been on the same computer using the loopback interface localhost for our connections.
00:15 This means that the programs really haven’t been using the Internet in any way.
00:23 More realistically, your programs will have to use its ethernet connection to connect to other hosts. And as you’re probably aware, there are any number of things that can go wrong, both accidentally and deliberately, that can impact your programs’ running successfully.
00:37 This does make troubleshooting problems much more difficult, as your code could be correct, but the error is resulting from things outside your control.
00:46 And you should also use some defensive programming skills to prevent malicious code from impacting your system. Although that topic is beyond the scope of this course, it’s something you should be aware of.
00:59 The next thing you’ll see toward making a more realistic example is a discussion about multiple connections.
Become a Member to join the conversation.