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

Dev #12

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Dev #12

wants to merge 9 commits into from

Conversation

maershov
Copy link
Collaborator

No description provided.

@leshiy1295
Copy link
Collaborator

ветка конфликтует с мастером :(
по идее в мастере-то быть ничего ещё не должно

void Close();
private:

asio::io_service service;
Copy link
Collaborator

Choose a reason for hiding this comment

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

плохо, что абстрактный клиент зависит от asio

@@ -0,0 +1,8 @@
#pragma once

class IRecievable {
Copy link
Collaborator

Choose a reason for hiding this comment

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

receive

c.Connect(5000, "127.0.0.1");
tcp::endpoint ep( tcp::v4(), 5000);
Server s(ep);
s.Run();
Copy link
Collaborator

Choose a reason for hiding this comment

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

хотелось бы видеть что-то более содержательное

} else{
std::cout << "Connect is fine" << std::endl;
}
});
}

void Client::Close() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

стоило сделать по RAII-шному


void Server::accept() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

почему с маленькой буквы?

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.

4 participants