SlideShare a Scribd company logo
Design an Implementation of A Messaging and Resource Sharing Software
 Overview
 Chapter Briefs
 Socket
 Socket Programming
 Socket Type
 Implementation issues
 Control Flow
 Design
 Implementation
 Discussion
 Future Development
 In this article it has been looked how to program using sockets by
implementing an echo server along with a client that is used to
send and receive string messages. It will start off by giving a
quick introduction to TCP/IP fundamentals and then explain how
sockets fit into the diagram.
• Most network application can be divided into two pieces: a client
and a server. A client is the side that initiates the communication
process, where as the server responds to incoming client requests.
• There are numerous network protocols, such as Netbios, RPC
(Remote Procedure Call), DCOM, Pipe, IPC (Inter-process
Communication) that can be used for the Comm Link. Here is
only look at TCP/IP.
Although TCP can be implemented to work over any transport protocol,
it's usually synonymous with IP. TCP is a connection-oriented stream
protocol (like a telephone call). This is shown below with a factious
network topology layout, where the data packet takes (n) number of
hops to get from the source to the Destination.
A socket is made up of 3 identifying properties:
Protocol Family, IP Address and Port Number.
For TCP/IP Sockets:
The protocol family is AF_INET (Address Family Internet)
The IP Address identifies a host/service machine on the network.
Port defines the Service on the machine that communicating to/from
The port numbers from 0 to 255 are well-known ports, and the use of these
port numbers in your application is highly discouraged. Many well-known
services which are use have assigned port numbers in this range.
Service Name Port Number
ftp 21
telnet 23
http 80
An interface between an application processes and transport layer.
The application process can send/receive messages to/from another
application process (local or remote) via a socket.
socket ( )
bind( )
+---->listen ( )
| accept( )
| (block until connection from client )
| read( )
| write( )
+----- close( )
close( )
• The steps to get a server up and running are shown below
(read from top to bottom). This is how our sample code is
written, so it's a good idea to get familiar with the process.
The steps the client needs to take in order to communicate with the
server.
• socket( )
• connect( )
• write( )
• read( )
• close( )
1. Create a socket with the server IP address
2. Connect to the server, this step also names the socket
3. Send data to the server
4. Read data returned (echoed) back from the server
5. Close the socket
Winsock control comes with VB6 and is used to create
applications that access the low-level functions of the
Transmission Control Protocol/Internet Protocol (TCP/IP).
Client and server will interact with each other to exchange data.
So, the programming discipline using socket is known as socket
programming.
Winsock Operating Modes:
1. sckTCPProtocol
2. sckUDPProtocol
There are several Internet socket types:
Datagram sockets, also known as connectionless sockets, which use
User Datagram Protocol (UDP)
Stream sockets, also known as connection-oriented sockets, which
use Transmission Control Protocol (TCP) or Stream Control
Transmission Protocol (SCTP).
Raw sockets (or Raw IP sockets), typically available in routers and
other network equipment. Here the transport layer is bypassed, and
the packet headers are not stripped off, but are accessible to the
application.
Sockets are usually implemented by an API library such as Berkeley
sockets, first introduced in 1983. Most implementations are based
on Berkeley sockets, for example Winsock introduced in 1991.
Other socket API implementations exist, such as the STREAMS-
based Transport Layer Interface (TLI).
Development of application programs that utilize this API is called
socket programming or network programming.
User
Name
User
Password
Encode
password then
Save to Data
1 User Entry
D Data Save
Figure : DFD for register new user:
Receiver’s
User
Name If Receiver online then
“Send”
2 Check Online
D Data Log Save
Figure : Control Flow to Send Message
Sender’s
User
Name Option (Yes/No)
2 Chat Requested
If Yes, Then
Message Received
If No, Then
Message
Ignored
Figure 3 : Control Flow to Receive Message
Receiver’s
User Name If Receiver online then
“Send” File Receive
Request
2 Check Online
If Receiver – Yes
Then Send File
Check
If Receiver – No
Then Send process Break
Figure 4 : Control Flow to Send File
File Receive
Request
A File Receive requested
By <Sender>
2 Message Display
If – Yes
Then display
message Where to
save the file
Check
If – No Then
receive process break.
Figure 5 : Control Flow to Receive File
Requested
User Name
“Accept voice chat”
Option (Yes/No)
6 Message Show
If Press – Yes
Check For Supported
Sound Hardware
Check
If Receiver – No
Then voice chat process
Break
If (Supported) = True
Then Chat Start
If (supported) = False
Then Show Error Msg.
Figure 6 : Control Flow Voice Chat
Figure 7 : User administrator add panel
Figure 8 : Server Log pan store every status change it
made change by user and the server administrator.
These logs are stored in flat data mode.
Figure 9: The session info contains the online user information.
User entire time. His/Her encoded password.
Figure 10 : The user login form.
Figure 11: This is the most valuable client side main form.
Figure 12 : Data Receive From.
Figure 13: Voice Chat Client.
Figure 14 : Client Side Option Dialog
The installation phase arrives only after the implementation phase
has been successfully competed. The final system now stands
ready to be delivered to the users. The principal objectives of the
installation phase are to replace the existing system by the newly
created system is smooth, trouble -free manner. In order to
accomplish the objectives, three activities must be performed.
Finally this software is completed successfully in implemented in
real field successfully. But man has a concern about something
new. In this way the development process will be continuing. At
present it covers to text based chat, voice chat and file transfer. All
this shorts as it was in requirement successfully done. But
committed with market it is need farther more development.
Otherwise it would be out of business. In this manner some plan
made for future work and research.
Future development is on plan. which are video chat or
video conference. Existing software will be more interactive
look. Some games will be added to it. Animation will be
applied. Sound effect and Sound theme will be make
resonance to cha user. Funny Aviary keeps support when
no one is online of according to user demand.
Design an Implementation of A Messaging and Resource Sharing Software

