Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

De-static GPGNetServer #67

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

Brutus5000
Copy link
Member

No description provided.

@Brutus5000 Brutus5000 force-pushed the feature/destatic-GPGNetServer-class branch from 1e356b6 to 0082f26 Compare December 8, 2024 20:56
try {
// The socket declaration must not be moved into a try-with-resources block, as the socket must not be
// closed. It is passed into the GPGNetClient.
Socket socket = serverSocket.accept();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe can create a constructor in the GPGNetClient(ServerSocket serverSocket) and get a socket in the constructor code. Assuming that the client should close the socket, and not try close in try/catch.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not even sure why it is split up in 2 classes. 1 class is probably sufficient and then keeps the reference to the socket. But that is out of scope of this PR.

@Brutus5000 Brutus5000 force-pushed the feature/destatic-GPGNetServer-class branch from 0082f26 to a12e90f Compare December 8, 2024 22:03
@GodFuper
Copy link
Contributor

GodFuper commented Dec 8, 2024

Now you can merge

@Brutus5000 Brutus5000 merged commit 10be8db into master Dec 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants