DIGITAL TCP/IP Services for OpenVMS
System Services and C Socket Programming
Previous
Contents
Index
Chapter 5
5
Using DEC C Socket Routines
5.1
Internet Protocols
5.1.1
TCP Sockets
5.1.1.1
Wildcard Addressing
5.1.2
UDP Sockets
5.2
Calling a C Socket Routine from an AST State
5.3
Calling From KERNEL or EXEC Modes
5.4
Standard I/O
5.5
Event Flags
5.6
Suppressing DEC C Compilation Warnings
5.7
Header Files
5.8
DEC C Structures
5.8.1
hostent Structure
5.8.2
in_addr Structure
5.8.3
iovec Structure
5.8.4
linger Structure
5.8.5
msghdr Structure
5.8.5.1
Structure for BSD Version 4.4
5.8.5.2
Structure for BSD Version 4.3
5.8.6
netent Structure
5.8.7
sockaddr Structure
5.8.7.1
Structure for BSD Version 4.4
5.8.7.2
Structure for BSD Version 4.3
5.8.8
sockaddr_in Structure
5.8.9
timeval Structure
5.9
errno Values
Chapter 6
6
DEC C Socket Routine Reference
6.1
Basic Communication Routines
Command 16
accept()
Command 17
bind()
Command 18
close()
Command 19
connect()
Command 20
listen()
Command 21
read()
Command 22
recv()
Command 23
recvfrom()
Command 24
recvmsg()
Command 25
select()
Command 26
send()
Command 27
sendmsg()
Command 28
sendto()
Command 29
shutdown()
Command 30
socket()
Command 31
write()
6.2
Communication Support Routines
Command 32
decc$get_sdc()
Command 33
gethostbyaddr()
Command 34
gethostbyname()
Command 35
gethostname()
Command 36
getnetbyaddr()
Command 37
getnetbyname()
Command 38
getnetent()
Command 39
getpeername()
Command 40
getprotobyname()
Command 41
getprotobynumber()
Command 42
getprotoent()
Command 43
getservbyname()
Command 44
getservbyport()
Command 45
getsockname()
Command 46
getsockopt()
Command 47
htonl()
Command 48
htons()
Command 49
inet_addr()
Command 50
inet_lnaof()
Command 51
inet_makeaddr()
Command 52
inet_netof()
Command 53
inet_network()
Command 54
inet_ntoa()
Command 55
ioctl()
Command 56
ntohl()
Command 57
ntohs()
Command 58
setsockopt()
Command 59
vaxc$get_sdc()
Chapter 7
7
Error Codes
Appendix A
Appendix A
Online Program Examples
A.1
TCP/IP Server Using QIO Calls
A.2
UDP/IP Server --- C Socket Example
A.3
TCP/IP Server --- C Socket Example
A.4
TCP/IP Server Accepting a Connection from the Auxiliary Server
A.5
TCP/IP Client Using the IPC Socket Interface
Index
Index
Examples
2-1
Creating a Device Socket Using OpenVMS System Services
2-2
Binding a Socket Using C Socket Programming
2-3
BIND Lookup Using OpenVMS System Services
2-4
BIND Lookup Using C Socket Programming
2-5
Binding Socket Using OpenVMS System Services
2-6
Binding a Socket Using C Socket Programming
2-7
Setting the Socket to Listen Using OpenVMS System Services
2-8
Setting the Socket to Listen Using C Socket Programming
2-9
Initiating a Connection Using OpenVMS System Services
2-10
Initiating a Connection Using C Socket Programming
2-11
Accepting an Incoming Connection Request Using OpenVMS System Services
2-12
Accepting a Connection Request Using C Socket Programming
2-13
Obtaining Device Socket Information by Using OpenVMS System Services
2-14
Obtaining Device Socket Information by Using C Socket Programming
2-15
Reading Data Using OpenVMS System Services
2-16
Reading Data Using C Socket Programming
2-17
Reading OOB Data Using OpenVMS System Services
2-18
Reading OOB Data Using C Socket Programming
2-19
Previewing Data Using C Socket Programming
2-20
Writing Data Using OpenVMS System Services
2-21
Writing Data Using C Socket Programming
2-22
Writing OOB Data Using OpenVMS System Services
2-23
Writing OOB Data Using C Socket Programming
2-24
Closing and Deleting a Socket Using OpenVMS System Services
2-25
Closing and Deleting a Socket Using C Socket Programming
2-26
Shutting Down a Socket Using OpenVMS System Services
2-27
Shutting Down a Socket Using C Socket Programming
4-1
$ASSIGN System Service (MACRO-32)
4-2
$ASSIGN System Service (C Programming)
4-3
$CANCEL System Service (MACRO-32)
4-4
$CANCEL System Service (C Programming)
4-5
$DASSGN System Service (MACRO-32)
4-6
$DASSGN System Service (C Programming)
4-7
IO$_ACPCONTROL Function (MACRO-32 Programming)
4-8
IO$_ACPCONTROL Function (C Programming)
4-9
IO$_READVBLK Function (MACRO-32 Programming)
4-10
IO$_READVBLK Function --- Vectored Buffers (C Programming)
4-11
IO$_READVBLK Function --- INET device (C Programming)
4-12
IO$_WRITEVBLK Function (MACRO-32 Programming)
4-13
IO$_WRITEVBLK Function --- Vectored (C Programming)
4-14
IO$_WRITEVBLK Function (C Programming)
A-1
TCP/IP Server Using QIO Calls
A-2
UDP/IP Server Using the C Socket Interface
A-3
TCP/IP Server Using the C Socket Interface
A-4
TCP/IP Server Accepting a Connection from the Auxiliary Server
A-5
TCP/IP Client Using the IPC Socket Interface
Previous
Next
Contents
Index