Discuss this help topic in SecureBlackbox Forum

AddressToString

Declared in     See also     


Filter: C#/Java  VB.NET  Pascal  C++  


Converts IP address (TSockAddrStorage) to string representation.

Declaration

[C#/Java]
    bool AddressToString(TSockAddrStorage Addr, out string S);

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

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

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

Parameters

  • Addr - IP address to be converted
  • S - resulting string

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: SecureBlackbox
VCL:
  • Unit: SBSocket
Java:
  • Package: SecureBlackbox.Base.jar
C++:
  • sbsocket.h

See also:     StringToAddress    

Discuss this help topic in SecureBlackbox Forum