Presentation is loading. Please wait.

Presentation is loading. Please wait.

CHAT APPLICATION A PRESENTATION ON Dr. Neepa shah

Similar presentations


Presentation on theme: "CHAT APPLICATION A PRESENTATION ON Dr. Neepa shah"— Presentation transcript:

1 CHAT APPLICATION A PRESENTATION ON Dr. Neepa shah
MASTER OF COMPUTER APPLICATION To Gujarat Vidhyapith, Ahmadabad. Submitted By : Guided By : Keval Pithva Abhishek Doshi Pinkal Patel Jaimin Solanki Dr. Neepa shah Arjun singh (B. Tech)

2 Why choose the topic of CHAT Application ??
Before years ago, people were liking to interact each other and sharing the thoughts, But nowadays trend is changed, youngsters are not believed in real relationship, but they liking to Live in Virtual world, due to the expansion of growth of internet facilities rapidly, So nowadays Chat grabs the internet market. Objectives : Our objective is to know about the various concept of Internet . To know the various function of C ,that are used for internet connection To Spread the Basic knowledge of socket programming as we are the post graduate students

3 Introduction Chat application is grabbed the market day by day. Number of chat applications are in the market like facebook, twitter, whatsapp, we-chat, mchat, Live chat, Go chat, chat on etc. Facilities Text messaging Voice messages Video Calling File Transfer(Video, Images etc.) Smiley

4 Types of chat application
Simple chat application ( One-Way) Multi client chat application

5 Basic knowledge What is port?
These ports allow software applications to share hardware resources without interfering with each other. Computers and routers automatically manage network traffic travelling via their virtual ports. Network firewalls additionally provide some control over the flow of traffic on each virtual port for security purposes. See in firewall What is Protocol ? A standard set of regulations and requirements that allow two electronic items to connect to and exchange information with one another. FTP (File Transfer Protocol), HTTP (Hypertext Transfer Protocol), TCP/IP (Transfer Control Protocol/Internet Protocol), and SMTP (Simple Mail Transfer Protocol). What is Socket ? When a computer program needs to connect to a local or wide area network such as the Internet, it uses a software component called a socket.

6 Prerequisites We have used one way communication it works like walkie-talkie, it works with well established LAN/WLAN connection. System Requirements :- Minimum OS requirement: Windows XP SP2 or Windows 2003 SP1 or (see below) 64 bit OS Minimum hardware requirement: P3 500 MHz, 256 MB RAM

7 How to configure Programme ??
At Client Side :- 1 First of all, Open the run command by pressing win + R. 2. Type cmd 3. Go to the path where application is stored..like C:\chat and Press enter

8 At server side 1 First of all, Open the run command by pressing win + R. 2. Type cmd 3. Go to the path where application is stored and enter ip address..like C:\chat (local host) and Final Press enter

9 Programming Pre-processor
Header file : Stdio.h Stdlib.h Winsock.h Other Requirements : “Winsock 2.0 .dll” is to be installed (It is used for socket programming on windows based OS)

10 Library Function Winsock.h : struct sockaddr_in { short sin_family;
u_short sin_port; struct in_addr sin_addr; char sin_zero[8]; };

11 Socket(PF_INET , SOCK_STREAM , IPPROTO_TCP)
Bind(Serv__Sock , Serv__Sock Pointer Add ,Sizeof(Serv_add)) Connect(Cli_Sock, Serv__add Pointer Add, sizeof(serv_add)) Listen(Serv_sock ,MAX_PEND) Recv(Soc_name , msg , msg_len , flag) Send(soc_name , msg, msg_len, flag) Accept(Serv_Sock, Cli_Sock Pointer Add , Cli_len Pointer add) For compilation and linking of source code : MinGW (GCC) compiler Digital Mars compiler

12 Execution

13 SERVER CLIENT Open Socket for server Open Socket of client Construct Local Address Construct Local Address Bind with service Connect with server Listen from client Sending Message Accept Request Receiving Message Receiving Message Sending Message

14 Screen Shots Enjoy it !!!

15 Bibliography http://msdn.microsoft.com/en- us/library/windows/desktop
( Help for Winsock.h) ( Help to Understand Network Socket programming)

16


Download ppt "CHAT APPLICATION A PRESENTATION ON Dr. Neepa shah"

Similar presentations


Ads by Google