Application: A Presentation On
Application: A Presentation On
CHAT APPLICATION
MASTER OF COMPUTER APPLICATION
To
Gujarat Vidhyapith,
Ahmadabad.
Guided By : Submitted By :
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
Facilities
Text messaging
Voice messages
Video Calling
File Transfer(Video, Images etc.)
Smiley
Types of chat application
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
System Requirements :-
At Client Side :-
2. Type cmd
2. Type cmd
Stdio.h
Stdlib.h
Winsock.h
Other Requirements :
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)
Sending Message
Screen Shots
Enjoy it !!!
Bibliography
http://msdn.microsoft.com/en-us/library/windows/d
esktop
http://en.wikipedia.org/wiki/Network_socket
( Help to Understand Network Socket
programming)