Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sparkandshine opened this issue Jun 3, 2015 · 8 comments
Open

Comments

@sparkandshine
Copy link

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
    }
@julianofischer
Copy link
Contributor

IMO, you are right @sparkandshine

julianofischer added a commit to julianofischer/the-one-pitt that referenced this issue May 5, 2016
@julianofischer julianofischer mentioned this issue May 5, 2016
@ibinasaker
Copy link

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

@Xingyuxingyu
Copy link

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

@ibinasaker
Copy link

ibinasaker commented Dec 1, 2016 via email

@Xingyuxingyu
Copy link

Xingyuxingyu commented Dec 1, 2016

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
Copy link

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

@hridaydutta123
Copy link

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

@julianofischer
Copy link
Contributor

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.

knightcode added a commit that referenced this issue Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants