Merge branch 'jeremi' into dev
This commit is contained in:
commit
c38743383f
@ -32,6 +32,7 @@ public class ClientHandlerRepository implements AutoCloseable, UnicastCHR {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Setter, allow to define the ServerListener of a repository.
|
* Setter, allow to define the ServerListener of a repository.
|
||||||
|
* & Start the server.
|
||||||
* @param server ServerListener to set as default.
|
* @param server ServerListener to set as default.
|
||||||
*
|
*
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
@ -39,6 +40,7 @@ public class ClientHandlerRepository implements AutoCloseable, UnicastCHR {
|
|||||||
@Override
|
@Override
|
||||||
public void setServerListener(UnicastServerListener server) {
|
public void setServerListener(UnicastServerListener server) {
|
||||||
this.server = server;
|
this.server = server;
|
||||||
|
server.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,6 +33,7 @@ public class StoreProcessorRepository implements AutoCloseable, MulticastSPR {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Setter, allow to define the ServerListener of a repository.
|
* Setter, allow to define the ServerListener of a repository.
|
||||||
|
* & start the server.
|
||||||
* @param server ServerListener to set as default.
|
* @param server ServerListener to set as default.
|
||||||
*
|
*
|
||||||
* @since 1.0
|
* @since 1.0
|
||||||
@ -40,6 +41,7 @@ public class StoreProcessorRepository implements AutoCloseable, MulticastSPR {
|
|||||||
@Override
|
@Override
|
||||||
public void setServerListener(MulticastServerListener server) {
|
public void setServerListener(MulticastServerListener server) {
|
||||||
this.server = server;
|
this.server = server;
|
||||||
|
server.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
38
app/src/main/java/lightcontainer/storage/json-example.json
Normal file
38
app/src/main/java/lightcontainer/storage/json-example.json
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"unicast_port": 32000,
|
||||||
|
"multicast_ip": "224.25.0.1",
|
||||||
|
"multicast_port": 70000,
|
||||||
|
"network_interface": "LALALALA",
|
||||||
|
"tls": false,
|
||||||
|
"users": [
|
||||||
|
{
|
||||||
|
"username": "endmove",
|
||||||
|
"password": "notre-hash",
|
||||||
|
"aes_key": "jkjiezjijfizef8e4864",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"file_name": "lol.jpeg",
|
||||||
|
"file_size": 15558,
|
||||||
|
"iv": "8d484e8e84 (lié à la méthode de cryptage)",
|
||||||
|
"storage": [
|
||||||
|
"lol.benjamin"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"file_name": "super-man.png",
|
||||||
|
"file_size": 24457,
|
||||||
|
"iv": "zf4fe84f (lié à la méthode de cryptage)",
|
||||||
|
"storage": [
|
||||||
|
"lol.benjamin"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"username": "michel",
|
||||||
|
"password": "notre-hash du mdp",
|
||||||
|
"aes_key": "fjshufihehehuhuhuehu",
|
||||||
|
"files": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user