 Overview Chapter Briefs Socket Socket Programming Socket Type Implementation issues Control Flow Design Implemen...
 In this article it has been looked how to program using sockets byimplementing an echo server along with a client that i...
• Most network application can be divided into two pieces: a clientand a server. A client is the side that initiates the c...
Although TCP can be implemented to work over any transport protocol,its usually synonymous with IP. TCP is a connection-or...
A socket is made up of 3 identifying properties:Protocol Family, IP Address and Port Number.For TCP/IP Sockets:The protoco...
An interface between an application processes and transport layer.The application process can send/receive messages to/fro...
socket ( )bind( )+---->listen ( )| accept( )| (block until connection from client )| read( )| write( )+----- close( )close...
The steps the client needs to take in order to communicate with theserver.• socket( )• connect( )• write( )• read( )• clos...
Winsock control comes with VB6 and is used to createapplications that access the low-level functions of theTransmission Co...
There are several Internet socket types:Datagram sockets, also known as connectionless sockets, which useUser Datagram Pro...
Sockets are usually implemented by an API library such as Berkeleysockets, first introduced in 1983. Most implementations ...
UserNameUserPasswordEncodepassword thenSave to Data1 User EntryD Data SaveFigure : DFD for register new user:
Receiver’sUserName If Receiver online then“Send”2 Check OnlineD Data Log SaveFigure : Control Flow to Send Message
Sender’sUserName Option (Yes/No)2 Chat RequestedIf Yes, ThenMessage ReceivedIf No, ThenMessageIgnoredFigure 3 : Control Fl...
Receiver’sUser Name If Receiver online then“Send” File ReceiveRequest2 Check OnlineIf Receiver – YesThen Send FileCheckIf ...
File ReceiveRequestA File Receive requestedBy <Sender>2 Message DisplayIf – YesThen displaymessage Where tosave the fileCh...
RequestedUser Name“Accept voice chat”Option (Yes/No)6 Message ShowIf Press – YesCheck For SupportedSound HardwareCheckIf R...
Figure 7 : User administrator add panel
Figure 8 : Server Log pan store every status change itmade change by user and the server administrator.These logs are stor...
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 phasehas been successfully competed. The final system now sta...
Finally this software is completed successfully in implemented inreal field successfully. But man has a concern about some...
Future development is on plan. which are video chat orvideo conference. Existing software will be more interactivelook. So...
Design an Implementation of A Messaging and Resource Sharing Software
Design an Implementation of A Messaging and Resource Sharing Software
Upcoming SlideShare
Loading in …5
×

Design an Implementation of A Messaging and Resource Sharing Software

237 views
193 views

