Compare commits
	
		
			2 Commits
		
	
	
		
			8ca4ea90f0
			...
			8ee168a4fe
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								
								 | 
						8ee168a4fe | |
| 
							
							
								
								 | 
						a575c57743 | 
| 
						 | 
					@ -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) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					<html>
 | 
				
			||||||
 | 
					  <head>
 | 
				
			||||||
 | 
					    <title>GALLERY OF WONDERS</title>
 | 
				
			||||||
 | 
					  </head>
 | 
				
			||||||
 | 
					  <body>
 | 
				
			||||||
 | 
					    <h1>WONDERS</h1>
 | 
				
			||||||
 | 
					    <<img src="wonder.jpg" alt="WONDAH" />
 | 
				
			||||||
 | 
					  </body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
| 
						 | 
					@ -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>
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 122 KiB  | 
		Loading…
	
		Reference in New Issue