More Related Content

What's hot (20)

PPTX
Multiuser chat application using java
asifnoman240
 
PPTX
Application layer in network system
Salauddin Rubel
 
PPTX
Client server chat application
Samsil Arefin
 
PPTX
Information on protocols-email protocols
Priyanka Shinde
 
PPTX
Technical Architectures
Damian T. Gordon
 
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 10
Nil Menon
 
PPTX
02 protocol architecture
Orbay Yeşil
 
PPT
Ftp.75 to 76
myrajendra
 
PPTX
Slides for protocol layering and network applications
jajinekkanti
 
PPTX
Chat server nitish nagar
Nitish Nagar
 
PDF
Chapter 2 - Protocol Architecture, TCP/IP, and Internet-Based Applications 9e
adpeer
 
PDF
Aplication and Transport layer- a practical approach
Sarah R. Dowlath
 
PPT
Get into Networking by Clearing Comptia Network+ Test
certblaster
 
PPT
Rpc Case Studies (Distributed computing)
Sri Prasanna
 
PDF
Tcpip tutorial
Rajeshbabu88
 
PPTX
Application layer
Mukesh Chinta
 
PPTX
Telnet presentation
travel_affair
 
PPTX
File transfer protocol- Gowdham
Gowdham P
 
PDF
Cisco discovery d homesb module 6 - v.4 in english.
igede tirtanata
 
Multiuser chat application using java
asifnoman240
 
Application layer in network system
Salauddin Rubel
 
Client server chat application
Samsil Arefin
 
Information on protocols-email protocols
Priyanka Shinde
 
Technical Architectures
Damian T. Gordon
 
CCNA 1 Routing and Switching v5.0 Chapter 10
Nil Menon
 
02 protocol architecture
Orbay Yeşil
 
Ftp.75 to 76
myrajendra
 
Slides for protocol layering and network applications
jajinekkanti
 
Chat server nitish nagar
Nitish Nagar
 
Chapter 2 - Protocol Architecture, TCP/IP, and Internet-Based Applications 9e
adpeer
 
Aplication and Transport layer- a practical approach
Sarah R. Dowlath
 
Get into Networking by Clearing Comptia Network+ Test
certblaster
 
Rpc Case Studies (Distributed computing)
Sri Prasanna
 
Tcpip tutorial
Rajeshbabu88
 
Application layer
Mukesh Chinta
 
Telnet presentation
travel_affair
 
File transfer protocol- Gowdham
Gowdham P
 
Cisco discovery d homesb module 6 - v.4 in english.
igede tirtanata
 

Similar to Design an Implementation of A Messaging and Resource Sharing Software (20)

DOCX
Final networks lab manual
Jaya Prasanna
 
PDF
sockets SMTP Bmsce ppt information science and engineering
UtkarshaMahajan6
 
PPTX
Socket Programming
VisualBee.com
 
PDF
Socket Programming
elliando dias
 
