-
Notifications
You must be signed in to change notification settings - Fork 8
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
Issue in data publishing #1
Comments
Please help me with the solution!!! |
Heads up: shouting isn't help. Nobody is obliged to solve your issues in any time frame. This is just a free project that you opt to use. I'm not a maintainer here, but I thought I'd let you know. |
ON TOPIC: This question was raised on StackOverflow and I analyzed its cause. The problem is that |
Hi, |
@rakshita1006 can you run the tests? What are you doing different/y? Note also, I have made a fork that has some simplifications in the API. It is still on-the-wire compatible though (until this: sehe#1) |
Hi, I am not sure what wrong I am doing .I am using Ubuntu 18.0 with boost 1.65.0. I also made the necessary changes as suggested by you in fix issue #1,#3 ,#4 and try to run the code. client code: int main() {
} Server Code:
Please find the attched file of the output U ran the code with the same code as here. Is it the correct way to go or I am missing some step?Does we need to execute code from test folder.if yes then how as there is no main function in that? Thanks |
What happens when you check out the code from the PR branch and run the tests? I've added another commit that you can use instead of manually doing the changes: #7 You can use it from my repo, e.g. in a docker: docker run --rm -ti ubuntu:20.04
apt update
apt -qqyy install build-essential git cmake libboost-all-dev
git clone https://github.com/sehe/msghub -b cmake
cd msghub
cmake . && make
./examples/server & ./examples/client ; kill %1; wait The tester has a main function (it's in main.cpp) and depends on Boost Unit Test framework.. is also built by the CMake |
Making it even easier, I reduced CMake and Boost requirements to support 18.04 again, and tested with a Dockerfile: FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt update; \
apt -qqyy install build-essential git cmake libboost-all-dev
RUN git clone https://github.com/sehe/msghub --depth 1 -b cmake
WORKDIR /msghub
RUN cmake . && make
CMD ["/bin/bash", "-c", "(./examples/server & ./examples/client ; kill %1; wait)"] Put this docker build . -f containers/issue1 -t msghub:cmake To do the simple client/server test: docker run --rm -it msghub:cmake There are shutdown races impactng the unit tests. I think they're all fixed on my other branch sehe/msghub: https://github.com/sehe/msghub/blob/std-over-boost/containers/std-over-boost Live demo of the cmake container : Live demo of the std-over-boost branch which fixes a lot more issues and modernizes the code + interfaces: |
@sehe It finally worked for me. Thank you for your help. |
Hi,
I am trying to create a pub/sub model using BoostAsio library with the help of your code.
I was able to establish a connection between the publisher and subscriber but the data is neither [published nor subscribe.
Could you please help me with the issue.
Thanks & Regards
Rakshita Parihar
The text was updated successfully, but these errors were encountered: