Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include "cliser.h"
- using namespace std;
- void Client::send(string msg_snd_)
- {
- this->ser->receive(this, msg_snd_);
- }
- void Client::receive(string msg_from_server)
- {
- this->msg_rec = msg_from_server;
- cout << this->ser->name << ": " << msg_rec << endl;
- }
- void Server::receive(Client *cli, string msg_from_client)
- {
- this->msg_rec=msg_from_client;
- cout << cli->cli_name << ": " << msg_rec << endl;
- cli->receive("Wiadomosc odebrana");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement