Java Socket client & server [duplicate]
问题 This question already has an answer here : Java socket , client and server [closed] (1 answer) Closed 5 years ago . I tried the following code to send list of files and directories, from server to client. the server is receiving from client but i don't know whether server is not sending back the result or client is not accepting it. Server side: package without.thread; import java.io.BufferedOutputStream; import java.net.ServerSocket; import java.net.Socket; import java.io.BufferedReader;