Moved Client to Tools
This commit is contained in:
parent
c13e05ea03
commit
4b64684cb3
2 changed files with 3 additions and 5 deletions
|
@ -5,8 +5,6 @@ import com.jsaasta.froj.Interpreter;
|
|||
import com.jsaasta.froj.stdlib.StdlibRuntimeError;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.net.ServerSocket;
|
||||
import java.net.Socket;
|
||||
import java.util.List;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
package com.jsaasta.froj.stdlib.socket;
|
||||
package com.jsaasta.tool;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.ConnectException;
|
||||
import java.net.Socket;
|
||||
|
||||
public class SocketClient {
|
||||
class SocketClient {
|
||||
|
||||
public static void main(String[] args) throws IOException {
|
||||
while(true) {
|
||||
|
@ -19,7 +19,7 @@ public class SocketClient {
|
|||
}
|
||||
}
|
||||
|
||||
public static String sendMessage(String message) throws IOException {
|
||||
private static String sendMessage(String message) throws IOException {
|
||||
Socket socket = null;
|
||||
try {
|
||||
socket = new Socket("localhost", 8000);
|
Loading…
Reference in a new issue