Browse Source

kleine Änderungen

remotes/origin/feature/client/make-input-field-buttons-interactive
fdai7599 11 months ago
parent
commit
27b2866f4a
  1. 7
      src/main/java/ChatServer.java

7
src/main/java/server/Server.java → src/main/java/ChatServer.java

@ -1,14 +1,13 @@
package server;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class Server {
public class ChatServer {
private ServerSocket serverSocket;
public void ChatServer(int port) {
public ChatServer(int port) {
try {
serverSocket = new ServerSocket(port);
System.out.println("Started ChatServer on port " + port);
@ -22,7 +21,7 @@ public class Server {
}
public static void main(String[] args) {
// TODO Auto-generated method stub
new ChatServer(3141);
}
Loading…
Cancel
Save