Published on

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 would be contains three types of service from this software, that is Message Transfer service, Voice Transfer service and File Transfer service. All this sorts are the design issue of this software.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
237
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Design an Implementation of A Messaging and Resource Sharing Software

  1. 1.  Overview Chapter Briefs Socket Socket Programming Socket Type Implementation issues Control Flow Design Implementation Discussion Future Development
  2. 2.  In this article it has been looked how to program using sockets byimplementing an echo server along with a client that is used tosend and receive string messages. It will start off by giving aquick introduction to TCP/IP fundamentals and then explain howsockets fit into the diagram.
  3. 3. • Most network application can be divided into two pieces: a clientand a server. A client is the side that initiates the communicationprocess, 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-processCommunication) that can be used for the Comm Link. Here isonly look at TCP/IP.
  4. 4. Although TCP can be implemented to work over any transport protocol,its usually synonymous with IP. TCP is a connection-oriented streamprotocol (like a telephone call). This is shown below with a factiousnetwork topology layout, where the data packet takes (n) number ofhops to get from the source to the Destination.
  5. 5. 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/fromThe port numbers from 0 to 255 are well-known ports, and the use of theseport numbers in your application is highly discouraged. Many well-knownservices which are use have assigned port numbers in this range.Service Name Port Numberftp 21telnet 23http 80
  6. 6. An interface between an application processes and transport layer.The application process can send/receive messages to/from anotherapplication process (local or remote) via a socket.
  7. 7. 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 iswritten, so its a good idea to get familiar with the process.
  8. 8. The steps the client needs to take in order to communicate with theserver.• socket( )• connect( )• write( )• read( )• close( )1. Create a socket with the server IP address2. Connect to the server, this step also names the socket3. Send data to the server4. Read data returned (echoed) back from the server5. Close the socket
  9. 9. Winsock control comes with VB6 and is used to createapplications that access the low-level functions of theTransmission 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 socketprogramming.Winsock Operating Modes:1. sckTCPProtocol2. sckUDPProtocol
  10. 10. There are several Internet socket types:Datagram sockets, also known as connectionless sockets, which useUser Datagram Protocol (UDP)Stream sockets, also known as connection-oriented sockets, whichuse Transmission Control Protocol (TCP) or Stream ControlTransmission Protocol (SCTP).Raw sockets (or Raw IP sockets), typically available in routers andother network equipment. Here the transport layer is bypassed, andthe packet headers are not stripped off, but are accessible to theapplication.
  11. 11. Sockets are usually implemented by an API library such as Berkeleysockets, first introduced in 1983. Most implementations are basedon 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 calledsocket programming or network programming.
  12. 12. UserNameUserPasswordEncodepassword thenSave to Data1 User EntryD Data SaveFigure : DFD for register new user:
  13. 13. Receiver’sUserName If Receiver online then“Send”2 Check OnlineD Data Log SaveFigure : Control Flow to Send Message
  14. 14. Sender’sUserName Option (Yes/No)2 Chat RequestedIf Yes, ThenMessage ReceivedIf No, ThenMessageIgnoredFigure 3 : Control Flow to Receive Message
  15. 15. Receiver’sUser Name If Receiver online then“Send” File ReceiveRequest2 Check OnlineIf Receiver – YesThen Send FileCheckIf Receiver – NoThen Send process BreakFigure 4 : Control Flow to Send File
  16. 16. File ReceiveRequestA File Receive requestedBy <Sender>2 Message DisplayIf – YesThen displaymessage Where tosave the fileCheckIf – No Thenreceive process break.Figure 5 : Control Flow to Receive File
  17. 17. RequestedUser Name“Accept voice chat”Option (Yes/No)6 Message ShowIf Press – YesCheck For SupportedSound HardwareCheckIf Receiver – NoThen voice chat processBreakIf (Supported) = TrueThen Chat StartIf (supported) = FalseThen Show Error Msg.Figure 6 : Control Flow Voice Chat
  18. 18. Figure 7 : User administrator add panel
  19. 19. Figure 8 : Server Log pan store every status change itmade change by user and the server administrator.These logs are stored in flat data mode.
  20. 20. Figure 9: The session info contains the online user information.User entire time. His/Her encoded password.
  21. 21. Figure 10 : The user login form.
  22. 22. Figure 11: This is the most valuable client side main form.
  23. 23. Figure 12 : Data Receive From.Figure 13: Voice Chat Client.
  24. 24. Figure 14 : Client Side Option Dialog
  25. 25. The installation phase arrives only after the implementation phasehas been successfully competed. The final system now standsready to be delivered to the users. The principal objectives of theinstallation phase are to replace the existing system by the newlycreated system is smooth, trouble -free manner. In order toaccomplish the objectives, three activities must be performed.
  26. 26. Finally this software is completed successfully in implemented inreal field successfully. But man has a concern about somethingnew. In this way the development process will be continuing. Atpresent it covers to text based chat, voice chat and file transfer. Allthis shorts as it was in requirement successfully done. Butcommitted with market it is need farther more development.Otherwise it would be out of business. In this manner some planmade for future work and research.
  27. 27. Future development is on plan. which are video chat orvideo conference. Existing software will be more interactivelook. Some games will be added to it. Animation will beapplied. Sound effect and Sound theme will be makeresonance to cha user. Funny Aviary keeps support whenno one is online of according to user demand.

×