Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Client Server Model

Similar presentations


Presentation on theme: "The Client Server Model"— Presentation transcript:

1 The Client Server Model
By: Chelsea Bussey, Jeremy Walker, Justin Seldomridge, and Jeremy Shope

2 The Client Server Model
The client server model describes the distributed computing relationship between at least two independent computers (a client and server) which communicate through the internet or local area networks. There can be multiple clients on each server. Examples of using the client/ server include bank account transactions, chat rooms, and broadband routers.

3 What is a Client? Internet browsers Email Online chats
The client makes a service request. Examples of clients include: Internet browsers Online chats

4 What is a Server? The server fulfills a client’s request
Specific types of servers include Webservers Application servers Database servers Mail servers File servers Terminal servers FTP servers Name servers Print servers

5 Knowledge is Power It never hurts to learn a new language
Especially one that employers will like We were all sort of familiar with C and C++ but no one was an expert

6 First Attempt: C

7 C code…… not that pretty

8 We wanted Visual C++ GUIs are nice and easy to make in Visual Studio
Code still ugly for C++ though We were running out of time

9 PUNT! Python to the Rescue!
Python is very user friendly Well known for rapid prototyping You can make a program in no time! Has great support Amazingly easy socket handling GUI development is very similar to Java Swing which we are already familiar with and LOVE

10 The Code (UML)

11 The Code (server) Server Uses UDP (User Datagram Protocol
ID Constants are sent with every datastream Each ID tells the server what kind of data is being sent The server registers a socket using a port and a hostname The connection parameters are static. These need to remain the same so the clients know how to connect to the server

12 The Code (Client) The client class extends the threading class
Threading is needed so that the clients can listen to the server while still updating the GUI Clients connect to a server using the registered hostname and port Any time data is sent to the server an ID constant is prepended to the data. This describes what is being sent.

13 The Code (GUI) wxPython Very similar to Java’s Swing
We used it to add a graphical Interface to our chat client Open Source Cross Platform Very Dynamic , sizers allow the window to stretch while keeping the GUI components grouped Allows Events to be bound to different widgets

14 Future Plans Make clients unique to the server
Login/logout system for clients Basic chat room functionality - multiple clients who receive each other’s messages

15 Future Plans (cont.) Advanced chat room functionality – multiple chatrooms, moderator users,


Download ppt "The Client Server Model"

Similar presentations


Ads by Google