Skip to content
Snippets Groups Projects
Commit 372fb53f authored by tonschnoer's avatar tonschnoer
Browse files

added tcpclient

parent 106cd2fe
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,9 @@ public class Main { ...@@ -32,6 +32,9 @@ public class Main {
public void scheduler(Timer timer) { public void scheduler(Timer timer) {
try { try {
System.out.println("Timer fired."); System.out.println("Timer fired.");
TCPClient tc = new TCPClient();
tc.run();
} catch (Exception _ex) { } catch (Exception _ex) {
_ex.printStackTrace(); _ex.printStackTrace();
} }
......
...@@ -19,12 +19,8 @@ public class TCPClient { ...@@ -19,12 +19,8 @@ public class TCPClient {
/** The logger. */ /** The logger. */
protected final Logger logger = LogManager.getLogger(); protected final Logger logger = LogManager.getLogger();
/**
* The main method. public void run() {
*
* @param args the arguments
*/
public void main(String[] args) {
byte[] buffer = new byte[32768]; byte[] buffer = new byte[32768];
try { try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment