Transcript chat

Chat Application
 Pratheeba
Murugesan
 Tejo Brundavana
 Zhenhong Zhao
Abstract
Consists of server and client module.
 Generate sounds when certain key
words are entered.
 Windows sockets for implementing
TCP/IP protocol.

Tools Used

Microsoft Visual C++ 6
 MFC
 Sockets using MFC class
CAsyncSocket
 Sounds using WINMM.LIB
library file.
Phases of Development
 Design
 Implementation
 Testing
Design Phase
Server
 Listen for Incoming Request
 Valid Request – Establish communication
 Client
 Knows Ip no. and Sends request to Server
 Receives keyboard input and send them
to server.

Client-Server mechanism
Port
Server Socket
(CAsyncSocket)
Ip no
Client Socket
(CAsyncSocket)
Dialog Box
Dialog Box
(CDialog)
(CDialog)
Implementation Phase

Initial Development
 Two separate programs
• Client
• Server
 Upgradation
• Server and client features combined
into single executable program Server
Testing Phase


Black Box Testing of Application
Unit Testing of methods
 Server methods
• CDialog Class methods
• CAsyncSocket methods
 Client methods
• OnConnect
• OnSend
• OnCReceive
Communication Mechanism
Dialog Box
(Cdialog)
Sound_Generation
Dialog Box
(Cdialog)
Working Model
Advantages
 The user friendly interface enables effortless use.
 The Sockets implementing TCP/IP protocols
makes this application suitable for any kind of
network including the internet.
 The modular design of the Server and the Client
enables scalability and provides scope for future
improvement.
 Both the Server and the Client program occupies
less Disk memory.
Future Plans
Using a centralized server or file for listing
the IP addresses of different users.
 Inclusion of graphics and animation features

Bibliography







Microsoft Windows 2000 TCP/IP Protocols and
Services Technical Reference by
Thomas Lee (Author), Joseph Davies
The Protocols (TCP/IP Illustrated, Volume 1) by
W. Richard Stevens (Author)
MFC Tutorials
http://devcentral.iftech.com/articles/MFC/default.p
hp
Networking
http://devcentral.iftech.com/articles/Networking/d
efault.php
Questions?