Chapter 16 -- Remote Access Service Client

Chapter 16

All Microsoft Windows platforms feature a Remote Access Service (RAS) client, which allows you to connect your computer from a remote location to another computer featuring a remote access server component. Typically, a RAS client will do this by using a modem that connects to a telephone line and calls the remote computer by dialing a telephone number. Because of this, the RAS client is sometimes referred to as a dial-up networking (DUN) client.

On the server side, you must have a service awaiting your DUN connection. A RAS client is capable of establishing a communication link with several types of remote access servers. RAS does this by using industry standard framing protocols, such as the following:

  • Point-to-Point Protocol (PPP) Can transmit the IP, IPX, and NetBEUI communication protocols
  • Serial Line Internet Protocol (SLIP) Can transmit only the IP communication protocol
  • Asynchronous NetBEUI (Microsoft Windows NT 3.1, Microsoft Windows for Workgroups 3.11) Can transmit only the NetBEUI communication protocol

The framing protocols describe how data is transmitted over a RAS communication link and dictate which network communication protocols (such as TCP/IP or IPX) can communicate over the RAS link. If a RAS server supports one of the framing protocols defined in the previous list, a RAS client can establish a connection. Windows 95, Windows 98, Windows 2000, and Windows NT feature a RAS server component capable of supporting all the framing protocols listed.

Once a connection is established between a RAS client and server, network protocol stacks (depending on the framing protocol used) can communicate over the RAS connection to the remote computer as if the computers were connected over a LAN. Of course, the data communication rate of many modems today is significantly slower than a direct LAN connection.

When a RAS server accepts a dial-up connection, it first establishes communication with your client by negotiating one of the framing protocols in the previous list. Once the framing protocol is established, the RAS server attempts to authenticate the user that is making the connection. The RAS API functions described in this chapter allow a RAS client to specify a user name, a password, and domain logon credentials to the RAS server. When a Windows 2000 or a Windows NT RAS server receives this information, it validates these logon credentials using Windows NT domain security access control. Note that the RAS server does not log your client on to a Windows NT domain; instead, it uses the client credentials to verify that a user is allowed to make a RAS connection. The RAS connection process is not the same as the Windows NT domain logon process. After a RAS connection is successfully established, your computer can log on to a Windows NT domain. This chapter doesn't describe the process of logging on to a domain. On Windows 95 and Windows 98, RAS can automatically log a machine on to a domain after a RAS connection is authenticated through options available in a phonebook entry, as we will discuss later in this chapter.

RAS relies on the Telephony Application Programming Interface (TAPI) to set up and control telephone communication devices such as modems on your computer. TAPI controls the hardware settings of these dialing devices. When you set up a RAS connection using a modem, TAPI turns on the modem and sends dialing information from RAS to the modem. As a result, RAS views modems as simple TAPI modem ports that are capable of dialing and making a phone connection to a remote server. As you will see later in this chapter, some of the RAS API functions refer to TAPI modem ports when you set up RAS connection information.

This chapter will explain how you can programmatically use RAS to establish remote network communication. We will begin by describing the header and library files you need to build your application. Next we will describe the basics of dialing—how you actually establish a remote connection. We'll then describe how you can set up RAS phonebook entries to define detailed communication properties of a RAS connection. Once we've explained the basics of setting up communication, we'll show you how to manage established connections.



Network Programming for Microsoft Windows
Linux Server Hacks, Volume Two: Tips & Tools for Connecting, Monitoring, and Troubleshooting
ISBN: 735615799
EAN: 2147483647
Year: 1998
Pages: 159

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net