Home
Add Document
Sign In
Register
Client Server - Java
Home
Client Server - Java
...
Author:
Muhammad Rana Farhan
48 downloads
290 Views
346KB Size
Report
DOWNLOAD .PDF
Recommend Documents
Client Server
Client Server
Full description
Client Server Architecture.pdf
MySQL Client Server
Full description
MAKALAH Jaringan Client Server
Full description
Room Client Java
Konfigurasi Jaringan Client Server Windows Server 2003
Konfigurasi Jaringan Client Server Windows Server 2003
Membuat Aplikasi Desktop Client Server Sederhana dengan Java RMI
Konfigurasi Client-Server Debian 8
langkah-langkah melakukan Konfigurasi Client-Server di Debian 8Deskripsi lengkap
Modul Lengkap Pemrograman Client Server
PEMROGRAMANFull description
JAVA Server Programming Java EE7 Black Book
JAVA Server Programming Java EE7 Black Book
Ressources Formation Java Server Faces
Ressources Formation Java Server FacesDescription complète
Sistem Terdistribusi - Arsitektur Client-Server Pada Email
UASFull description
Client Server Applications with Visual FoxPro and SQL Server .pdf
Descripción completa
Client Server Applications with Visual FoxPro and SQL Server .pdf
Descripción completa
Program Hotel Berbasis Client Server Dengan C#
Full description
Proiect Client-Server. Retele de Calculatoare
Retele de CalculatoareFull description
[Docx.vn] Xay Dung Chuong Trinh Chat Room Client-server Bang Socket Trong Java
[Docx.vn] Xay Dung Chuong Trinh Chat Room Client-server Bang Socket Trong Java
FAQ in JSP (Java Server Pages)
JSP FAQ
Java Programación Server Con J2EE Edición 1.3
Curso de Java Server Faces y Ajax
Descripción completa
Java Server Faces User\'s Guide
Client Brief
Client Server
============================================
Client import java.net.*; import java.io.*; import javax.swing.*; class Client{ public static void main(String args[]){ Socket soc; ObjectInputStream oin=null; ObjectOutputStream oos=null; try{
soc=new Socket("localhost",2000); oos=new ObjectOutputStream(soc.getOutputStream()); oin=new ObjectInputStream(soc.getInputStream());
msg: ");
while(true){ String s=JOptionPane.showInputDialog("Enter if(s=="quit") break; else{ oos.writeObject(new String(s)); String str=(String)oin.readObject(); System.out.println(str); }
} oin.close(); oos.close(); soc.close(); }catch(Exception e){e.printStackTrace();} }
}
Server import java.net.*; import java.io.*; import javax.swing.*; class Server{ public static void main(String args[]){ ServerSocket sersoc=null; Socket client_soc; ObjectInputStream ois=null; ObjectOutputStream oos=null; try{
sersoc=new ServerSocket(2000); }catch(Exception e){e.printStackTrace();} try{ System.out.println("Server is Ready for Chat!!!"); client_soc=sersoc.accept(); ois=new ObjectInputStream(client_soc.getInputStream()); oos=new ObjectOutputStream(client_soc.getOutputStream()); while(true){ String s=(String)ois.readObject(); if(s=="quit"){ System.out.println(s); break; } else{ System.out.println(s); String str=JOptionPane.showInputDialog("Enter msg: "); oos.writeObject(new String(str)); } } oos.close(); ois.close(); sersoc.close(); client_soc.close();
}catch(Exception e){e.printStackTrace();} }
}
http://www.ravianeducation.blogspot.com FARHAN: 03008855006
×
Report "Client Server - Java"
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Our partners will collect data and use cookies for ad personalization and measurement.
Learn how we and our ad partner Google, collect and use data
.
Agree & close