code: protected void processSynAckPacket(Packet packet) {
          Integer clientPort = packet.getDestPort();
          Integer serverPort = packet.getSrcPort();
          String serverIp = packet.getSrcIpAddr();
          TcpClientScript scriptFragmentWriter = scripts.get(clientPort);
          if ( scriptFragmentWriter == null ) {
              scriptFragmentWriter = new TcpClientScript(emitterFactory.getRptScriptEmitter(OUTPUT_TYPE, "tcp-server-"
                      + serverIp + "-" + serverPort + "-client-" + ipaddress + "-" + clientPort + "-ClientSide"));
          }
          else if ( scriptFragmentWriter.getState() != ScriptState.CLOSED ) {
              throw new RptScriptsCreatorFailureException(
                      "Attempting to open already opened tcp connection from client port:" + clientPort);
          }
  
          scriptFragmentWriter.writeConnect(serverIp, serverPort, packet);
          scripts.put(clientPort, scriptFragmentWriter);
  
      }
docs: Process a connection packet which is read as an syn-ack
  @param packet