Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 01 2018 15:49

    cristobalmedinalopez on master

    License added (compare)

  • Mar 02 2018 11:43
    vicente-gonzalez-ruiz commented #1
  • Mar 02 2018 11:43

    vicente-gonzalez-ruiz on master

    File path resolution and README Merge pull request #1 from Glit… (compare)

  • Mar 02 2018 11:43
    vicente-gonzalez-ruiz closed #1
  • Mar 02 2018 07:51
    Glitchfix opened #1
Cristóbal Medina López
@cristobalmedinalopez
I mean to the core repo
Anuraag Gupta
@anu1097

I ran the command this is what I got /core$ ./make.py --debug

Making for Linux...
Number of cores = 4

Building for Release...

-- Boost version: 1.61.0
-- Found the following Boost libraries:
-- system
-- filesystem
-- chrono
-- serialization
-- timer
-- thread
-- log
-- log_setup
-- date_time
-- program_options
-- atomic
-- regex
CMake Warning (dev) at CMakeLists.txt:217 (add_executable):
Policy CMP0037 is not set: Target names should not be reserved and should
match a validity pattern. Run "cmake --help-policy CMP0037" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

The target name "test" is reserved or not valid for certain CMake features,
such as generator expressions, and may result in undefined behavior.
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/anuraag/core/build

Scanning dependencies of target p2psp
[ 13%] Built target test
[ 17%] Building CXX object CMakeFiles/p2psp.dir/src/core/peer_core.cc.o
[ 21%] Building CXX object CMakeFiles/p2psp.dir/src/core/peer_ims.cc.o
[ 26%] Building CXX object CMakeFiles/p2psp.dir/src/core/peer_dbs.cc.o
[ 30%] Building CXX object CMakeFiles/p2psp.dir/src/core/peer_nts.cc.o
[ 47%] Building CXX object CMakeFiles/p2psp.dir/src/core/monitor_dbs.cc.o
[ 47%] Building CXX object CMakeFiles/p2psp.dir/src/core/peer_symsp.cc.o
[ 47%] Building CXX object CMakeFiles/p2psp.dir/src/core/monitor_lrs.cc.o
[ 47%] Building CXX object CMakeFiles/p2psp.dir/src/core/peer_ems.cc.o
[ 60%] Building CXX object CMakeFiles/p2psp.dir/src/core/monitor_nts.cc.o
[ 60%] Building CXX object CMakeFiles/p2psp.dir/src/core/monitor_ems.cc.o
[ 60%] Building CXX object CMakeFiles/p2psp.dir/src/core/splitter_ems.cc.o
[ 65%] Linking CXX shared library ../bin/libp2psp.so
[100%] Built target p2psp