PDF
Socket programming using java
UC San Diego
 
PPTX
Network Programming-Python-13-8-2023.pptx
ssuser23035c
 
PPTX
Module 1 part 2.pptx with clear notes and explanation
farsankadavandy
 
PPT
Introduction to sockets tcp ip protocol.ppt
MajedAboubennah
 
PPT
Sockets
Gopaiah Sanaka
 
DOC
socket programming
prashantzagade
 
DOC
socket programming
prashantzagade
 
PPT
Socket Programming
CEC Landran
 
PPT
LECTURE-17(Socket Programming) Detailed.
qamarmajeed0000
 
PPT
Socket programming
chandramouligunnemeda
 
PDF
Socket programming assignment
Ravi Gupta
 
PPTX
Byte Ordering - Unit 2.pptx
RockyBhai46825
 
PPT
Application Layer and Socket Programming
elliando dias
 
PPT
Computer Network in Network software.ppt
mcjaya2024
 
DOCX
Application programming interface sockets
Kamran Ashraf
 
Final networks lab manual
Jaya Prasanna
 
sockets SMTP Bmsce ppt information science and engineering
UtkarshaMahajan6
 
Socket Programming
VisualBee.com
 
Socket Programming
elliando dias
 
Socket programming using java
UC San Diego
 
Network Programming-Python-13-8-2023.pptx
ssuser23035c
 
Module 1 part 2.pptx with clear notes and explanation
farsankadavandy
 
Introduction to sockets tcp ip protocol.ppt
MajedAboubennah
 
Sockets
Gopaiah Sanaka
 
socket programming
prashantzagade
 
socket programming
prashantzagade
 
Socket Programming
CEC Landran
 
LECTURE-17(Socket Programming) Detailed.
qamarmajeed0000
 
Socket programming
chandramouligunnemeda
 
Socket programming assignment
Ravi Gupta
 
Byte Ordering - Unit 2.pptx
RockyBhai46825
 
Application Layer and Socket Programming
elliando dias
 
Computer Network in Network software.ppt
mcjaya2024
 
Application programming interface sockets
Kamran Ashraf
 
Ad

Recently uploaded (20)

PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PDF
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
PDF
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
PDF
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
PDF
Upgrading to z_OS V2R4 Part 01 of 02.pdf
Flavio787771
 
PDF
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PDF
HydITEx corporation Booklet 2025 English
Георгий Феодориди
 
PPTX
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
Ampere Offers Energy-Efficient Future For AI And Cloud
ShapeBlue
 
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
Novus-Safe Pro: Brochure-What is Novus Safe Pro?.pdf
Novus Hi-Tech
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
CloudStack GPU Integration - Rohit Yadav
ShapeBlue
 
Upgrading to z_OS V2R4 Part 01 of 02.pdf
Flavio787771
 
Arcee AI - building and working with small language models (06/25)
Julien SIMON
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
HydITEx corporation Booklet 2025 English
Георгий Феодориди
 
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Rethinking Security Operations - SOC Evolution Journey.pdf
Haris Chughtai
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Ad

