Programmer Reference : Redis : Hiredis Platform Interface : OSHiredisOptionsTcpEndpoint
OSHiredisOptionsTcpEndpoint
Description
A concrete subclass of <OSHiredisStructure> that maps to the tcp struct within the redisOptions.endpoint C union. It specifies the IP address and port for a TCP connection when using <OSHiredisOptions>.
Class Methods
None
Instance Methods
ip
  Answer the IP address for the TCP connection.
     
     Answers:
        <Integer> Pointer to the str IP address, or 0 if not set.
ip:
  Set the IP address for the TCP connection.
     
     Arguments:
        anIp - <String> The IP address
port
  Answer the port number for the TCP connection.
     
     Answers:
        <Integer> The port number.
port:
  Answer the port number for the TCP connection.
     
     Answers:
        anInteger - <Integer> The port number.
Last modified date: 01/22/2026