Skip to content

Instantly share code, notes, and snippets.

View kamilbolka's full-sized avatar
🎯
Focusing

Kamil Bolka kamilbolka

🎯
Focusing
View GitHub Profile
import java.io.*;
import java.net.*;
/**
*
* @author kamilbolka
*/
public class ServerSocketMachine {
private static final int PORT = 6666;
@kamilbolka
kamilbolka / Client.java
Created February 4, 2019 19:24
Example of Socket and ServerSocket on local host connection
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sockets;
import java.net.Socket;
import java.io.*;
import java.util.Arrays;