Waits for an accepted TCP network connection.


icon

Inputs/Outputs

  • cncrn.png listener ID in

    listener ID in is a network connection refnum that uniquely identifies the listener.

  • cbool.png resolve remote address (T)

    resolve remote address indicates whether to call the IP To String function on the remote address. The default is TRUE.

    Refer to IP To String for more information.
  • ci32.png timeout ms (wait forever: -1)

    timeout ms specifies the time, in milliseconds, that the function waits for a connection. If a connection is not established in the specified time, the function returns an error. The default value is –1, which indicates to wait indefinitely.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • incrn.png listener ID out

    listener ID out has the same value as listener ID in. Use this value to refer to the listener in subsequent calls to this function.

  • istr.png remote address

    remote address is the address of the remote machine associated with the TCP connection. If resolve remote address is TRUE, this address is in the form machinename.domain.com. If resolve remote address is FALSE, this address is in IP dot notation format such as 128.0.0.25.

  • iu16.png remote port

    remote port is the port the remote system uses for the connection.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • incrn.png connection ID

    connection ID is a network connection refnum that uniquely identifies the TCP connection. Use this value to refer to this connection in subsequent VI calls.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Data Communication\Protocols\TCP\TCP Named Service\TCP Named Service.lvproj