User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 162
R
R
S
S
9
9
1
1
1
1
0
0
-
-
N
N
-
-
1
1
1
1
-
-
2
2
2
2
/
/
2
2
4
4
/
/
2
2
8
8
S
S
o
o
f
f
t
t
w
w
a
a
r
r
e
e
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
V
V
e
e
r
r
s
s
i
i
o
o
n
n
4
4
.
.
1
1
5
5
Structure Member
Name
Description
aDomainName
Domain name, example:
www.website.com . A maximum of
150 characters are allowed.
Response
The structure for the response of DNS Request Command is as follows:
#define MAX_DNS_REPLY 10
typedef struct TCP_EVT_DNS_Resp
{
UINT16 uIPCount;
UINT8 aIPaddr[MAX_DNS_REPLY][4];
UINT32 uErrorCode;
}__attribute__((packed))TCP_EVT_DNS_Resp;
Structure Member
Name
Description
uIPCount
This indicates number of IPs resolved
for the given domain name
aIPaddr
This returns the resolved IP
addresses. A maximum of 10 IP
addresses can be returned. User
should read the number of IP
addresses indicated by uIPCount.
nErrorCode
Error code.
0 :Success
The failure codes for DNS are
explained in Table 21: Error
Codes and Descriptions
4.10.9 Connection Establishment with LTCP Socket
Description
This packet indicates to the Host, through an interrupt, that a remote client has
established a connection on an already open LTCP socket in the module. The
Host can read the details of the remote client in the packet contents. This is not