User guide

Redpine Signals, Inc. Proprietary and Confidential. Page 148
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
UINT16 sin_port;
struct in_addr1 sin_addr;
};
struct TCP_CNFG_Socket
{
UINT16 uSocketType;
UINT16 stLocalPort;
struct sockaddr_in stRemoteAddress;
};
Structure Member
Name
Description
uSocketType
Type of the socket
0 TCP Client
1 UDP Client
2 TCP Server (Listening TCP)
3 Multicast
1
socket
4- Listening UDP. This type of
socket is used to receive/send
from any remote UDP socket with
any remote IP and port number.
stLocalPort
Local port on which the socket has to
be bound.
sin_port
The destination‟s port. This port
number is not valid for a listening
socket.
sin_addr
The destination‟s IP address. This IP
address is not valid for a listening
socket. The IP address is represented
by 4 bytes. For example, if the IP
address is 192.168.10.9, then 192
(0xC0) is sent first, then 168(0xA8)
and so on. This is true for other
commands also.
Response
The following is the data structure of the socket command‟s response.
1
Multicast not supported in RS9110-N-11-28-04