Compare commits

..

2 Commits

Author SHA1 Message Date
andrzej 8ee168a4fe static files 2024-11-10 16:31:41 +01:00
andrzej a575c57743 listen 2024-11-10 16:31:35 +01:00
4 changed files with 40 additions and 0 deletions

21
Main.java Normal file
View File

@ -0,0 +1,21 @@
import java.net.ServerSocket;
import java.net.Socket;
public class Main {
public static void main(String[] args) throws Exception {
try (ServerSocket serverSocket = new ServerSocket(8080)) {
System.out.println("listening on socket 8080...");
while (true) {
try (Socket client = serverSocket.accept()) {
handleClient(client);
}
}
}
}
public static void handleClient(Socket client) {
}
}

9
gallery.html Normal file
View File

@ -0,0 +1,9 @@
<html>
<head>
<title>GALLERY OF WONDERS</title>
</head>
<body>
<h1>WONDERS</h1>
<<img src="wonder.jpg" alt="WONDAH" />
</body>
</html>

10
index.html Normal file
View File

@ -0,0 +1,10 @@
<<head>
<header>
<title>JAVA SERVER TEST</title>
</header>
<body>
<h1>YEAH BOI</h1>
<p>It fuckin werked, mate</p>
<p><a href="gallery.html">Click here</a> for wondrous things.</p>
</body>
</head>

BIN
wonder.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB