Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ close(wdd) — DECnet WAN Support 3.0A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

socket(2w)

bind(2w)

close(wdd)

NAME

close   − Delete a WDD socket

SYNTAX

#include <sys/types.h>
#include <sys/socket.h>

close (s)
int s;

DESCRIPTION

This system call terminates a connection by releasing the device line and closing the socket created in the socket() system call.

This system call:

∗ Disables the line for data transfer. 

∗ Deallocates the socket descriptors. 

The device line is then available for use by another client. 

ARGUMENTS

Input Arguments

s Value returned by the socket() system call.

RETURN VALUE

The return value is 0 if the call is successful.  Otherwise, a -1 is returned and the global variable errno is set to indicate the error.

DIANOSTICS

[EBADF] Invalid socket descriptor. 

SEE ALSO

socket(2w), bind(2w)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026