Using the internet socket library in c programs – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 100

Advertising
background image

Chapter 6

Using the Ethernet Interface

6-19

7.

At the

Super:

prompt of the remote host, type

del

host.equiv

and press

[Return]

. The example deletes the file that was

transferred to the remote host in the previous FTP send session. See
Figure 6.20.

Figure 6.20

TelnetDelete File and Log Out

8.

At the

Super:

prompt of the remote host, type

dir

and press

[Return]

to list the directory contents. See Figure 6.20. The file

HOST.EQUIV is no longer listed in the directory.

9.

At the

Super:

prompt of the remote host, type

logout

and press

[Return]

to log off.

You exited TELNET when the connection is closed and you returned to the
local OS-9

$

prompt.

Use socket-library C calls to write client/server applications involving
network data transfer. The OS-9/Internet socket library is based on the
BSD-UNIX socket model for interprocess communication. This is a
common method of writing client/server applications.

Using the Internet Socket

Library in C Programs

Advertising