Skip to content

Commit b99a523

Browse files
authored
Update README.md
1 parent 1998a8b commit b99a523

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This is an ideal java socket client class
33
It contains a socket client class and a RequestManager
44
## Dependencies
5-
You need to have [https://github.com/FasterXML/jackson](jackson) library to be able to use those files, the jackson library is used to serialize and deserialize data to and from json
5+
You need to have [jackson](https://github.com/FasterXML/jackson) library to be able to use those files, the jackson library is used to serialize and deserialize data to and from json
66
## Overview
77
The communication between client and server is done using json, a request to the server is like `{hash:(number>0),command:"",files?:[MediaFile],...others fields}`, where the hash is the number associated to the request, and the command is the request command, and we can have more other fields depending on the command. The server so need to parse the request string , and based on the commands, return a response in json string format of course, and the client parse that response which must be like `{hash:(number >=0),status:(number>=0),data:any,files?:[MediaFile]}`.
88

@@ -32,7 +32,7 @@ Thats is an interface and has just one method:
3232
That interface is responsible of handling ftp operation like sending or receiving a media file.
3333
It contains just 2 method :
3434
* `send(OutputStream out,MediaFile file)`: permits sending a media file
35-
* `receive(InputStream in,String path)`: permits to receive a media file from the server
35+
* `receive(InputStream in,MediaFile mediaFile)`: permits to receive a media file from the server
3636
You need to implements those two methods according to how your ftp server works
3737

3838
### RequestManager class