Ignore:
Timestamp:
12/23/22 09:10:16 (17 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The C client API can connect over TCP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/client/c/hu/varadiistvan/xplra/xplra.h

    r87 r111  
    142142
    143143/**
    144  * Connect to the simulator.
     144 * Connect to the simulator locally.
    145145 *
    146146 * @return an ID for the created connection, or -1 on error.
    147147 */
    148148int xplra_connect();
     149
     150/*----------------------------------------------------------------------------*/
     151
     152/**
     153 * Connect to the simulator via TCP using the default port.
     154 *
     155 * @return an ID for the created connection, or -1 on error.
     156 */
     157int xplra_connect_tcp(const char* address);
     158
     159/*----------------------------------------------------------------------------*/
     160
     161/**
     162 * Connect to the simulator via TCP using the given port.
     163 *
     164 * @return an ID for the created connection, or -1 on error.
     165 */
     166int xplra_connect_tcp_port(const char* address, unsigned short port);
    149167
    150168/*----------------------------------------------------------------------------*/
Note: See TracChangeset for help on using the changeset viewer.