Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
17 views
Assignment 9 GRP-B (Hello)
Uploaded by
defana4720
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download now
Download
Save Assignment 9 GRP-B (Hello) For Later
Download
Save
Save Assignment 9 GRP-B (Hello) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
17 views
Assignment 9 GRP-B (Hello)
Uploaded by
defana4720
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF, TXT or read online on Scribd
Download now
Download
Save Assignment 9 GRP-B (Hello) For Later
Carousel Previous
Carousel Next
Download
Save
Save Assignment 9 GRP-B (Hello) For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 2
Search
Fullscreen
import java.io.
*;
import java.net.*;
public class ClientCode
{
Socket socket;
BufferedReader sock_in,kdb_in;
PrintWriter sock_out;
String str;
public ClientCode()
{
try{
Socket socket=new Socket("127.0.0.1",8080);
kdb_in=new BufferedReader(new InputStreamReader(System.in));
sock_in=new BufferedReader(new InputStreamReader(socket.getInputStream()));
sock_out=new PrintWriter(socket.getOutputStream());
while(true)
{
System.out.println("Enter the msg");
str=kdb_in.readLine();
sock_out.println(str);
sock_out.flush();
System.out.println("Msg from Server");
str=sock_in.readLine();
System.out.println(str);
if(str.equals("bye"))
break;
}
//socket.close();
}catch (Exception e) { }
}
public static void main(String arg[])
{
new ClientCode();
}
}
/* OUTPUT
Enter the msg
hiiii
Msg from Server
hii,welcome to svit
Enter the msg
what r u doing?
Msg from Server
nothing
Enter the msg
ok bye
Msg from Server
bye
You might also like
Practical 16
PDF
No ratings yet
Practical 16
7 pages
AJP Programs (16.... )
PDF
No ratings yet
AJP Programs (16.... )
6 pages
Project Code
PDF
No ratings yet
Project Code
4 pages
Program
PDF
No ratings yet
Program
24 pages
AIM:-Create A Program That Will Communicate With The Server. (Echo Server/One Way Communication) Theory
PDF
No ratings yet
AIM:-Create A Program That Will Communicate With The Server. (Echo Server/One Way Communication) Theory
9 pages
Socket Programming
PDF
No ratings yet
Socket Programming
3 pages
tp1 P3 p2 p2p
PDF
No ratings yet
tp1 P3 p2 p2p
3 pages
tp1 p4 p2p
PDF
No ratings yet
tp1 p4 p2p
3 pages
22MIS0312CNLabAssessment 2
PDF
No ratings yet
22MIS0312CNLabAssessment 2
13 pages
VP CN Record
PDF
No ratings yet
VP CN Record
74 pages
CN program
PDF
No ratings yet
CN program
16 pages
Tcp
PDF
No ratings yet
Tcp
2 pages
Stop and Wait Protocol
PDF
No ratings yet
Stop and Wait Protocol
2 pages
Network programming lab report
PDF
No ratings yet
Network programming lab report
4 pages
Practical-5: Aim: Create A Client - Server Application Using Socket Programming. Server File
PDF
No ratings yet
Practical-5: Aim: Create A Client - Server Application Using Socket Programming. Server File
5 pages
DC TCP exp1_250206_091934
PDF
No ratings yet
DC TCP exp1_250206_091934
3 pages
Socket Programming in Java
PDF
No ratings yet
Socket Programming in Java
4 pages
Java Practical No 25
PDF
No ratings yet
Java Practical No 25
9 pages
Practical No. 16
PDF
No ratings yet
Practical No. 16
8 pages
Practical No. 16 and 17
PDF
No ratings yet
Practical No. 16 and 17
4 pages
Server Client Chat
PDF
No ratings yet
Server Client Chat
4 pages
TCP Multiclient
PDF
No ratings yet
TCP Multiclient
6 pages
20MID0148_VL2023240504729_AST02
PDF
No ratings yet
20MID0148_VL2023240504729_AST02
9 pages
Fspchatbot
PDF
No ratings yet
Fspchatbot
20 pages
DC Experiments - ALL
PDF
No ratings yet
DC Experiments - ALL
83 pages
Transaction TCP Aim:: To Write A Java Program To Transaction Between Client To Server Using TCP
PDF
No ratings yet
Transaction TCP Aim:: To Write A Java Program To Transaction Between Client To Server Using TCP
7 pages
program
PDF
No ratings yet
program
2 pages
61FIT3NPR - W06 Tut TCP Socket and Thread
PDF
No ratings yet
61FIT3NPR - W06 Tut TCP Socket and Thread
5 pages
Socket Programming-2
PDF
No ratings yet
Socket Programming-2
19 pages
CN record EX3 TO 10
PDF
No ratings yet
CN record EX3 TO 10
39 pages
Assignment 4
PDF
No ratings yet
Assignment 4
12 pages
EX - NO 3 (A) Applications Using TCP Sockets Like Echo Client and Echo Server Aim
PDF
No ratings yet
EX - NO 3 (A) Applications Using TCP Sockets Like Echo Client and Echo Server Aim
4 pages
TCP Socket For Addition
PDF
No ratings yet
TCP Socket For Addition
9 pages
Work Program
PDF
No ratings yet
Work Program
13 pages
proc
PDF
No ratings yet
proc
3 pages
TCP_IP_Communication_Java
PDF
No ratings yet
TCP_IP_Communication_Java
3 pages
Two way socket_241218_113921
PDF
No ratings yet
Two way socket_241218_113921
5 pages
Two way socket_241218_113921
PDF
No ratings yet
Two way socket_241218_113921
5 pages
Adv Java
PDF
No ratings yet
Adv Java
46 pages
33 Jess Exp7
PDF
No ratings yet
33 Jess Exp7
5 pages
Report of Client and Server
PDF
No ratings yet
Report of Client and Server
5 pages
Lab Report Cn
PDF
No ratings yet
Lab Report Cn
74 pages
Network Programming Assignment - 2021WA86148- CSIWZC462
PDF
No ratings yet
Network Programming Assignment - 2021WA86148- CSIWZC462
8 pages
DOC-20240809-WA0013.
PDF
No ratings yet
DOC-20240809-WA0013.
27 pages
Chat Program Two Way Communication Java: S. Nageswara Rao, Corporate Trainer June 8, 2011 36 Comments
PDF
No ratings yet
Chat Program Two Way Communication Java: S. Nageswara Rao, Corporate Trainer June 8, 2011 36 Comments
29 pages
Travaux Pratiques: Exercice 1 (Sockets UDP)
PDF
No ratings yet
Travaux Pratiques: Exercice 1 (Sockets UDP)
13 pages
Ex 3.a - Echo Client and Echo Server
PDF
No ratings yet
Ex 3.a - Echo Client and Echo Server
6 pages
NPM EX123
PDF
No ratings yet
NPM EX123
6 pages
CN LAB
PDF
No ratings yet
CN LAB
34 pages
LW 15 - Network Socket Programming
PDF
No ratings yet
LW 15 - Network Socket Programming
4 pages
Assignment-Soket Programming
PDF
No ratings yet
Assignment-Soket Programming
37 pages
A.A Java U7j
PDF
No ratings yet
A.A Java U7j
6 pages
Server Class: Name:Pandya Rohankumar Roll No:18mca020 Practical No:3
PDF
No ratings yet
Server Class: Name:Pandya Rohankumar Roll No:18mca020 Practical No:3
4 pages
Computer Network File Socket Programming
PDF
No ratings yet
Computer Network File Socket Programming
26 pages
JP Manual Answers Experiment 25
PDF
No ratings yet
JP Manual Answers Experiment 25
5 pages
clserv
PDF
No ratings yet
clserv
2 pages
Network Programming
PDF
100% (1)
Network Programming
8 pages
ECLIPSE-RA3 Y RA4
PDF
No ratings yet
ECLIPSE-RA3 Y RA4
20 pages
Ex 3.b - Chat Application
PDF
No ratings yet
Ex 3.b - Chat Application
5 pages
Rust Package 100 Knocks: One-Hour Mastery Series 2024 Edition
From Everand
Rust Package 100 Knocks: One-Hour Mastery Series 2024 Edition
Kanto
No ratings yet