Preflight Connectivity Check Functions

Preflight Requests.

Functions

int trfNCClientGetReachable(PTRFInterface serverIf, int64_t sessionID)

Get Client reachables to server.

Parameters:
  • serverIf – Server reachable interfaces

  • sessionID – SessionID provided by the server during handshake

Returns:

0 on success, negative error code on failure

int trfNCServerPreFlight(int *fd_out, uint16_t *port)

Start server socket for client to test connections.

Parameters:
  • fd_out – socket the server is listening to connections on

  • port – port listening for connections

Returns:

0 on success, negative error code on failure

int trfNCServerPreFlightCheck(int sfd, int timeout, uint64_t session_id, PTRFInterface addrs)

Check Incoming connections src addresses.

Parameters:
  • sfd – socket server is listening on

  • timeout – timeout for preflight checking

  • session_id – session_id

  • addrs – list fo addresses client will be coming from