Moved Client to Tools

This commit is contained in:
Jesper Saastamoinen 2024-12-13 11:34:53 +01:00
parent c13e05ea03
commit 4b64684cb3
2 changed files with 3 additions and 5 deletions

View file

@ -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;

View file

@ -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);