User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 163
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
a command sent from Host to module. It is an asynchronous message to be read
by the module (after an interrupt is sent from the module) when a connection is
established with a listening TCP socket.
Relevance
This command is relevant when the TCP/IP stack is enabled.
Frame Body
The following is the data structure for the Connection Establishment frame
returned to the Host.
struct TCP_EVT_Connect_t
{
UINT16 uSocketDescriptor;
struct sockaddr_in rtAddress;
UINT32 nErrorCode;
}
Structure Member
Name
Description
uSocketDescriptor
Socket descriptor for which the
connection has happened.
rtAddress
Port number and IP address of the
remote client.
nErrorCode
Always returns „0‟
Refer to response code 0x04 in Data Frame Based Response Codes (sent
from module to host).