Cristóbal Medina López
@cristobalmedinalopez
Ok, now I can see your file. You are getting DEBUG information.
In fact, the state of the buffer is shown
So, what is the issue?
Anuraag Gupta
@anu1097
I couldn't understand the terminal output of the Local Team Structure
Its printing buffer state where it was printing the amount of chunks recieved and sent. What is wrong and how do I fix it ?
Cristóbal Medina López
@cristobalmedinalopez
Rebuild without debug mode and it should be hidden:
core$ ./make.py clean
core$ ./make.py
and
p2psp-console$ ./make.py clean
p2psp-console$ ./make.py
Anuraag Gupta
@anu1097
ok
Anuraag Gupta
@anu1097
apparently there are some errors in the files. So core is not rebuilding. I guess I should reclone the reposiory
Anuraag Gupta
@anu1097
I recloned it and ran the commands the core was built with some warnings https://www.dropbox.com/s/yfr8z5l472bvmg7/core.txt?dl=0
But the console couldn't be built. It showed some errors.
Cristóbal Medina López
@cristobalmedinalopez
Ok, some people told us about warnings in the building process. We need to replicate it.
What is your boost version? and gcc?
Is it the master branch for both repos?
(They are many questions, but they will help us to solve it) Thanks!
Cristóbal Medina López
@cristobalmedinalopez
We think that this issue could be generated by a old version of boost, but we are not sure.
Anuraag Gupta
@anu1097
Surprisingly I again retried the process. But this time I cloned the repositories in my home directory. This time the building process worked. Local team is also building successfully and giving the proper output. I guess the building process only works when the repositories are in home directory.
I was also thinking about the port issue. I try killAll Vlc command before running any other team. It works for me. But is there a way we can fix it by giving a range of port values as argument list in command line.
Anuraag Gupta
@anu1097
Boost version: 1.61.0
gcc (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
How should I proceed with it then. I have started reading up on boost asio and the source code of peer.cc.
Anuraag Gupta
@anu1097
I was also reading up on Planetlab idea. It seems to me that both of these ideas require a bash script to be run to test the protocol. Only difference being one is run on a Single machine and other being run on a community of public hosts.
Anuraag Gupta
@anu1097
I ran a Local team 3 peers along with one monitor peer this was the expected output I guess. So which values should I be focussing to do the performance assessment ? https://www.dropbox.com/s/nmrqz729v13lok8/Output.txt?dl=0
Cristóbal Medina López
@cristobalmedinalopez
Values like number of peers in the team or number of lost chunks allow us to know if everything works properly. Also, check if a removed peers is removed from the list of peers of the entire team is interesting.
castellanprime
@castellanprime
@anu1097 Sorry. I am still having difficulty in running the local team. Could you share with me your spec and commands you used to run the local team. Thanks.
Anuraag Gupta
@anu1097
I have put up the bash script in this channel. Plus specs of my boost library and g++ is also written above.
@castellanprime Just keep on changing port numbers for vlc till it works. that's what I do. Plus try using killall vlc works for me
castellanprime
@castellanprime
@anu1097 Hmm.. trying that now. Seems like it was a firewall issue.
Anuraag Gupta
@anu1097
@vicente-gonzalez-ruiz I read and tried to deploy your testing script . This was the result.
Anuraag Gupta
@anu1097
I edited your original script to run a local source. https://gist.github.com/anu1097/90687ebf64a9895157b1248e825e577d
I was not receiving anything on that source IP. That's why I ran a local source. But as you can see from the output peer is not connecting
I also faced trouble with the socket not binding thing. killall vlc command usually helped but not in all cases. I thought about using a scipt to find unused port
But I was getting the same output.
Plus In your original script you didn't have to provide a player_port to monitor while when I did that it didn't connect . I had to provide a separate port for that.
@cristobalmedinalopez Said that 2 things we have to check in this script
1) When a peer leaves is it changing the list of peer of entire team which I guess the script has to check team number in each of the existing peers, monitor peer and the splitter at the same time. | 2) Number of lost chunks. Which I am not entirely sure what has to be done
Anuraag Gupta
@anu1097
I am beginner in bash scripting but I felt like I can contribute to this script by learning while doing it.
Vicente González Ruiz
@vicente-gonzalez-ruiz
@anu1097 , could you sum up your messages in one one? I'm not sure about your question/request.
Anuraag Gupta
@anu1097
Sorry for that. When I ran the bash script I was getting these [00007fdd5c000e28] http access error: error: HTTP/1.0 404 Client error
[00007fdd5c000e28] http access error: failed to read answer
Sushil khanchi
@khanchi97
Hello @anu1097
Can you tell me for what ./LocalSourceAndTeam > Local2.txt command is used for and what is the content of "LocalSourceAndTeam" and "Local2.txt"
http://pasteboard.co/EGpDX83jm.gif
Vicente González Ruiz
@vicente-gonzalez-ruiz
@anu1097, sorry, but I forgot to revise your error. I've not run your script, but I guess that this error is generated by VLC and what happens is that the VLC is not able to retrieve the stream. Am I right?
@khanchi97, where did you found the script LocalSourceAndTeam? Anyway, I suppose that this script run a team in your localhost. The file Local2.txt should contains the standard output of the previous script.
Sushil khanchi
@khanchi97
@vicente-gonzalez-ruiz thank you for help.
i found this script in current gitter room (protocol test) posted by @anu1097 .
Vicente González Ruiz
@vicente-gonzalez-ruiz
OK, @khanchi97. Must I understand that you have solved your problem?
Sushil khanchi
@khanchi97
yaa :smiley: @vicente-gonzalez-ruiz now my problem is solved.Thank you!