Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
APW_S10.2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9931049
APW_S10.2
Commits
33768b30
Commit
33768b30
authored
Jun 06, 2021
by
mahdikarami0111
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added javadoc
parent
ee7f03fd
Pipeline
#6036
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
vcs.xml
.idea/vcs.xml
+6
-0
Client.java
src/com/company/Client.java
+3
-0
ClientHandler.java
src/com/company/ClientHandler.java
+3
-0
Server.java
src/com/company/Server.java
+3
-0
No files found.
.idea/vcs.xml
0 → 100644
View file @
33768b30
<?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
src/com/company/Client.java
View file @
33768b30
...
...
@@ -6,6 +6,9 @@ import java.io.InputStreamReader;
import
java.io.PrintWriter
;
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
static
void
main
(
String
[]
args
)
{
try
{
...
...
src/com/company/ClientHandler.java
View file @
33768b30
...
...
@@ -8,6 +8,9 @@ import java.net.Socket;
import
java.security.PrivateKey
;
import
java.util.ArrayList
;
/**
* a class that extends thread we use it to hndle multiple clients
*/
public
class
ClientHandler
extends
Thread
{
private
BufferedReader
reader
;
...
...
src/com/company/Server.java
View file @
33768b30
...
...
@@ -3,6 +3,9 @@ package com.company;
import
java.io.IOException
;
import
java.net.ServerSocket
;
/**
* server class for handling clients
*/
public
class
Server
{
public
static
void
main
(
String
[]
args
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment