Sending Ack with Multi-Server

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Sending Ack with Multi-Server

  • Creator
    Topic
  • #51429
    Marcus de Leon
    Participant

      Hi,

      When I try to send an ACK back through a TCP/IP multi-server with the MLP PDL, it doesn’t work. If I switch it to Server it works.

      Any Ideas?

      Thanks,

      Marcus

    Viewing 2 reply threads
    • Author
      Replies
      • #70245
        James Cobane
        Participant

          Marcus,

          You need to include some additional code in the ACK proc to tell Cloverleaf which port to send the ack back on, since there are multiple simultaneous connections.

        • #70246
          Steve Carter
          Participant

            Your ACK proc has to be setup properly in order for ACK’s to be returned.  You’ll need something like the following:

                       # If multiServer, the following metadata must be set

                       if { $multiServer } {

                           msgmetaset $obMsg DESTCONN [msgmetaget $mh ORIGSOURCECONN]

                           msgmetaset $obMsg SOURCECONN [msgmetaget $mh DESTCONN]

                           set driverCtl [msgmetaget $mh DRIVERCTL]

                           keylget driverCtl CONNID connID

                           keylset connIDKey CONNID $connID

                           msgmetaset $obMsg DRIVERCTL $connIDKey

                       }

                       msgset $obMsg $ACK

            I use the same ACK proc for both server and multi-server.  I just use an argument of {MULTI 1} to trigger the code for multi-server ack’s.

            Hope this helps!

            Steve

          • #70247
            Marcus de Leon
            Participant

              Great! Thanks!

          Viewing 2 reply threads
          • The forum ‘Cloverleaf’ is closed to new topics and replies.