tencent cloud

Feedback

Step 2: Load TOA on Backend Server

Last updated: 2024-10-14 16:54:48

    Downloading the File

    Click here to download the file.

    General Version

    File Description

    File
    Description
    WinPcap_4_1_3.exe
    WinPcap driver, see WinPcap Documentation for details
    lib_toa.lib
    TOA static library
    toa_fetcher.h
    Header file that the static library relies on
    pcap.h
    Header file that the static library relies on

    Preparing the environment

    1. Double-click WinPcap_4_1_3.exe to install the WinPcap driver (no restart is required).
    2. Add lib_toa.lib to the .lib library path of the project.
    3. Add toa_fetcher.h and pcap.h to the header file of the project.

    Go Version

    File Description

    File
    Description
    WinPcap_4_1_3.exe
    WinPcap driver, see WinPcap Documentation for details
    toa_win.exe
    TOA program for Windows server
    toa_win.conf
    Config file of TOA program for Windows server
    program_auto_up.bat
    bat script for Windows server
    demo.go
    A sample program written in Go language, used to access TOA services

    Deployment steps

    1. Modify the toa_win.conf file as instructed below:
    Parameter
    Required
    Description
    ToaWinPort
    Yes
    The service port of toa_win.exe, used to communicate with TOA client, default is 9999.
    NetworkCardIP
    Yes
    This is used to identify the IP address of the network interface, for example, 10.75.132.39. This is the NIC that communicates with the client.
    ServerListenIP
    Yes
    The IP address of the server, for example, 10.75.132.39. It is used to filter TCP flows.
    ServerListenPortList
    No
    The port list of the server. It is used to filter TCP flows. A maximum of 3 ports can be added.Either ServerListenPortList or PortRange must be configured.
    PortRange
    No
    The port range of the server. It is used to filter TCP flows. A maximum of 3 port ranges can be added.Either ServerListenPortList or PortRange must be configured.
    CacheSeconds
    No
    The length of the cache time, unit in seconds. The default is 15 seconds.
    Note:
    The configuration file must be placed in the same directory as toa_win.exe.
    
    2. Modifying program_auto_up.bat.
    Modify the path to the directory where the program is located. Add the script to the scheduled task, and execute on it periodically. The script is used to monitor the toa_win.exe program and automatically activate the program when it exits.
    
    
    3. Run the toa_win.exe program. The log is saved to toa_win.log in the same directory. Now, you can get the real IP address from TOA services through UDP communication. For details, see How to Use.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support