Appendix A |
Appendix A
|
Compaq 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 Compaq C Compilation Warnings
|
A.1.5
|
Header Files
|
A.2
|
Compaq 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 500
|
accept
|
Command 501
|
bind
|
Command 502
|
close
|
Command 503
|
connect
|
Command 504
|
decc$get_sdc
|
Command 505
|
endhostent
|
Command 506
|
endnetent
|
Command 507
|
endprotoent
|
Command 508
|
endservent
|
Command 509
|
gethostaddr
|
Command 510
|
gethostbyaddr
|
Command 511
|
gethostbyname
|
Command 512
|
gethostent
|
Command 513
|
gethostname
|
Command 514
|
getnetbyaddr
|
Command 515
|
getnetbyname
|
Command 516
|
getnetent
|
Command 517
|
getpeername
|
Command 518
|
getprotobyname
|
Command 519
|
getprotobynumber
|
Command 520
|
getprotoent
|
Command 521
|
getservbyname
|
Command 522
|
getservbyport
|
Command 523
|
getservent
|
Command 524
|
getsockname
|
Command 525
|
getsockopt
|
Command 526
|
herror
|
Command 527
|
hstrerror
|
Command 528
|
hostalias
|
Command 529
|
htonl
|
Command 530
|
htons
|
Command 531
|
inet_addr
|
Command 532
|
inet_lnaof
|
Command 533
|
inet_makeaddr
|
Command 534
|
inet_netof
|
Command 535
|
inet_network
|
Command 536
|
inet_ntoa
|
Command 537
|
ioctl
|
Command 538
|
listen
|
Command 539
|
ntohl
|
Command 540
|
ntohs
|
Command 541
|
read
|
Command 542
|
recv
|
Command 543
|
recvfrom
|
Command 544
|
recvmsg
|
Command 545
|
select
|
Command 546
|
send
|
Command 547
|
sendmsg
|
Command 548
|
sendto
|
Command 549
|
sethostent
|
Command 550
|
setnetent
|
Command 551
|
setprotoent
|
Command 552
|
setservent
|
Command 553
|
setsockopt
|
Command 554
|
shutdown
|
Command 555
|
socket
|
Command 556
|
decc$socket_fd
|
Command 557
|
vaxc$get_sdc
|
Command 558
|
write
|
A.9
|
Programming Examples
|
Appendix B |
Appendix B
|
Version-Dependency Tables
|
B.1
|
Functions Available on all OpenVMS VAX and OpenVMS Alpha Versions
|
B.2
|
Functions Available on OpenVMS Version 6.2 and Higher
|
B.3
|
Functions Available on OpenVMS Version 7.0 and Higher
|
B.4
|
Functions Available on OpenVMS Alpha Version 7.0 and Higher
|
B.5
|
Functions Available on OpenVMS Version 7.2 and Higher
|
B.6
|
Functions Available on OpenVMS Version 7.3 and Higher
|
B.7
|
Functions Available on OpenVMS Version 7.3-1 and Higher
|
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 |