User's Manual

Table Of Contents
Direct Socket Interface
AT+i Programmer‘s Manual Version 8.32 13-11
13.9 +iGPNM Get Peer Name for A Specified Socket
Syntax:
AT+iGPNM:<hn>
Retrieves peer name (<IP>:<Port>) of a remote connection to a
TCP/UDP socket specified by the socket handle <hn>.
Parameters:
<hn>
A TCP/UDP socket handle of an open socket
Command Options:
<hn>
Must have been obtained by a previous execution of an
AT+iSTCP or AT+iSUDP command during the current Internet
mode session. Or a socket accepted by a listening socket.
Result Code:
I/(<IP>:<Port>)
where,
<IP> is the remote peer‘s IP address, and <Port> is the remote
peer‘s port for this connection.
I/ERROR
If <hn> is not an open socket handle, or otherwise some error
occurred.