The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and...

9
JOURNAL OF COMPUTING, VOLUME 2, ISSUE 10, OCTOBER 2010, ISSN 2151-9617 HTTPS://SITES.GOOGLE.C OM/SITE/JOURNALOFCOMPUTING/ WWW.JOURNALOFCOMPUTING.ORG 18 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming Hamdan O.  Alanazi,  Rafidah Md Noor Abstract: In the past, communication among people was limited and very difficult. Nowadays, the Internet makes our life very easy . Through the Internet you can easily communicate with people in different corners of the world in a few seconds. These days, the world has been converted into a small village by the Internet. The chat room is one of the effective communication tools. In this paper, a new protocol is presented for the chat room using the socket programming concept. This protocol has been implemented using Java. Index Terms— Transmission Control Protocol, User Datagram Protocol, FTP and Chat Protocol. ——————————   —————————— 1. INTRODUCTION The term of chat room, or chatroom, is primarily used by the mass media to describe any form of synchronous conferencing, occasionally even asynchronous conferencing [1]. The term can thus mean any technology ranging from real-time online chat over instant messaging and online forums to fully immersive graphical social environments [2]. In computing, network programming, essentially identical to socket programming or client-server programming, involves writing computer programs that communicate with other programs across a computer network. The program or process initiating the communication is called a client process, and the program waiting for the communication to be initiated is the server process. The client and server processes together form a distributed system. The communication between the client and server processes may either be connection-oriented (such as an established TCP virtual circuit or session) [3], or connectionless (based on UDP datagrams). A program that can act both as a client and a server is based on peer-to- peer communication [4]. 2. TCP and UDP The Transmission Control Protocol (TCP) is one of the core protocols of the Internet Protocol Suite [5]. The TCP is so central that the entire suite is often referred to as "TCP/IP." Whereas IP handles lower- level transmissions from computer to computer as a message makes its way across the Internet, the TCP operates at a higher level, concerned only with the two end systems, for example, a Web browser and a Web server. In particular, the TCP provides reliable, ordered delivery of a stream of bytes from one program on one computer to another program on another computer. Besides the Web, other common applications of the TCP include e-mail and file transfer. Among its management tasks, the TCP controls message size, the rate at which messages are exchanged, and network traffic congestion. The TCP provides a communication service at an intermediate level between an application program and the Internet Protocol (IP). In other words, when an application program desires to send a large chunk of data across the Internet using IP, instead of breaking the data into IP-sized pieces and issuing a series of IP requests, the software can issue a single request to the TCP and let the TCP handle the IP details [6] as shown as in fig 1. Fig 1. Show the Communication Using TCP 

Transcript of The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and...

Page 1: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 1/9

Page 2: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 2/9

Page 3: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 3/9

Page 4: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 4/9

Page 5: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 5/9

Page 6: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 6/9

Page 7: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 7/9

Page 8: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 8/9

Page 9: The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Oriented Programming

8/8/2019 The Guide of Implementing Chat Protocol: Study Case on Using the Socket Programming Concept and Object Orien…

http://slidepdf.com/reader/full/the-guide-of-implementing-chat-protocol-study-case-on-using-the-socket-programming 9/9