0% found this document useful (0 votes)
20 views16 pages

Application: A Presentation On

This presentation provides an overview of chat applications and socket programming. It discusses how chat applications have grown in popularity as young people prefer virtual interaction over real relationships. The objectives are to learn about internet concepts, socket functions for network connections, and basic socket programming. An introduction explains common chat app features like texting, files sharing, and video calls. The presentation then covers setting up a basic one-way chat client-server application using sockets in C/C++ and Windows. Screenshots demonstrate executing a chat between the client and server programs.

Uploaded by

madhu jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views16 pages

Application: A Presentation On

This presentation provides an overview of chat applications and socket programming. It discusses how chat applications have grown in popularity as young people prefer virtual interaction over real relationships. The objectives are to learn about internet concepts, socket functions for network connections, and basic socket programming. An introduction explains common chat app features like texting, files sharing, and video calls. The presentation then covers setting up a basic one-way chat client-server application using sockets in C/C++ and Windows. Screenshots demonstrate executing a chat between the client and server programs.

Uploaded by

madhu jha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

A PRESENTATION ON

CHAT APPLICATION
MASTER OF COMPUTER APPLICATION

To
Gujarat Vidhyapith,
Ahmadabad.

Guided By : Submitted By :

Dr. Neepa shah Keval Pithva


Abhishek Doshi
Pinkal Patel
Arjun singh (B. Tech) Jaimin Solanki
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
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
Types of chat application

1. Simple chat application ( One-Way)

2. Multi client chat application


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.
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


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
 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 127.0.0.1(local host)

and Final Press enter


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)
Library Function
 Winsock.h :

struct sockaddr_in
{
short sin_family;
u_short sin_port;
struct in_addr sin_addr;
char sin_zero[8];
};
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
Execution
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
Screen Shots

Enjoy it !!!
Bibliography
 http://msdn.microsoft.com/en-us/library/windows/d
esktop

( Help for Winsock.h)

 http://en.wikipedia.org/wiki/Network_socket
( Help to Understand Network Socket
programming)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy