tfDnsUpdateLocal

Jump to: navigation, search

Table of Contents >> Application Reference >> Dynamic DNS Update


#include <trsocket.h>


int tfDnsUpdateLocal (
ttDnsUpdateHandle dnsUpdateHandle,
const struct sockaddr_storage * localAddrPtr
);


Function Description

Set a local IP address and port from which to send the requests. By default, Treck will choose an appropriate local IP address and port. This function allows you to override the default action. This is a wrapper for a bind() call on the underlying socket.


Parameters

  • dnsUpdateHandle
    A DNS update descriptor handle returned by tfDnsUpdateOpen().
  • localAddrPtr
    The local IP address an port number to which to bind the session socket.


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid descriptor handle or localAddrPtr is NULL or bind() complained (click link for details).
  • TM_EPERM
    Cannot change the descriptor while tfDnsUpdateSend() is in progress.
  • TM_EADDRINUSE
    The specified address is already in use.


Table of Contents >> Application Reference >> Dynamic DNS Update