Click here to Skip to main content
15,893,401 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Everybody,

I am using Poco library C++ running of my server and client.

1) I Learned how to run server and client.

Server separate and client separate running(Done).

2) I want to run server continuously, Receiving and sending data from server.

3) How can I use Poco Server for sending as well as receiving.

Ex: section A Section B.

1) C++ client(port 4001) -> sending post request -> C++ Server(4001). based
on url rule below client
sending data to server(A)
2) C++ Server(4002) <- sending post request <- C++ Client(4002).

What I have tried:

I have separate client and server and it's running operation but I want to run the application on server for sending and receiving.

Suggest me to proceed forward.
Posted
Updated 14-Sep-22 0:28am
v2

I am sorry I can't help you directly but that is because I have never used that library. I have used this library I found here : Multi-threaded Client/Server Socket Class[^] and it worked quite well. Maybe something in that article can help you.
 
Share this answer
 
Comments
AMARNATH REDDY SURAPUREDDY 14-Sep-22 4:46am    
Anybody whoever using Poco C++ library give me response
POCO is a specialised set of libraries; you will probabply get better help at POCO C++ Libraries - Community[^].
 
Share this answer
 
Thanks for response, Everybody

Finally I resolve my problem.

Combining the client and server will the solution.

1) Server : Learning Poco: A Simple HTTP Server[^]


2) Client : C++ Poco::Net::HTTPClientSession | C++ | cppsecrets.com[^]


make sure that server and client ports are different.
3) Done.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900