beautypg.com

Section 6 socket services, Section 6 socket ser- vices, Section 6 socket services .) – Omron W343-E1-07 User Manual

Page 124

background image

103

SECTION 6

Socket Services

This section describes the functionality provided by the Ethernet Unit via the socket services.

6-1

Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

104

6-1-1

Socket Service Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

104

6-1-2

Sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

105

6-1-3

Using Sockets with the Ethernet Unit. . . . . . . . . . . . . . . . . . . . . . . .

105

6-1-4

Socket Port Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

105

6-1-5

Differences between TCP and UDP . . . . . . . . . . . . . . . . . . . . . . . . .

106

6-1-6

Opening TCP Sockets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

107

6-1-7

Fragmentation of Send Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

108

6-1-8

Maximum Transmission Delays . . . . . . . . . . . . . . . . . . . . . . . . . . . .

110

6-1-9

Precautions in Using Socket Services. . . . . . . . . . . . . . . . . . . . . . . .

111

6-2

Using Socket Services with Socket Service Request Switches . . . . . . . . . . .

112

6-2-1

Socket Service Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

114

6-2-2

Response Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

117

6-2-3

Socket Service Request Switches . . . . . . . . . . . . . . . . . . . . . . . . . . .

122

6-2-4

UDP/TCP Socket Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

125

6-2-5

Application Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

126

6-2-6

Socket Services and Socket Status . . . . . . . . . . . . . . . . . . . . . . . . . .

127

6-2-7

Timing Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

128

6-2-8

TCP/IP Communications Programming Example . . . . . . . . . . . . . .

130

6-2-9

UDP/IP Communications Programming Example . . . . . . . . . . . . . .

134

6-3

Using Socket Services with CMND(490) . . . . . . . . . . . . . . . . . . . . . . . . . . . .

139

6-3-1

UDP/TCP Socket Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

140

6-3-2

Socket Services and Socket Status . . . . . . . . . . . . . . . . . . . . . . . . . .

143

6-3-3

Communications Timing Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . .

144

6-3-4

Socket Service Timing Chart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

144

6-3-5

TCP/IP Communications Programming Example . . . . . . . . . . . . . .

146

6-3-6

UDP/IP Communications Programming Example . . . . . . . . . . . . . .

153

This manual is related to the following products: