Sei sulla pagina 1di 4

What is a server?

Servers are computers or processes generally dedicated to managing disk drives (file servers), printers (print servers), e-mail (e-mail servers), faxes (fax servers), etc. Because the term "server" can refer to different items, it can be confusing. A file server is a computer that shares files and hardware devices among users. A database server is a special piece of software that resides on the file server. This special software manages multiple users accessing common data. When using a database server, an application does not interact directly with files, but with the database server. STI Server is a database server.

What is a client?
A client is the second half of the client/server model. Clients rely on servers for resources or services, such as files, devices and even processing power. The workstation from which you operate the software is considered a client.

What is Client/Server Architecture?


Client/Server Architecture is a network architecture in which each computer or process on the network is either a client or a server. This architecture is sometimes referred to as a two-tier network architecture with the server being the first tier and the client being the second tier. Typically, there is a "one server" to "many clients" relationship. For example, an Internet Web Server is a server whereas the various browsers that connect to it are considered clients. Think of the client/server relationship in this way: a client requests services whereas a server provides services.

ADVANTAGES OF CLIENT-SERVER

Advantages often cited include:


Centralization - access, resources, and data security are controlled through the server o Scalability - any element can be upgraded when needed o Flexibility - new technology can be easily integrated into the system o Interoperability - all components (clients, network, servers) work together
o

Accessibility - server can be accessed remotely and across multiple platforms o Ease of application development o Lower total costs than mainframe legacy systems. o User friendly - familiar point and click interface
o

DISADVANTAGES OF CLIENT-SERVER
Disadvantages often cited include: o Dependability - when the server goes down, operations cease o Lack of mature tools - it is a relatively new technology and needed tools are lacking e.g.. Automated client software distribution o Lack of scalability - network operating systems (e.g.. Novell Netware, Windows NT Server) are not very scalable. o Higher than anticipated costs o Can cause network congestion

Client Server models


Client: It is a component which requests the server for information. For eg: PC is used in internet, workstations in LAN etc. Server: It is a component which provides the requested information to the client. For eg. Webserver, LAN servers etc. Network: It is the data transmission media. The type of transmission may be request for data or data transfer. There are two types of client server model. They are

Two tier model Three-tier model

a)Two-tier(client-Server) model: In this model there are two major components. They are

Front end client Back end server

Front end is application software which is present in the client machine. This component requests for data from the server. This contains number of drivers to connect with the different servers. Back end is RDBMS software which is present in the server machine. This component process the requests from the client and provides the data from the database. Disadvantages: Client must have a driver to access the server.If the client want to access the number of servers it should have drivers for all the servers. This is very costly because each driver carries a license fee. Software maintenance is costly. If the database vendors change the database design , the client must update the drivers. b)Three-tier Client server model: There are three major components. They are

front end client back end server Middleware

Front end is application software which is present in the client machine. This component requests for data to the middleware. This has no drivers. Instead has a single driver to interface the middleware. The Middleware component software process the request from the client. If it contains the requested data it sends immediately to the client. If the data requested is not present it requests the server for data. Middleware component contains number of drivers to connect with the various servers. Back end is RDBMS software which is present in the server machine. The component process the requests from the middleware and provides the data to the middleware. The middleware sends the data to the client. Advantages:

Client has no drivers. So cost effective. If the database vendors change the database design no need to update the client software. Security is high. More than one client can request the middleware for data.

Unit 4

File System Controls (DriveListBox, DirListBox, FileListBox) VB provides three native toolbox controls for working with the file system: the DriveListBox, DirListBox, and FileListBox. You can use these controls independently, or in concert with one another to navigate the file system. The DriveListBox control is a specialized drop-down list that displays a list of all the valid drives on the user's system. The most important property of the DriveListBox is the Drive property, which is set when the user selects an entry from the drop-down list or when you assign a drive string (such as "C:") to the Drive property in code. You can also read the Drive property to see which drive has been selected. To make a DirListBox display the directories of the currently selected drive, you would set the Path property of the DirListBox control to the Drive property of the DriveListBox control in the Change event of the DriveListBox, as in the following statement: Dir1.Path = Drive1.Drive The DirListBox control displays a hierarchical list of the user's disk directories and subdirectories and automatically reacts to mouse clicks to allow the user to navigate among them. To synchronize the path selected in the DirListBox with a FileListBox, assign the Path property of the DirListBox to the Path property of the FileListBox in the Change event of the DirListBox, as in the following statement: File1.Path = Dir1.Path The FileListBox control lists files in the directory specified by its Path property. You can display all the files in the current directory, or you can use the Pattern property to show only certain types of files. Similar to the standard ListBox and ComboBox controls, you can reference the List, ListCount, and ListIndex properties to access items in a DriveListBox, DirListBox, or FileListBox control. In addition, the FileListBox has a MultiSelect property which may be set to allow multiple file selection.

Potrebbero piacerti anche