Skip to content

Instantly share code, notes, and snippets.

View nick-ivanov's full-sized avatar
💭
Stand with Ukraine! 🇺🇦

Nick Ivanov nick-ivanov

💭
Stand with Ukraine! 🇺🇦
View GitHub Profile
@dannvix
dannvix / EchoServer.java
Created April 15, 2013 02:55
simple multithreading TCP echo server in (ugly) Java
import java.io.*;
import java.net.*;
import java.lang.Thread;
public class EchoServer {
public static void main (String[] args) {
try {
ServerSocket server = new ServerSocket(5566);
while (true) {
Socket client = server.accept();