Design an Implementation of A Messaging and Resource Sharing Software

  • 2.  Overview  Chapter Briefs  Socket  Socket Programming  Socket Type  Implementation issues  Control Flow  Design  Implementation  Discussion  Future Development
  • 3.  In this article it has been looked how to program using sockets by implementing an echo server along with a client that is used to send and receive string messages. It will start off by giving a quick introduction to TCP/IP fundamentals and then explain how sockets fit into the diagram.
  • 4. • Most network application can be divided into two pieces: a client and a server. A client is the side that initiates the communication process, where as the server responds to incoming client requests. • There are numerous network protocols, such as Netbios, RPC (Remote Procedure Call), DCOM, Pipe, IPC (Inter-process Communication) that can be used for the Comm Link. Here is only look at TCP/IP.
  • 5. Although TCP can be implemented to work over any transport protocol, it's usually synonymous with IP. TCP is a connection-oriented stream protocol (like a telephone call). This is shown below with a factious network topology layout, where the data packet takes (n) number of hops to get from the source to the Destination.
  • 6. A socket is made up of 3 identifying properties: Protocol Family, IP Address and Port Number. For TCP/IP Sockets: The protocol family is AF_INET (Address Family Internet) The IP Address identifies a host/service machine on the network. Port defines the Service on the machine that communicating to/from The port numbers from 0 to 255 are well-known ports, and the use of these port numbers in your application is highly discouraged. Many well-known services which are use have assigned port numbers in this range. Service Name Port Number ftp 21 telnet 23 http 80
  • 7. An interface between an application processes and transport layer. The application process can send/receive messages to/from another application process (local or remote) via a socket.
  • 8. socket ( ) bind( ) +---->listen ( ) | accept( ) | (block until connection from client ) | read( ) | write( ) +----- close( ) close( ) • The steps to get a server up and running are shown below (read from top to bottom). This is how our sample code is written, so it's a good idea to get familiar with the process.
  • 9. The steps the client needs to take in order to communicate with the server. • socket( ) • connect( ) • write( ) • read( ) • close( ) 1. Create a socket with the server IP address 2. Connect to the server, this step also names the socket 3. Send data to the server 4. Read data returned (echoed) back from the server 5. Close the socket
  • 10. Winsock control comes with VB6 and is used to create applications that access the low-level functions of the Transmission Control Protocol/Internet Protocol (TCP/IP). Client and server will interact with each other to exchange data. So, the programming discipline using socket is known as socket programming. Winsock Operating Modes: 1. sckTCPProtocol 2. sckUDPProtocol
  • 11. There are several Internet socket types: Datagram sockets, also known as connectionless sockets, which use User Datagram Protocol (UDP) Stream sockets, also known as connection-oriented sockets, which use Transmission Control Protocol (TCP) or Stream Control Transmission Protocol (SCTP). Raw sockets (or Raw IP sockets), typically available in routers and other network equipment. Here the transport layer is bypassed, and the packet headers are not stripped off, but are accessible to the application.
  • 12. Sockets are usually implemented by an API library such as Berkeley sockets, first introduced in 1983. Most implementations are based on Berkeley sockets, for example Winsock introduced in 1991. Other socket API implementations exist, such as the STREAMS- based Transport Layer Interface (TLI). Development of application programs that utilize this API is called socket programming or network programming.
  • 13. User Name User Password Encode password then Save to Data 1 User Entry D Data Save Figure : DFD for register new user:
  • 14. Receiver’s User Name If Receiver online then “Send” 2 Check Online D Data Log Save Figure : Control Flow to Send Message
  • 15. Sender’s User Name Option (Yes/No) 2 Chat Requested If Yes, Then Message Received If No, Then Message Ignored Figure 3 : Control Flow to Receive Message
  • 16. Receiver’s User Name If Receiver online then “Send” File Receive Request 2 Check Online If Receiver – Yes Then Send File Check If Receiver – No Then Send process Break Figure 4 : Control Flow to Send File
  • 17. File Receive Request A File Receive requested By <Sender> 2 Message Display If – Yes Then display message Where to save the file Check If – No Then receive process break. Figure 5 : Control Flow to Receive File
  • 18. Requested User Name “Accept voice chat” Option (Yes/No) 6 Message Show If Press – Yes Check For Supported Sound Hardware Check If Receiver – No Then voice chat process Break If (Supported) = True Then Chat Start If (supported) = False Then Show Error Msg. Figure 6 : Control Flow Voice Chat
  • 19. Figure 7 : User administrator add panel
  • 20. Figure 8 : Server Log pan store every status change it made change by user and the server administrator. These logs are stored in flat data mode.
  • 21. Figure 9: The session info contains the online user information. User entire time. His/Her encoded password.
  • 22. Figure 10 : The user login form.
  • 23. Figure 11: This is the most valuable client side main form.
  • 24. Figure 12 : Data Receive From. Figure 13: Voice Chat Client.
  • 25. Figure 14 : Client Side Option Dialog
  • 26. The installation phase arrives only after the implementation phase has been successfully competed. The final system now stands ready to be delivered to the users. The principal objectives of the installation phase are to replace the existing system by the newly created system is smooth, trouble -free manner. In order to accomplish the objectives, three activities must be performed.
  • 27. Finally this software is completed successfully in implemented in real field successfully. But man has a concern about something new. In this way the development process will be continuing. At present it covers to text based chat, voice chat and file transfer. All this shorts as it was in requirement successfully done. But committed with market it is need farther more development. Otherwise it would be out of business. In this manner some plan made for future work and research.
  • 28. Future development is on plan. which are video chat or video conference. Existing software will be more interactive look. Some games will be added to it. Animation will be applied. Sound effect and Sound theme will be make resonance to cha user. Funny Aviary keeps support when no one is online of according to user demand.