O'Reilly logo

UNIX® System V Network Programming by Stephen A. Rago

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

5. Selecting Networks and Addresses

So far we have avoided discussing network addresses and how applications can identify the correct ones to use. We have also avoided the issue of how applications select network devices. Instead of hard-coding networks and addresses, we have included them as function parameters and command-line arguments in the previous examples. This chapter will show how applications can select networks and addresses without hard-coding them, while at the same time relieving users from having to provide them explicitly.

5.1. Introduction

Designing an application to work over only one network is an expensive proposition. Every time a new network or protocol is developed, the application would have to be modified for it to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required