Share with others

Implement using Socket Programming (TCP/UDP) in Java

 

Aim : Implement using Socket Programming (TCP/UDP) in C / C++ / JAVA.
a) Addition of digits of a given Number.
b) Perform String Operations. (Length, Compare, Concatenation, Palindrome,  Substring)
c) Find the Factorial of a Number.
Source Code for Socket Programming :
 
Client Source Code :
 

 

Server Source Code :

 

Output of the Program Socket :

SERVER WAITING…..

Client Started
SOCKET PROGRAMMING MENU
1.FACTORIAL
2.SUM OF DIGITS OF A NO
3.String Operation
4.EXIT
ENTER UR CHOICE
1
ENTER A NO:
3
FACTORIAL IS:6
SOCKET PROGRAMMING MENU
1.FACTORIAL
2.SUM OF DIGITS OF A NO
3.String Operation
4.EXIT
ENTER UR CHOICE


Share with others