Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Set daemon port programmatically
Set daemon port programmatically [message #573715] Thu, 17 April 2008 19:50
Denise Schmidt is currently offline Denise SchmidtFriend
Messages: 66
Registered: July 2009
Member
I am using RSE 2.0.3. I have written some plug in code to add a button to
create a connection to a specific Unix machine. The code I have appears
to take all the default values when creating the connection. What I'd
like to know is how do I change the default port used to connect to the
server daemon in my code? Here's what I have to create the connection:

ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();

ISystemProfile profile =
registry.getSystemProfileManager().getDefaultPrivateSystemPr ofile();

String hostName = "eddea03.rck.atm.lmco.com";

IHost host = registry.getHost(profile, hostName);
if (host == null) {
IRSESystemType sysType = RSECorePlugin.getTheCoreRegistry()
.getSystemTypeById("org.eclipse.rse.systemtype.unix");
host = registry.createHost(sysType,
hostName,
hostName,
"Connection to Unix machine");
}

I've been searching the web and looking through RSE code but haven't found
how to set the daemon port to something other than 4075.

While I'm at it, my code doesn't actually connect all the way to the
server as I don't get prompted for a user ID and password until I try to
expand my home directory. I must be missing an additional call to
complete the connection but I'm not sure what it is.

Thanks for any help.
Previous Topic:Questions about remote execution
Next Topic:Missing RemoteSystemsTempFiles (Remote Systems Explorer)
Goto Forum:
  


Current Time: Thu Apr 25 08:37:04 GMT 2024

Powered by FUDForum. Page generated in 0.02934 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top