3.2.3.5.3 CONN/B1 RTS PDU
An inbound proxy implementation MUST NOT accept the CONN/B1 RTS PDU in any state other than Open_Start. If it is received in any other state, the inbound proxy MUST treat this PDU as a protocol error as defined in section 3.2.3.5.10.
If this RTS PDU is received in Open_Start state, the inbound proxy implementation MUST perform the following actions in the sequence given:
Establish a TCP connection to the server using the server name and port from the IN channel request as specified in section 2.2.2.
Set the keep-alive protocol variable to the value from the ClientKeepalive command of this PDU.
Set the value of ChannelLifetime in the inbound proxy Virtual Connection to the value of ChannelLifetime from the CONN/B1 PDU.
Set the value of the DefaultInChannelCookie in the inbound proxy Virtual Connection to the value of INChannelCookie from the CONN/B1 PDU.
Set the value of AssociationGroupId in the inbound proxy Virtual Connection to the value of AssociationGroupId in the CONN/B1 PDU.
Send the CONN/B2 RTS PDU to the server as specified in section 2.2.4.6.
Set the value of ConnectionTimeout in the CONN/B2 RTS PDU to the value of ConnectionTimeout in the inbound proxy Virtual Connection.
Set the value of INChannelCookie in the CONN/B2 RTS PDU to the value of DefaultInChannelCookie from the inbound proxy Virtual Connection.
Set the value of ReceiveWindowSize in the CONN/B2 RTS PDU to the value of ReceiveWindowSize in the inbound proxy Virtual Connection.
Set the value of VirtualConnectionCookie in the CONN/B2 RTS PDU to the value of VirtualConnectionCookie from the inbound proxy Virtual Connection.
Set the value of ProtocolVersion in the CONN/B2 RTS PDU to the value of ProtocolVersion from the inbound proxy Protocol Version.
Add the virtual connection cookie to the virtual connection cookie table.
Switch the IN channel to the server to plugged channel mode.
Transition the state to B3W.