6-2
Section
Using Socket Services with Socket Service Request Switches
96
Parameter Settings
The following table shows the parameters that are required for each service and
the use of the parameters by the socket service.
UDP Socket Services
Parameter
No. of
Range
Socket service
words
(decimal values in paren-
theses)
UDP
open
UDP
receive
UDP
send
UDP
close
UDP/TCP socket No.
1
0001 to 0008 Hex
(1 to 8)
W
W
W
W
Local UDP/TCP port No.
1
0000 to FFFF Hex
(0 to 65,535)
W
---
---
---
Remote IP address
2
00000000 to FFFFFFFF Hex
(0.0.0.0 to 255.255.255.255
---
R
W
---
Remote UDP/TCP port No.
1
0000 to FFFF Hex
(0 to 65,535)
---
R
W
---
Number of bytes to send/receive
2
0000 to 07C0 Hex
(0 to 1,984 bytes)
---
RW
RW
---
Send/Receive data address
1
Memory area address
---
W
W
---
Time out time
1
0000 to FFFF Hex
(0 to 65,535)
(0: No limit, 0.1 to 6,553.5 s)
---
W
---
---
Response code
1
---
R
R
R
R
Note W:
Written by user.
RW:
Written by user at execution and then read for results at completion
R:
Read by user for results at completion
---:
Not used.
TCP Socket Services
Parameter
No. of
Range
Socket service
words
(decimal values in
parentheses)
TCP
passive
open
TCP
active
open
TCP
receive
TCP
send
TCP
close
UDP/TCP socket No.
1
0001 to 0008 Hex
(1 to 8)
W
W
W
W
W
Local UDP/TCP port No.
1
0000 to FFFF Hex
(0 to 65,535)
W
RW
---
---
---
Remote IP address
2
00000000 to FFFFFFFF Hex
(0.0.0.0 to 255.255.255.255
RW
W
---
---
---
Remote UDP/TCP port
No.
1
0000 to FFFF Hex
(0 to 65,535)
RW
W
---
---
---
Number of bytes to
send/receive
2
0000 to 07C0 Hex
(0 to 1,984 bytes)
---
---
RW
RW
---
Send/Receive data
address
1
Memory area address
---
---
W
W
---
Time out time
1
0000 to FFFF Hex
(0 to 65,535)
(0: No limit, 0.1 to 6,553.5 s)
W
---
W
---
---
Response code
1
---
R
R
R
R
R
Note W:
Written by user.
RW:
Written by user at execution and then read for results at completion
R:
Read by user for results at completion
---:
Not used.
UDP/TCP Socket No.
Specify the number of the UDP or TCP socket to open.