Skip to content

Added RpcLibPort to change rpc port easily (#1711)#1981

Closed
rapsealk wants to merge 2 commits into
microsoft:masterfrom
rapsealk:master
Closed

Added RpcLibPort to change rpc port easily (#1711)#1981
rapsealk wants to merge 2 commits into
microsoft:masterfrom
rapsealk:master

Conversation

@rapsealk

Copy link
Copy Markdown
Contributor

I found issue number #1711 while I was trying to change default rpc port,

and thought it might be handy if there is a variable with common value.

Thank you!

@msftclas

msftclas commented May 23, 2019

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

Comment thread AirLib/include/api/RpcLibClientBase.hpp Outdated

#include "api/RpcLibPort.hpp"

const extern uint16_t RpcLibPort;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh.. thank you for the link! I will fix it.

Comment thread AirLib/include/api/RpcLibPort.hpp Outdated

const uint16_t RpcLibPort = 41451;

#endif

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of const in a separate file in general, but we don't quite have it in place in the airsim code base.
I think it might make more sense to define rpclibport=41451 in common/Common.hpp?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your feedback! I agree with you; separating variables in each file can make code look unclean.
May I change and make a PR again?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, just saw this now.
Sure, you can also force-push on your current branch, if that's easier.

Comment thread AirLib/include/api/RpcLibPort.hpp Outdated
#ifndef air_RpcLibPort_hpp
#define air_RpcLibPort_hpp

#include "common/Common.hpp"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need this?

@madratman madratman requested review from saihv and sytelus August 21, 2019 07:20
msb336 pushed a commit to msb336/AirSim that referenced this pull request Sep 12, 2019
@msb336

msb336 commented Sep 12, 2019

Copy link
Copy Markdown
Contributor

Closing to and opening another PR with compatibility fixes & added settings.json functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants