Performing negotiation

Top  Previous  Next

After establishing a connection and prior to sending any data you will need to perform negotiation.  Negotiation is the process of letting the rlogin server know what username, local username, terminal type and terminal speed settings you will use for the rlogin session.  Setting the terminal type is typically not necessary although you may do so by invoking the Rlogin#setTerminalSpeed method.  To perform negotiation invoke the Rlogin#execute method.  An exception of type BsdException will be thrown if an error occurs.

 

Example

 

// perform negotiation

try {

 rlogin.execute();

} catch(BsdException e) {

 e.printStackTrace();

}





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC