the-one-pitt
the-one-pitt copied to clipboard
Report a bug: connectionUp/Down does nothing in DTNHost.java
In core/DTNHost.java, conectionUp/Down does nothing which is unreasonable.
public void connectionUp(Connection con) {
this.router.connectionUp(con); //should not be commented
}
public void connectionDown(Connection con) {
this.router.connectionDown(con); //should not be commented
}
IMO, you are right @sparkandshine
I did have an error at this particular lines: public void connectionUp(Connection con) { this.router.connectionUp(con); //should not be commented }
public void connectionDown(Connection con) {
this.router.connectionDown(con); //should not be commented
}
says the compiler: this method connectionUp(Connection con) is undefined for the type MessageRouter this method connectionDown(Connection con) is undefined for the type MessageRouter
@MGS88 I had the same problem with you. Do you solve the problem?
I think so Please reminde me of the problem?
On Dec 1, 2016 4:35 AM, "Xingyuxingyu" [email protected] wrote:
@MGS88 https://github.com/MGS88 I had the same problem with you. Do you solve the problem?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/knightcode/the-one-pitt/issues/2#issuecomment-264052635, or mute the thread https://github.com/notifications/unsubscribe-auth/AVhL162K0uhPO4Az_ZlbvFDuKpUNrn8Pks5rDiRUgaJpZM4E2IsB .
My problem is following:
1、When the following commands in core/DTNHost.java #154 & #158 are not commented,
this.router.connectionUp(con); this.router.connectionDown(con);
says the compiler(which is the same with yours),after the command ./compile.bat:
this method connectionUp(Connection con) is undefined for the type MessageRouter
this method connectionDown(Connection con) is undefined for the type MessageRouter
2、When I comment the above two commands ,
says the compile after the command ./one.sh :
unfound or unload the main class :core.DTNSim
@@julianofischer
My problem is following:
1、When the following commands in core/DTNHost.java #154 & #158 are not commented,
this.router.connectionUp(con); this.router.connectionDown(con);
says the compiler(which is the same with yours),after the command ./compile.bat: this method connectionUp(Connection con) is undefined for the type MessageRouter this method connectionDown(Connection con) is undefined for the type MessageRouter
2、When I comment the above two commands , says the compile after the command ./one.sh :
unfound or unload the main class :core.DTNSim
Is this issue resolved? I am finding the same problem as of now.
Sorry the late response. I did not analyzed the code, but adding
public void connectionUp(Connection con){} public void connectionDown(Connection con){}
to MessageRouter.java shall work.