DEC C
Run-Time Library Reference Manual for OpenVMS Systems
Previous
Contents
Index
Appendix A
Appendix A
DEC C Socket Routine Reference
A.1
Porting Considerations
A.1.1
Calling an IPC Routine from an AST State
A.1.2
Calling from KERNEL or EXEC Modes
A.1.3
Event Flags
A.1.4
Suppressing DEC C Compilation Warnings
A.1.5
Header Files
A.2
DEC C Structures
A.3
Internet Protocols
A.3.1
Transmission Control Protocol
A.3.2
User Datagram Protocol
A.4
errno Values
A.5
h_errno Values
A.6
Relationship Between errno and h_errno
A.7
TCP/IP Interface Enhancements
A.8
Summary of Socket Routines
A.8.1
Basic Communication Routines
A.8.2
Auxiliary Communication Routines
A.8.3
h_errno Support Routines
A.8.4
Communication Support Routines
Command 453
accept
Command 454
bind
Command 455
close
Command 456
connect
Command 457
decc$get_sdc
Command 458
endhostent
Command 459
endnetent
Command 460
endprotoent
Command 461
endservent
Command 462
gethostaddr
Command 463
gethostbyaddr
Command 464
gethostbyname
Command 465
gethostent
Command 466
gethostname
Command 467
getnetbyaddr
Command 468
getnetbyname
Command 469
getnetent
Command 470
getpeername
Command 471
getprotobyname
Command 472
getprotobynumber
Command 473
getprotoent
Command 474
getservbyname
Command 475
getservbyport
Command 476
getservent
Command 477
getsockname
Command 478
getsockopt
Command 479
herror
Command 480
hstrerror
Command 481
hostalias
Command 482
htonl
Command 483
htons
Command 484
inet_addr
Command 485
inet_lnaof
Command 486
inet_makeaddr
Command 487
inet_netof
Command 488
inet_network
Command 489
inet_ntoa
Command 490
ioctl
Command 491
listen
Command 492
ntohl
Command 493
ntohs
Command 494
read
Command 495
recv
Command 496
recvfrom
Command 497
recvmsg
Command 498
select
Command 499
send
Command 500
sendmsg
Command 501
sendto
Command 502
sethostent
Command 503
setnetent
Command 504
setprotoent
Command 505
setservent
Command 506
setsockopt
Command 507
shutdown
Command 508
socket
Command 509
socket_fd
Command 510
vaxc$get_sdc
Command 511
write
A.9
Programming Examples
Appendix B
Appendix B
Version-Dependency Tables
Appendix C
Appendix C
Prototypes Duplicated to Non-Standard Headers
Index
Index
Examples
1-1
Differences Between Stream Mode and Record Mode
2-1
Output of the Conversion Specifications
2-2
Using the Standard I/O Functions
2-3
Using Wide Character I/O Functions
2-4
I/O Using File Descriptors and Pointers
3-1
Character-Classification Functions
3-2
Converting Double Values to an ASCII String
3-3
Changing Characters to and from Uppercase Letters
3-4
Concatenating Two Strings
3-5
Four Arguments to the strcspn Function
3-6
Using the <stdarg.h > Functions and Definitions
4-1
Suspending and Resuming Programs
5-1
Creating the Child Process
5-2
Passing Arguments to the Child Process
5-3
Checking the Status of Child Processes
5-4
Communicating Through a Pipe
6-1
A Curses Program
6-2
Manipulating Windows
6-3
Refreshing the Terminal Screen
6-4
Curses Predefined Variables
6-5
The Cursor Movement Functions
6-6
stdscr and Occluding Windows
7-1
Calculating and Verifying a Tangent Value
8-1
Allocating and Deallocating Memory for Structures
9-1
Accessing the User Name
9-2
Accessing Terminal Information
9-3
Manipulating the Default Directory
9-4
Printing the Date and Time
A-1
TCP/IP Server
A-2
TCP/IP Client
A-3
UDP/IP Server
A-4
UDP/IP Client
Figures
1-1
Linking with the DEC C RTL on OpenVMS Alpha Systems
1-2
I/O Interface from C Programs
1-3
Mapping Standard I/O and UNIX I/O to RMS
5-1
Communications Links Between Parent and Child Processes
6-1
An Example of the stdscr Window
6-2
Displaying Windows and Subwindows
6-3
Updating the Terminal Screen
6-4
An Example of the getch Macro
REF-1
Reading and Writing to a Pipe
Tables
1-1
Linking Conflicts
1-2
UNIX and OpenVMS File Specification Delimiters
1-3
Valid and Invalid UNIX and OpenVMS File Specifications
1-4
Feature Test Macros - Standards
1-5
Functions with Dual Implementations
1-6
Functions restricted to 32-bit pointers
1-7
Callbacks that Pass Only 32-Bit Pointers
2-1
I/O Functions and Macros
2-2
Optional Characters Between% (or%
n
$) and the Input Conversion Specifier
2-3
Conversion Specifiers for Formatted Input
2-4
Optional Characters Between% (or%
n
$) and the Output Conversion Specifier
2-5
Conversion Specifiers for Formatted Output
3-1
Character, String, and Argument-List Functions
3-2
Character-Classification Functions
3-3
ASCII Characters and the Character-Classification Functions
4-1
Error- and Signal-Handling Functions
4-2
The Error Code Symbolic Values
4-3
DEC C RTL Signals
4-4
DEC C RTL Signals and Corresponding OpenVMS VAX Exceptions
(VAX ONLY)
4-5
DEC C RTL Signals and Corresponding OpenVMS Alpha Exceptions
(ALPHA ONLY)
5-1
Subprocess Functions
6-1
Curses Functions and Macros
6-2
Curses Predefined Variables and#define Constants
7-1
Math Functions
8-1
Memory Allocation Functions
9-1
System Functions
10-1
Locale Categories
11-1
Date/Time Functions
11-2
Time-zone Filename Acronyms
1
REF Interpretation of the mode Argument
2
REF File Protection Values and Their Meanings
3
REF RMS Valid Keywords and Values
4
REF Member Names
5
REF Optional Characters in strfmon Conversion Specifications
6
REF strfmon Conversion Specifiers
7
REF Optional Elements of strftime Conversion Specifications
8
REF strftime Conversion Specifiers
9
REF strptime Conversion Specifications
10
REF SYSCONF Argument and Return Values
11
REF Time-Zone Initialization Rules
12
REF The vfork and fork Functions
13
REF Optional Elements of wcsftime Conversion Specifications
14
REF wcsftime Conversion Specifiers
1
A Structures Used by Socket Routines
2
A errno Values
3
A 4.4BSD Entry Points
4
A Basic Communication Routines
5
A Auxiliary Communication Routines
6
A Supported
h_errno
Routines
7
A Supported Communication Routines
1
B Functions Available on All OpenVMS Systems
2
B Functions Added in OpenVMS Version 6.2
3
B Functions Added in OpenVMS Version 7.0
4
B Functions Added in OpenVMS Alpha Version 7.0
1
C Duplicated Prototypes
Previous
Next
Contents
Index