CS104_Connection_setLocalAddress

Function CS104_Connection_setLocalAddress 

Source
pub unsafe extern "C" fn CS104_Connection_setLocalAddress(
    self_: CS104_Connection,
    localIpAddress: *const c_char,
    localPort: c_int,
)
Expand description

Set the local IP address and port to be used by the client

NOTE: This function is optional. When not used the OS decides what IP address and TCP port to use.

ยงArguments

  • self - CS104_Connection instance
  • localIpAddress - the local IP address or hostname as C string
  • localPort - the local TCP port to use. When < 1 the OS will chose the TCP port to use.