Comments (5)
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.
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.
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.
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.
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)
- definition of struct pgm_opt_nak_list is not correct for c++ compilers that also define __STDC_VERSION__ HOT 4
- Problem with two sockets. HOT 2
- select on pgmsocket and linux pipe doesn't work to capture pipe's incoming data HOT 4
- configure incorrectly sets CONFIG_HAVE_IFR_NETMASK HOT 3
- Mac OS X install of 5.1.118 HOT 8
- when I do pgm_bind3 to a sockaddr that has the sockaddr->sa_addr.sport set, openpgm reverses the byte order of that value HOT 1
- libpgm on OS X breaks homebre build of zeromq HOT 1
- Segfault on illumos in getifaddr() HOT 3
- http.c needs to #include <config.h> to use the configured lock type HOT 3
- HAVE_HOST_ORDER_IP_* header byte order config options detected incorrectly HOT 4
- Issue with rate-limiting engine HOT 1
- Unable to build openpgm with mingw in Fedora 19 HOT 2
- epgm can't work on osx 10.8 HOT 1
- pgm_gsi_create_from_string does not behave according to documentation HOT 5
- mingw-x64 compiling error: 'AI_ADDRCONFIG' undeclared HOT 1
- parse_interface() fails on "eth0" with Ubuntu 14.04 HOT 3
- Division by 0 in set_tsc_mul when /proc/cpuinfo reports 0.000 at cpu MHz HOT 3
- missing call to setgroups before setuid
- Test demo program found to accelerate the transmission rate, the interval will be transferred to 10ms packet loss HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openpgm.