Discuss this help topic in SecureBlackbox Forum

StringToAddress

Declared in     See also     


Filter: C#  VB.NET  Pascal  C++  


Converts a string representation of the IP address into TSockAddrStorage record.

Declaration

[C#]
    bool StringToAddress(string S, out TSockAddrStorage Addr);

[VB.NET]
    Function StringToAddress(ByVal S As String, ByRef Addr As TSockAddrStorage) As Boolean

[Pascal]
    function StringToAddress(const S : string; out Addr : TSockAddrStorage) : boolean;

[C++]
    bool StringToAddress(const std::string & S, sockaddr_storage & Addr);

Parameters

  • S - string that contains an address
  • Addr - resulting IP address

Return value

    Returns True if conversion was successfull, otherwise returns False.
    Note, if IPv6 protocol is not enabled on the computer and Addr contains an IPv6 address, False will be returned.

Description

Declared in

.NET:
  • Namespace: SBSocket
  • Assembly: BaseBlackbox
VCL:
  • Unit: SBSocket
Java:
  • Package: SecureBlackbox.Base.jar
C++:
  • sbsocket.h

See also:     AddressToString    

Discuss this help topic in SecureBlackbox Forum