68 |
* @author Grigor Iliev |
* @author Grigor Iliev |
69 |
*/ |
*/ |
70 |
public class Client { |
public class Client { |
71 |
|
public static final String VERSION = "0.8"; |
72 |
|
public static final String PROTOCOL_VERSION = "1.4"; |
73 |
private String address; |
private String address; |
74 |
private int port; |
private int port; |
75 |
private Socket sock = null; |
private Socket sock = null; |
284 |
* @return The jlscp version. |
* @return The jlscp version. |
285 |
*/ |
*/ |
286 |
public static String |
public static String |
287 |
getClientVersion() { |
getClientVersion() { return VERSION; } |
288 |
return Package.getPackage("org.linuxsampler.lscp").getImplementationVersion(); |
|
289 |
} |
/** |
290 |
|
* Gets the LSCP protocol version supported by this client. |
291 |
|
*/ |
292 |
|
public static String |
293 |
|
getProtocolVersion() { return PROTOCOL_VERSION; } |
294 |
|
|
295 |
/** |
/** |
296 |
* Gets the Linux Sampler address. |
* Gets the Linux Sampler address. |
373 |
); |
); |
374 |
} |
} |
375 |
|
|
376 |
String s = Package.getPackage("org.linuxsampler.lscp").getSpecificationVersion(); |
String s = getProtocolVersion(); |
377 |
String s2, sv, sv2; |
String s2, sv, sv2; |
378 |
|
|
379 |
try { |
try { |