VirtualBox

Ignore:
Timestamp:
Jun 30, 2021 7:02:07 AM (4 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Initial implementation / support for NATed VMs by using reversed (server) connections. The ATS client now also makes use of the transport layer and now can also be configured more flexible on a per-transport layer basis. bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/testcase/tstAudioTestService.cpp

    r89805 r89962  
    7676
    7777    ATSSERVER Srv;
    78     rc = AudioTestSvcInit(&Srv, "127.0.0.1", ATS_TCP_HOST_DEFAULT_PORT, &Callbacks);
     78    rc = AudioTestSvcCreate(&Srv);
    7979    RTTEST_CHECK_RC_OK(hTest, rc);
    8080    if (RT_SUCCESS(rc))
    8181    {
    82         rc = AudioTestSvcStart(&Srv);
     82        rc = AudioTestSvcInit(&Srv, &Callbacks);
    8383        RTTEST_CHECK_RC_OK(hTest, rc);
    8484        if (RT_SUCCESS(rc))
    8585        {
    86             rc = AudioTestSvcClientConnect(&Client, "127.0.0.1", ATS_TCP_HOST_DEFAULT_PORT);
     86            rc = AudioTestSvcStart(&Srv);
    8787            RTTEST_CHECK_RC_OK(hTest, rc);
     88            if (RT_SUCCESS(rc))
     89            {
     90                RTGETOPTUNION Val;
     91                RT_ZERO(Val);
     92
     93                Val.psz = ATS_TCP_DEF_CONNECT_HOST_ADDR_STR;
     94                rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_CONNECT_ADDRESS, &Val);
     95                AssertRC(rc);
     96
     97                Val.u16 = ATS_TCP_DEF_CONNECT_PORT_HOST_PORT_FWD;
     98                rc = AudioTestSvcClientHandleOption(&Client, ATSTCPOPT_CONNECT_PORT, &Val);
     99                AssertRC(rc);
     100
     101                rc = AudioTestSvcClientConnect(&Client);
     102                RTTEST_CHECK_RC_OK(hTest, rc);
     103            }
    88104        }
    89105    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette