119
Using Socket Services by Manipulating Dedicated Control Bits Section 6-7
6-7-5 Socket Service Request Switches
Dedicated control bits can be manipulated to request socket services. These
bits are called Socket Service Request Switches, and are turned ON in the
CPU Unit to request socket services through the Ethernet Unit.
The Socket Service Request Switches are allocated in the CPU Bus Unit Area
in the CIO Area starting at the word n + 19. The value of n can be calculated
from the unit number as follows:
n = CIO 1500 + (25
× unit number)
The configuration of each set of Socket Service Request Switches is shown in
the following diagram.
Socket Service
Request Switches 7
Socket Service
Request Switches 5
Socket Service
Request Switches 3
Socket Service
Request Switches 1
Socket Service
Request Switches 8
Socket Service
Request Switches 2
Socket Service
Request Switches 4
Socket Service
Request Switches 6
Offset
15 8 7 0
n+19
n+20
n+21
n+22
UDP Open Request Switch
TCP Passive Open Request Switch
TCP Active Open Request Switch
Send Request Switch
Receive Request Switch
Close Re
q
uest Switch
7 6 5 4 3 2 1 0
15 14 13 12 11 10 9 8
Bit Switch Status Manipulated
by
Unit operation
8 0 UDP Open Request
Switch
ON User UDP socket opened when switch is turned ON.
OFF Unit Unit turns OFF switch when open processing has been com-
pleted (i.e., when a connection has been made).
9 1 TCP Passive Open
Request Switch
ON User Passive TCP socket opened when switch is turned ON.
OFF Unit Unit turns OFF switch when open processing has been com-
pleted (i.e., when a connection has been made).
10 2 TCP Active Open
Request Switch
ON User Active TCP socket opened when switch is turned ON.
OFF Unit Unit turns OFF switch when open processing has been com-
pleted (i.e., when a connection has been made).
11 3 Send Request
Switch
ON User Send processing executed when switch is turned ON.
(The protocol (TCP/UDP) is determined when the socket is
opened.)
OFF Unit Unit turns OFF switch when send processing has been com-
pleted.
12 4 Receive Request
Switch
ON User Receive processing executed when switch is turned ON.
(The protocol (TCP/UDP) is determined when the socket is
opened.)
OFF Unit Unit turns OFF switch when receive processing has been com-
pleted.