TCP/IP connection
Connect
Old code:
TcpLink     oHfp = new TcpLink () ;
oHfp.Connect (sHFUsername, sHFpassword, new IPEndPoint (HostFrontServerAddress, 
HostFrontServerPort)) ;

New code:
TcpLink     oHfp = new TcpLink (Emulation.HFA5250) ;
oHfp.Connect (sHFUsername, sHFpassword, new IPEndPoint (HostFrontServerAddress, 
HostFrontServerPort)) ;

Attach
Old code:
TcpLink     oHfp = new TcpLink () ;
...
...
string sSessionID = oHfp.Detach() ;
....
TcpLink     oHfp2 = new TcpLink () ;
oHfp2.Attach (sSessionID,new IPEndPoint (HostFrontServerAddress, HostFrontServerPort)) ;

New code:
TcpLink     oHfp = new TcpLink (Emulation.HFA5250) ;
...
string sSessionID = oHfp.Detach() ;
....
oHfp.Attach(sSessionID, new IPEndPoint (ClusterServerAddress, ClusterServerPort)) ;