![Texas TMS320C6000 Programmer'S Reference Manual Download Page 166](http://html.mh-extra.com/html/texas/tms320c6000/tms320c6000_programmers-reference-manual_1093844166.webp)
Binding Object
A-32
A.9 Binding Object
A.9.1 Synopsis
In order for a device object to live on the network, it must have an IP address
and knowledge of its IP subnet. The process of assigning an IP address and
subnet to a device is to create a binding to the device with the desired IP ad-
dressing.
A.9.2 Object Type
Static – Binding objects are generally created and destroyed by the same
entity.
A.9.3 Access Functions
Although the Bind object API is larger than that discussed here, this section
covers the portion of the API that is encountered by a system application.
Create New IP Binding
BindNew
Syntax
HANDLE BindNew( HANDLE hIF, IPN IPAddr, IPN IPMask );
Return Value
Returns a handle to the Bind object, or NULL on error.
Description
Binds the indicated IP address and mask to the supplied Ether device. The
handle to the Ether device object is specified as hIF – or an handle to an inter-
face, since the interface may or may not be an Ethernet device (but always is
in this version).
The IP address and mask arguments are given the type IPN which is an un-
signed 32 bit value. “IPN” stands for “IP Network format”, meaning that the IP
data must be supplied in network format. If unsure of the network format for
your hardware, use the htonl() macro function on the ”native” format (where
1.2.3.4 == 0x01020304 ).
Destroy IP Binding Object
BindFree
Syntax
void BindFree( HANDLE hBind );
Description
Destroys the indicated Bind object, and frees its associated memory. This
function removes IP address and subnet association in the system route table.
It has no effect on the Ether object involved in the binding.