International Journal of Computer Applications |
Foundation of Computer Science (FCS), NY, USA |
Volume 183 - Number 32 |
Year of Publication: 2021 |
Authors: Ameya Gokhale |
10.5120/ijca2021921714 |
Ameya Gokhale . Types of socket programming and socket designs: A Review. International Journal of Computer Applications. 183, 32 ( Oct 2021), 34-39. DOI=10.5120/ijca2021921714
Sockets are used to connect multiple devices on a network. This concept is used widely in networking and network based applications. Complex networks can be developed using APIs (Application Programming Interface) in the applications using network. Socket Programming is supported in many languages, namely C, C++, C#, Python, Java and others. Sockets are created using the host IPA (Internet Protocol Address) and the TCP (Transmission Control Protocol) port number. Socket Programming can be done in numerous ways, as there are different designs of socket programming. Also, there are many different types of sockets. In this paper, Python and Java are used instead of other powerful programming languages, due to multiple reasons, including the fact that these two languages are extensively used in networking. This paper also discusses varied reasons for choosing Python and Java over other programming languages. A code presenting a simple client-server connection using socket programming in both, Python and Java has also been included in this paper. This research paper focuses on Applications of socket, their designs, types of socket and a simple socket server using Python and Java.