Monday, February 10, 2020

Platforms for Socket Programming

Socket API is available for many languages on many platforms:

• Linux, Windows. 
1. C
2. Java
3. Perl
4. Python
5.Ruby 
The "C" language BSD API is used on Linux, all popular variants of Unix, Microsoft Windows (NT,2000,XP, and later) and even embedded OSs like VxWorks. Windows Sockets API (WSA), which was later shortened to Winsock, is a technical specification that defines how Windows network software should access network services, especially TCP/IP.
Socket Programs written in any language and running on any platform can communicate with each other! Writing communicating programs in different languages is a good exercise.

Why object oriented?
Object-oriented programming aims to implement real-world entities like inheritance, hiding, polymorphism etc in programming. The main aim of OOP is to bind together the data and the functions that operate on them so that no other part of the code can access this data except that function.
In this project we are going to use Java. Java is a general-purpose, concurrent, object-oriented, class-based, and the runtime environment(JRE) which consists of JVM which is the cornerstone of the Java platform. Java is platform independent which means that any application written on one platform can be easily ported to another platform.All the code is converted in bytecode after compilation, which is not readable by a human, and java does not use an explicit pointer and run the programs inside the sandbox to prevent any activities from untrusted sources. It enables to develop virus-free, tamper-free systems/applications. It has the ability to adapt to an evolving environment which supports dynamic memory allocation due to which memory wastage is reduced and performance of the application is increased. In addition to sockets, which can communicate with general-purpose programs in arbitrary languages, Java provides two higher-level packages for communicating with specific types of systems: Remote Method Invocation (RMI) and database connectivity (JDBC). The RMI package lets you easily access methods in remote Java objects and transfer serializable objects across network connections. JDBC lets you easily send SQL statements to remote databases. 

25 comments:

  1. Very informative and helpful. Good work.

    ReplyDelete
  2. Good work and very helpful..

    ReplyDelete
  3. Nice explanation to the use of Java's Object Oriented Programming for platform independent Socket Programming. Excellent

    ReplyDelete