# pushptandekar24-glitch/code architecture

> Architecture diagram of the GitHub repository pushptandekar24-glitch/code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pushptandekar24-glitch/code
- Repository: https://github.com/pushptandekar24-glitch/code

## Overview

This repository is a collection of standalone Java networking exercises, Java language demonstrations, and Python machine-learning experiments—not one integrated application. The networking labs cover TCP services, UDP file transfer and chat, peer and server-based chat, and sliding-window protocols. The ML exercises span regression, classification, clustering, and sequence models, often with manual and library-based variants. Sampled code confirms a TCP chat client delegates to PeerChat and shows UDP chat client/server traffic; most other exercises are independent, so no cross-exercise flow is implied.

Main entry points: [`CN/Exp8/UDPChatClient.java`](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp8/UDPChatClient.java) (UDP Chat Client), [`CN/Exp7/MultiChatClient.java`](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp7/MultiChatClient.java) (TCP Chat Client), [`CN/Exp7/PeerChat.java`](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp7/PeerChat.java) (Peer Chat), [`CN/Exp8/UDPChatServer.java`](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp8/UDPChatServer.java) (UDP Chat Server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_net["Networking Labs"]
  node_tcp_lab["TCP Lab<br/>[TcpLab.java]"]
  node_udp_sender["UDP File Sender<br/>[UDPFileSender.java]"]
  node_udp_receiver["UDP File Receiver"]
  node_multi_client["TCP Chat Client"]
  node_peer_chat["Peer Chat<br/>[PeerChat.java]"]
  node_multi_server["Chat Server"]
  node_udp_chat_client["UDP Chat Client<br/>[UDPChatClient.java]"]
  node_udp_chat_server["UDP Chat Server<br/>[UDPChatServer.java]"]
  node_udp_peer_chat["UDP Peer Chat<br/>[UDPPeerChat.java]"]
  node_sliding["Sliding Window<br/>[SlidingWindow.java]"]
  node_crc["CRC ASCII<br/>[CRCAscii.java]"]
end

subgraph group_ml["ML Experiments"]
  node_regression["Regression"]
  node_polynomial["Polynomial Regression"]
  node_logistic["Logistic Regression"]
  node_knn["KNN"]
  node_svm["SVM"]
  node_hmm["Hidden Markov Models"]
  node_centroid["Centroid Clustering"]
  node_dbscan["DBSCAN"]
  node_adaboost["AdaBoost"]
end

subgraph group_java["Java Demonstrations"]
  node_gui_demos["AWT Demos"]
  node_collections["TreeSet Demo<br/>[Treesetclass.java]"]
  node_linked_list["Linked List Demo<br/>[LinkedList1.java]"]
  node_number_demo["Number Demo"]
  node_greeting["Greeting Demo<br/>[AllTheBest.java]"]
end

node_learner(("Learner"))

node_multi_client -->|"calls chat"| node_peer_chat
node_udp_chat_client -->|"sends datagrams"| node_udp_chat_server
node_learner -->|"enters messages"| node_udp_chat_client
node_learner -->|"chooses protocol"| node_sliding
node_learner -->|"enters value"| node_polynomial

click node_tcp_lab "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp5/TcpLab.java"
click node_udp_sender "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp6/UDPFileSender.java"
click node_udp_receiver "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp6/UDPFileReceiver.java"
click node_multi_client "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp7/MultiChatClient.java"
click node_peer_chat "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp7/PeerChat.java"
click node_multi_server "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp7/MultiChatServer.java"
click node_udp_chat_client "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp8/UDPChatClient.java"
click node_udp_chat_server "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp8/UDPChatServer.java"
click node_udp_peer_chat "https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp8/UDPPeerChat.java"
click node_sliding "https://github.com/pushptandekar24-glitch/code/blob/main/CN/SlidingWindow.java"
click node_crc "https://github.com/pushptandekar24-glitch/code/blob/main/CN/CRCAscii.java"
click node_regression "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp1"
click node_polynomial "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp2"
click node_logistic "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp3"
click node_knn "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp4"
click node_svm "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp5"
click node_hmm "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp6"
click node_centroid "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp7"
click node_dbscan "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp8"
click node_adaboost "https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp9"
click node_gui_demos "https://github.com/pushptandekar24-glitch/code/blob/main/Java/AWTKeyboardDemo.java"
click node_collections "https://github.com/pushptandekar24-glitch/code/blob/main/Java/Treesetclass.java"
click node_linked_list "https://github.com/pushptandekar24-glitch/code/blob/main/Java/LinkedList1.java"
click node_number_demo "https://github.com/pushptandekar24-glitch/code/blob/main/Java/PreviousNextNumber.java"
click node_greeting "https://github.com/pushptandekar24-glitch/code/blob/main/Java/AllTheBest.java"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tcp_lab,node_udp_sender,node_udp_receiver,node_multi_client,node_peer_chat,node_multi_server,node_udp_chat_client,node_udp_chat_server,node_udp_peer_chat,node_sliding,node_crc toneBlue
class node_regression,node_polynomial,node_logistic,node_knn,node_svm,node_hmm,node_centroid,node_dbscan,node_adaboost toneAmber
class node_gui_demos,node_collections,node_linked_list,node_number_demo,node_greeting toneMint
class node_learner toneIndigo
```

## Components

### Networking Labs

- [TCP Lab](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp5/TcpLab.java): `CN/Exp5/TcpLab.java`
- [UDP File Sender](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp6/UDPFileSender.java): `CN/Exp6/UDPFileSender.java`
- [UDP File Receiver](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp6/UDPFileReceiver.java): `CN/Exp6/UDPFileReceiver.java`
- [TCP Chat Client](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp7/MultiChatClient.java): `CN/Exp7/MultiChatClient.java`
- [Peer Chat](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp7/PeerChat.java): `CN/Exp7/PeerChat.java`
- [Chat Server](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp7/MultiChatServer.java): `CN/Exp7/MultiChatServer.java`
- [UDP Chat Client](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp8/UDPChatClient.java): `CN/Exp8/UDPChatClient.java`
- [UDP Chat Server](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp8/UDPChatServer.java): `CN/Exp8/UDPChatServer.java`
- [UDP Peer Chat](https://github.com/pushptandekar24-glitch/code/blob/main/CN/Exp8/UDPPeerChat.java): `CN/Exp8/UDPPeerChat.java`
- [Sliding Window](https://github.com/pushptandekar24-glitch/code/blob/main/CN/SlidingWindow.java): `CN/SlidingWindow.java`
- [CRC ASCII](https://github.com/pushptandekar24-glitch/code/blob/main/CN/CRCAscii.java): `CN/CRCAscii.java`

### ML Experiments

- [Regression](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp1): `ml/exp1`
- [Polynomial Regression](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp2): `ml/exp2`
- [Logistic Regression](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp3): `ml/exp3`
- [KNN](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp4): `ml/exp4`
- [SVM](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp5): `ml/exp5`
- [Hidden Markov Models](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp6): `ml/exp6`
- [Centroid Clustering](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp7): `ml/exp7`
- [DBSCAN](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp8): `ml/exp8`
- [AdaBoost](https://github.com/pushptandekar24-glitch/code/tree/main/ml/exp9): `ml/exp9`

### Java Demonstrations

- [AWT Demos](https://github.com/pushptandekar24-glitch/code/blob/main/Java/AWTKeyboardDemo.java): `Java/AWTKeyboardDemo.java`
- [TreeSet Demo](https://github.com/pushptandekar24-glitch/code/blob/main/Java/Treesetclass.java): `Java/Treesetclass.java`
- [Linked List Demo](https://github.com/pushptandekar24-glitch/code/blob/main/Java/LinkedList1.java): `Java/LinkedList1.java`
- [Number Demo](https://github.com/pushptandekar24-glitch/code/blob/main/Java/PreviousNextNumber.java): `Java/PreviousNextNumber.java`
- [Greeting Demo](https://github.com/pushptandekar24-glitch/code/blob/main/Java/AllTheBest.java): `Java/AllTheBest.java`

### Other components

- **Learner**

## Connections

- TCP Chat Client → Peer Chat: calls chat (evidence: `CN/Exp7/MultiChatClient.java`)
- UDP Chat Client → UDP Chat Server: sends datagrams (evidence: `CN/Exp8/UDPChatClient.java`)
- Learner → UDP Chat Client: enters messages (evidence: `CN/Exp8/UDPChatClient.java`)
- Learner → Sliding Window: chooses protocol (evidence: `CN/SlidingWindow.java`)
- Learner → Polynomial Regression: enters value (evidence: `ml/exp2/PRusingMan.py`)
