Quantcast
Channel: JavaPins - Stories tagged with client
Viewing all articles
Browse latest Browse all 5

Synchronous Cilent Server application in java

$
0
0
This program creates a socket connection with the server running on port 9050 on localhost and gets the input stream from the socket by chaining the BufferedReader with the InputStreamReader. package clientserver; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.Socket; import java.net.UnknownHostException; public class client { public static void main(String args[]) { try { Socket s = new Socket("127....
Pin it

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images