Git Product home page Git Product logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
Turn on debug and trace and try again, its highly likely a non-active interface 
is being chosen due to host configuration.

https://code.google.com/p/openpgm/wiki/OpenPgm5CReferenceErrorHandling

Original comment by [email protected] on 15 Oct 2013 at 12:59

from openpgm.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
With thanks to your response, there is some problems with that. As it said in 
"https://code.google.com/p/openpgm/wiki/OpenPgm5CReferenceErrorHandling" we 
should add "pgm_log_set_handler (log_handler, NULL);" in "purinsend.c" and 
"purinrecv.c" then use "scons" again. We expected that "pgm_log_set_handler" 
function was definded in "log.h", but there isn't such function. So, we can't 
compile this new code. There is two questions:
1. Why "pgmsend" and "pgmrecv" is not created when we make "openpgm" with 
"scons"?
2. Why "pgm_log_set_handler" function is not defined or declared or used in 
anywhere in "openpgm"?
Because of above problems I can't use "openpgm" and can't see traces and logs 
to find out what is the problem. Please say where and what should be added to 
code.

Original comment by [email protected] on 17 Oct 2013 at 5:47

from openpgm.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
The GLIB examples are not built by default, try:

scons WITH_GLIB=true

pgm_log_set_handler is declared: 

https://code.google.com/p/openpgm/source/browse/trunk/openpgm/pgm/include/pgm/me
ssages.h#63

and is defined:

https://code.google.com/p/openpgm/source/browse/trunk/openpgm/pgm/messages.c#136

Original comment by [email protected] on 17 Oct 2013 at 7:52

from openpgm.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
I have had the same issue, with default building but somehow could overcome 
with some examples.

could you kindly check if the build was successful??

And also, few pointers >>>
once its built, try with 
1. open a terminal and go to the directory where purinsend and purinrecv is 
located
in one of the terminal  use this
./purinrecv -lp 7500 -n "eth2;239.192.0.1"
and in second terminal use this
./purinsend -lp 7500 -n "eth0;239.192.0.1" <"some message">
You should be able to get the output..
Currently this is run over UDP, while I am trying it on IP and facing issues at 
the receiving side.







Original comment by [email protected] on 21 Oct 2013 at 9:28

from openpgm.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
Solved:
May be this would work.,..

1. try making changes in file SConscript.autoconf
at location where it checks for fail cases for host order for raw IP sockets.
def CheckIpLengthHostOrder (context):
----
int
main ()
{
#if defined( __APPLE__ ) || defined( __NetBSD__ ) || defined( __FreeBSD__ )
    return 0;   #fail fail fail #RAVI_CHECK_CHANGES
#endif
    fail fail fail #RAVI_CHECK_CHANGES
}

2. build with GLIB flag true
> scons -c   # cleaning at first, for the previous builds
> scons WITH_GLIB=true

3. after building,
the example files would be at location  ./ref/debug..../examples/

4. Open two terminals, in one of the terminal, run pgmsend and in other pgmrecv

for PGM over UDP
> ./pgmsend -lp 7500  -n "eth1;239.192.0.1"

in the other terminal
> ./pgmrecv -lp 7500 -n "eth1;239.192.0.1"

NOTE: check for the interface type (I had eth1 active) thro > ./pgmsend -i 
(this would give list of active interfaces)
for PGM over IP
use sudo  or set permissions for the file
> sudo ./pgmsend -ls 7500  -n "eth1;239.192.0.1"

in the other terminal
> sudo ./pgmrecv -ls 7500 -n "eth1;239.192.0.1"

type 2.
>sudo setcap cap_net_raw=ep <filename>  # in this its pgmsend and pgmrecv

>sudo setcap cap_net_raw=ep pgmsend
>sudo setcap cap_net_raw=ep pgmrecv
(else would face  error for raw IP sockets capability)

Thanks a ton to this post...: - 
http://code.google.com/p/openpgm/issues/detail?id=27

Hope this is useful info.....

Regards,
Ravi

Original comment by [email protected] on 23 Oct 2013 at 9:12

from openpgm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.