git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
server: re-introduce the client/server versions
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
serial
/
server
/
ServerString.java
diff --git
a/src/be/nikiroo/utils/serial/server/ServerString.java
b/src/be/nikiroo/utils/serial/server/ServerString.java
index 6a0d4f462c48d1adfc46f5723bd240514cdf020e..b321cedf1cceb936f4afab4099905084ae4652ed 100644
(file)
--- a/
src/be/nikiroo/utils/serial/server/ServerString.java
+++ b/
src/be/nikiroo/utils/serial/server/ServerString.java
@@
-4,6
+4,8
@@
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.net.Socket;
import java.net.UnknownHostException;
+import be.nikiroo.utils.Version;
+
/**
* This class implements a simple server that can listen for connections and
* send/receive Strings.
/**
* This class implements a simple server that can listen for connections and
* send/receive Strings.
@@
-66,7
+68,7
@@
abstract public class ServerString extends Server {
protected ConnectActionServer createConnectActionServer(Socket s) {
return new ConnectActionServerString(s, key) {
@Override
protected ConnectActionServer createConnectActionServer(Socket s) {
return new ConnectActionServerString(s, key) {
@Override
- public void action() throws Exception {
+ public void action(
Version clientVersion
) throws Exception {
long id = getNextId();
for (String data = rec(); data != null; data = rec()) {
String rep = null;
long id = getNextId();
for (String data = rec(); data != null; data = rec()) {
String rep = null;