the-one-pitt icon indicating copy to clipboard operation
the-one-pitt copied to clipboard

Report a bug: connectionUp/Down does nothing in DTNHost.java

Open sparkandshine opened this issue 10 years ago • 8 comments

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
    }

sparkandshine avatar Jun 03 '15 09:06 sparkandshine

IMO, you are right @sparkandshine

julianofischer avatar May 05 '16 21:05 julianofischer

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

ibinasaker avatar Oct 06 '16 10:10 ibinasaker

@MGS88 I had the same problem with you. Do you solve the problem?

Xingyuxingyu avatar Dec 01 '16 01:12 Xingyuxingyu

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 .

ibinasaker avatar Dec 01 '16 06:12 ibinasaker

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

Xingyuxingyu avatar Dec 01 '16 07:12 Xingyuxingyu

@@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

Xingyuxingyu avatar Dec 08 '16 13:12 Xingyuxingyu

Is this issue resolved? I am finding the same problem as of now.

hridaydutta123 avatar Apr 04 '17 08:04 hridaydutta123

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.

julianofischer avatar Oct 31 '17 14:10 julianofischer