-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.java
More file actions
executable file
·33 lines (33 loc) · 979 Bytes
/
Client.java
File metadata and controls
executable file
·33 lines (33 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//import java.io.DataInputStream;
//import java.io.FileOutputStream;
//import java.io.IOException;
//import java.net.Socket;
//
//public class Client {
// public static void main(String[] args){
// Socket sock = new Socket(serverIp, 9999);
// DataInputStream dis = null;
// while (true){//changeCondition
// try {
// dis = new DataInputStream(sock.getInputStream());
// FileOutputStream fout = new FileOutputStream("frameImage.jpg");
// int i;
// while ( (i = dis.read()) > -1) {
// fout.write(i);
// }
//
// fout.flush();
// fout.close();
// dis.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
// }
// try {
// sock.close();
// } catch (IOException e) {
// e.printStackTrace();
// }
//
// }
//}