skip to main content

Library Routines : C$SOCKET : CSOCKET-GETREMOTEADDRESS

CSOCKET-GETREMOTEADDRESS
This operation returns the hostname, IP address and port of the endpoint to which this socket is connected.
Syntax:
 CALL "C$SOCKET" USING CSOCKET-GETREMOTEADDRESS
Parameters:
01  csocket-remote-address.
    03 csocket-remote-hostname   pic x(64).
    03 csocket-remote-ip-address pic x(15).
    03 csocket-remote-port       pic 9(5).
Return code:
returnCode can be any signed numeric data item and provides additional information:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left