Commit 33768b30 authored by mahdikarami0111's avatar mahdikarami0111

added javadoc

parent ee7f03fd
Pipeline #6036 failed with stages
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
...@@ -6,6 +6,9 @@ import java.io.InputStreamReader; ...@@ -6,6 +6,9 @@ import java.io.InputStreamReader;
import java.io.PrintWriter; import java.io.PrintWriter;
import java.net.Socket; import java.net.Socket;
/**
* client class has a main method takes input from system and reads and writes to the socket data stream
*/
public class Client { public class Client {
public static void main(String[] args) { public static void main(String[] args) {
try { try {
......
...@@ -8,6 +8,9 @@ import java.net.Socket; ...@@ -8,6 +8,9 @@ import java.net.Socket;
import java.security.PrivateKey; import java.security.PrivateKey;
import java.util.ArrayList; import java.util.ArrayList;
/**
* a class that extends thread we use it to hndle multiple clients
*/
public class ClientHandler extends Thread{ public class ClientHandler extends Thread{
private BufferedReader reader; private BufferedReader reader;
......
...@@ -3,6 +3,9 @@ package com.company; ...@@ -3,6 +3,9 @@ package com.company;
import java.io.IOException; import java.io.IOException;
import java.net.ServerSocket; import java.net.ServerSocket;
/**
* server class for handling clients
*/
public class Server { public class Server {
public static void main(String[] args) { public static void main(String[] args) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment