|
@ -29,8 +29,7 @@ int main(int argc, char *argv[]) |
|
|
p.setDstPort(80); |
|
|
p.setDstPort(80); |
|
|
|
|
|
|
|
|
cout << "Wysylam wiadomosc: "; |
|
|
cout << "Wysylam wiadomosc: "; |
|
|
pc1.send(p); |
|
|
|
|
|
cout << endl; |
|
|
|
|
|
|
|
|
cout << pc1.send(p) << endl; |
|
|
|
|
|
|
|
|
cout << "Wywoluje onRecv() na PC2" << endl; |
|
|
cout << "Wywoluje onRecv() na PC2" << endl; |
|
|
pc2.onRecv(); |
|
|
pc2.onRecv(); |
|
|