{"diffoscope-json-version": 1, "source1": "/srv/reproducible-results/rbuild-debian/r-b-build.gBMqx2Uj/b1/adasockets_1.13-2_armhf.changes", "source2": "/srv/reproducible-results/rbuild-debian/r-b-build.gBMqx2Uj/b2/adasockets_1.13-2_armhf.changes", "unified_diff": null, "details": [{"source1": "Files", "source2": "Files", "unified_diff": "@@ -1,5 +1,5 @@\n \n 13281ef59b6896f634f93f64ef4cbc51 62640 libdevel optional libadasockets-dev_1.13-2_armhf.deb\n- 9f87e36c05380ed7bac261e674a121b3 259372 doc optional libadasockets-doc_1.13-2_all.deb\n+ 4c50df32f731a25644b3fb03481f18dc 260076 doc optional libadasockets-doc_1.13-2_all.deb\n eed7e98912817bd6ab77a4a41767f7bc 52540 debug optional libadasockets11-dbgsym_1.13-2_armhf.deb\n ff78796d2aa4a420b83637cf0c976de0 28160 libs optional libadasockets11_1.13-2_armhf.deb\n"}, {"source1": "libadasockets-doc_1.13-2_all.deb", "source2": "libadasockets-doc_1.13-2_all.deb", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,3 +1,3 @@\n -rw-r--r-- 0 0 0 4 2024-01-06 16:59:11.000000 debian-binary\n -rw-r--r-- 0 0 0 1060 2024-01-06 16:59:11.000000 control.tar.xz\n--rw-r--r-- 0 0 0 258120 2024-01-06 16:59:11.000000 data.tar.xz\n+-rw-r--r-- 0 0 0 258824 2024-01-06 16:59:11.000000 data.tar.xz\n"}, {"source1": "control.tar.xz", "source2": "control.tar.xz", "unified_diff": null, "details": [{"source1": "control.tar", "source2": "control.tar", "unified_diff": null, "details": [{"source1": "./control", "source2": "./control", "unified_diff": "@@ -1,13 +1,13 @@\n Package: libadasockets-doc\n Source: adasockets\n Version: 1.13-2\n Architecture: all\n Maintainer: Phil Brooke \n-Installed-Size: 288\n+Installed-Size: 289\n Suggests: gnat\n Breaks: libadasockets10-dev, libadasockets11-dev, libadasockets12-dev, libadasockets8-dev, libadasockets9-dev\n Replaces: libadasockets10-dev, libadasockets11-dev, libadasockets12-dev, libadasockets8-dev, libadasockets9-dev\n Section: doc\n Priority: optional\n Multi-Arch: foreign\n Homepage: https://www.rfc1149.net/devel/adasockets.html\n"}, {"source1": "./md5sums", "source2": "./md5sums", "unified_diff": null, "details": [{"source1": "./md5sums", "source2": "./md5sums", "comments": ["Files differ"], "unified_diff": null}]}]}]}, {"source1": "data.tar.xz", "source2": "data.tar.xz", "unified_diff": null, "details": [{"source1": "data.tar", "source2": "data.tar", "unified_diff": null, "details": [{"source1": "file list", "source2": "file list", "unified_diff": "@@ -1,21 +1,21 @@\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./usr/\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./usr/share/\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./usr/share/doc/\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./usr/share/doc/libadasockets-dev/\n -rw-r--r-- 0 root (0) root (0) 1940 2023-06-18 11:57:26.000000 ./usr/share/doc/libadasockets-dev/README.md\n--rw-r--r-- 0 root (0) root (0) 237948 2024-01-06 16:59:11.000000 ./usr/share/doc/libadasockets-dev/adasockets.pdf.gz\n+-rw-r--r-- 0 root (0) root (0) 236817 2024-01-06 16:59:11.000000 ./usr/share/doc/libadasockets-dev/adasockets.pdf.gz\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./usr/share/doc/libadasockets-dev/examples/\n -rw-r--r-- 0 root (0) root (0) 233 2024-01-06 16:56:42.000000 ./usr/share/doc/libadasockets-dev/examples/examples.gpr\n -rw-r--r-- 0 root (0) root (0) 4956 2023-06-18 11:57:26.000000 ./usr/share/doc/libadasockets-dev/examples/listener.adb\n -rw-r--r-- 0 root (0) root (0) 3980 2023-06-18 11:57:26.000000 ./usr/share/doc/libadasockets-dev/examples/multi.adb\n -rw-r--r-- 0 root (0) root (0) 4591 2023-06-18 11:57:26.000000 ./usr/share/doc/libadasockets-dev/examples/stream_listener.adb\n -rw-r--r-- 0 root (0) root (0) 3904 2023-06-18 11:57:26.000000 ./usr/share/doc/libadasockets-dev/examples/stream_sender.adb\n -rw-r--r-- 0 root (0) root (0) 4919 2023-06-18 11:57:26.000000 ./usr/share/doc/libadasockets-dev/examples/tcprelay.adb\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./usr/share/doc/libadasockets-doc/\n -rw-r--r-- 0 root (0) root (0) 1402 2024-01-06 16:59:11.000000 ./usr/share/doc/libadasockets-doc/changelog.Debian.gz\n -rw-r--r-- 0 root (0) root (0) 3539 2024-01-06 16:59:11.000000 ./usr/share/doc/libadasockets-doc/copyright\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./usr/share/doc-base/\n -rw-r--r-- 0 root (0) root (0) 475 2024-01-06 16:56:42.000000 ./usr/share/doc-base/libadasockets-doc.adasockets\n drwxr-xr-x 0 root (0) root (0) 0 2024-01-06 16:59:11.000000 ./usr/share/info/\n--rw-r--r-- 0 root (0) root (0) 12103 2024-01-06 16:59:11.000000 ./usr/share/info/adasockets.info.gz\n+-rw-r--r-- 0 root (0) root (0) 13955 2024-01-06 16:59:11.000000 ./usr/share/info/adasockets.info.gz\n"}, {"source1": "./usr/share/doc/libadasockets-dev/adasockets.pdf.gz", "source2": "./usr/share/doc/libadasockets-dev/adasockets.pdf.gz", "unified_diff": null, "details": [{"source1": "adasockets.pdf", "source2": "adasockets.pdf", "unified_diff": null, "details": [{"source1": "pdftotext {} -", "source2": "pdftotext {} -", "unified_diff": "@@ -23,31 +23,31 @@\n 3.3 Setting up multicast sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5\n 3.4 Sending and receiving data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6\n 3.4.1 Raw data manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6\n 3.4.2 String-oriented exchanges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6\n \n 4 Sockets package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n Accept Socket (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n-Bind (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n+Bind (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n Connect (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n Get (function) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9\n Get Char (function) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9\n Get Line (function). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10\n Get Line (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10\n Get Receive Queue Size (function) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11\n Get Send Queue Size (function) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11\n Getsockopt (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12\n Listen (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12\n-New Line (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13\n+New Line (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12\n Put (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13\n-Put Line (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14\n+Put Line (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13\n Receive (function) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14\n-Receive (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15\n+Receive (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14\n Receive Some (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15\n-Send (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n+Send (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15\n Set Buffer (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n Setsockopt (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n Shutdown (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n Socket (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n Unset Buffer (procedure) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18\n \n 5 Sockets.Multicast package . . . . . . . . . . . . . . . . . . . . . 19\n@@ -221,39 +221,15 @@\n This procedure creates a new socket corresponding to an incoming connection\n on TCP socket Socket. All the communications with the peer will take place\n on New Socket, while the program can accept another connection on Socket.\n New Socket must not be initialized before calling this procedure, or must have\n been cleaned up by calling Shutdown, in order to avoid a file descriptors leak.\n Accept_Socket will block until an incoming connection is ready to be accepted.\n Example\n-declare\n-Sock\n-: Socket_FD;\n-Incoming : Socket_FD;\n-begin\n--- Create a TCP socket listening on local port 4161\n-Socket (Sock, PF_INET, SOCK_STREAM);\n-Bind (Sock, 4161);\n-Listen (Sock, 3);\n--- One-connection-at-a-time server (3 may be pending)\n-loop\n--- Wait for a new connection and accept it\n-Accept_Socket (Sock, Incoming);\n--- Do some dialog with the remote host\n-Do_Some_Dialog (Incoming);\n--- Close incoming socket and wait for next connection\n-Shutdown (Incoming);\n-end loop;\n-end;\n-\n-\f8\n-\n-AdaSockets reference manual\n-\n-See also [Bind (procedure)], page 8,\n+See also [Bind (procedure)], page 7,\n [Listen (procedure)], page 12,\n [Shutdown (procedure)], page 17,\n [Socket (procedure)], page 17.\n \n Bind (procedure)\n Purpose\n \n@@ -268,20 +244,24 @@\n Port\n Host\n \n in\n in\n in\n \n-[Sockets.Bind]\n-\n Initialized socket object\n Local port to bind to\n Local interface to bind to\n \n+[Sockets.Bind]\n+\n+\f8\n+\n+AdaSockets reference manual\n+\n Description\n This procedure requests a local port from the operating system. If 0 is given\n in Port, the system will assign a free port whose number can later be retrieved\n using [Get Sock Port (function)], page 23. Also, most operating systems require\n special privileges if you want to bind to ports below 1024.\n If Host is not the empty string, it must contain the IP address of a local interface\n to bind to, or a name which resolves into such an address. If an empty string\n@@ -325,31 +305,31 @@\n Exceptions\n Connection_Refused\n Socket_Error\n \n The connection has been refused by the server\n Another error occurred during the connection\n \n-\fChapter 4: Sockets package\n-\n-9\n-\n Example\n declare\n Sock : Socket_FD;\n begin\n -- Create a TCP socket\n Socket (Sock, PF_INET, SOCK_STREAM);\n -- Connect it to rfc1149.net's mail server\n Connect (Sock, \"mail.rfc1149.net\", 25);\n -- Do a mail transaction then close the socket\n [...]\n end;\n See also [Socket (procedure)], page 17.\n \n+\fChapter 4: Sockets package\n+\n+9\n+\n Get (function)\n Purpose\n \n Get a string from a remote host\n \n Prototype\n \n@@ -396,33 +376,33 @@\n \n in\n \n [Sockets.Get Char]\n \n Initialized and connected socket object\n \n-\f10\n-\n-AdaSockets reference manual\n-\n Return value\n One character sent by the remote host\n Description\n This function receives exactly one character from the remote host.\n Exceptions\n Connection_Closed\n \n Peer has closed the connection before sending the character\n \n See also [Get (function)], page 9,\n [Get Line (function)], page 10,\n [Get Line (procedure)], page 10,\n-[Receive (procedure)], page 15,\n+[Receive (procedure)], page 14,\n [Set Buffer (procedure)], page 16.\n \n+\f10\n+\n+AdaSockets reference manual\n+\n Get Line (function)\n Purpose\n \n Get a whole line from a remote host\n \n Prototype\n \n@@ -455,29 +435,26 @@\n Connection_Closed\n \n Peer has closed the connection before sending a whole line\n \n See also [Get (function)], page 9,\n [Get Char (function)], page 9,\n [Get Line (procedure)], page 10,\n-[Receive (procedure)], page 15,\n+[Receive (procedure)], page 14,\n [Set Buffer (procedure)], page 16.\n \n Get Line (procedure)\n Purpose\n \n Get a whole line from a remote host\n \n-\fChapter 4: Sockets package\n-\n-11\n-\n Prototype\n-[Sockets.Get Line]\n+\n procedure Get_Line\n+[Sockets.Get Line]\n (Socket : Socket_FD\u2019Class; Str : in out String;\n Last : out Natural);\n Parameters\n Socket\n Str\n Last\n \n@@ -490,59 +467,59 @@\n Last index used in the string\n \n Description\n This procedure receives one line from the remote host. A line consists into zero\n or more characters followed by an optional CR and by a LF. Those terminators\n are stripped before the line is returned.\n This procedure blocks until one full line has been received.\n+\n+\fChapter 4: Sockets package\n+\n+11\n+\n Exceptions\n Connection_Closed\n \n Peer has closed the connection before sending a whole line\n \n See also [Get (function)], page 9,\n [Get Char (function)], page 9,\n [Get Line (function)], page 10,\n-[Receive (procedure)], page 15,\n+[Receive (procedure)], page 14,\n [Set Buffer (procedure)], page 16.\n \n Get Receive Queue Size (function)\n Purpose\n \n Return the size of the unread data in the input queue\n \n Prototype\n-\n-function Get_Receive_Queue_Size\n [Sockets.Get Receive Queue Size]\n+function Get_Receive_Queue_Size\n (Socket : Socket_FD\u2019Class)\n return Integer;\n Parameters\n Socket\n \n in\n \n Initialized and connected socket object\n \n Return value\n The non-negative size in bytes of the input queue\n Description\n This function is only available on Linux platforms. On other operating systems, it will return -2 to indicate that the necessary mechanisms to retrieve the\n information are not available.\n-See also [Receive (procedure)], page 15.\n+See also [Receive (procedure)], page 14.\n \n Get Send Queue Size (function)\n Purpose\n \n Return the size of the unsent data in the output queue\n \n-\f12\n-\n-AdaSockets reference manual\n-\n Prototype\n \n function Get_Send_Queue_Size\n (Socket : Socket_FD\u2019Class)\n return Integer;\n Parameters\n Socket\n@@ -554,15 +531,19 @@\n Initialized and connected socket object\n \n Return value\n The non-negative size in bytes of the output queue\n Description\n This function is only available on Linux platforms. On other operating systems, it will return -2 to indicate that the necessary mechanisms to retrieve the\n information are not available.\n-See also [Send (procedure)], page 16.\n+See also [Send (procedure)], page 15.\n+\n+\f12\n+\n+AdaSockets reference manual\n \n Getsockopt (procedure)\n Purpose\n \n Retrieve a socket option\n \n Prototype\n@@ -604,49 +585,45 @@\n \n Prototype\n \n procedure Listen (Socket : Socket_FD;\n Queue_Size : Positive := 5);\n Parameters\n Socket\n+Queue Size\n \n in\n+in\n \n [Sockets.Listen]\n \n Initialized and bound socket object\n-\n-\fChapter 4: Sockets package\n-\n-Queue Size\n-\n-13\n-\n-in\n-\n Requested slots in the listen queue\n \n Description\n This procedure establishes a listen queue after a TCP socket as been initialized\n and bound. Each slot in the queue can hold one incoming connection that has\n not been accepted yet. Note that most operating systems ignore queue sizes\n larger than five.\n See also [Accept Socket (procedure)], page 7,\n-[Bind (procedure)], page 8,\n+[Bind (procedure)], page 7,\n [Socket (procedure)], page 17.\n \n New Line (procedure)\n Purpose\n \n Send a CR/LF to a remote host\n \n-Prototype\n+\fChapter 4: Sockets package\n \n-procedure New_Line\n+13\n+\n+Prototype\n [Sockets.New Line]\n+procedure New_Line\n (Socket : Socket_FD\u2019Class; Count : Natural := 1);\n Parameters\n Socket\n Count\n \n in\n in\n@@ -658,15 +635,15 @@\n This procedure sends one or more CR/LF combinations to the peer.\n Exceptions\n Connection_Closed\n \n Peer has prematurely closed the connection\n \n See also [Put (procedure)], page 13,\n-[Put Line (procedure)], page 14.\n+[Put Line (procedure)], page 13.\n \n Put (procedure)\n Purpose\n \n Send a string to a remote host\n \n Prototype\n@@ -688,52 +665,54 @@\n Description\n This procedure sends the content of Str over an outgoing or incoming socket.\n Exceptions\n Connection_Closed\n \n Peer has prematurely closed the connection\n \n-See also [New Line (procedure)], page 13,\n-[Put Line (procedure)], page 14,\n-[Send (procedure)], page 16.\n-\n-\f14\n-\n-AdaSockets reference manual\n+See also [New Line (procedure)], page 12,\n+[Put Line (procedure)], page 13,\n+[Send (procedure)], page 15.\n \n Put Line (procedure)\n Purpose\n \n Send a CR/LF terminated string to a remote host\n \n Prototype\n-[Sockets.Put Line]\n+\n procedure Put_Line\n+[Sockets.Put Line]\n (Socket : Socket_FD\u2019Class; Str : String);\n Parameters\n Socket\n Str\n \n in\n in\n \n Initialized and connected socket object\n String to send\n \n Description\n This procedure sends the content of Str plus a CR/LF combination over an\n outgoing or incoming socket.\n+\n+\f14\n+\n+AdaSockets reference manual\n+\n Exceptions\n Connection_Closed\n \n Peer has prematurely closed the connection\n \n-See also [New Line (procedure)], page 13,\n+See also [New Line (procedure)], page 12,\n [Put (procedure)], page 13,\n-[Send (procedure)], page 16.\n+[Send (procedure)], page 15.\n \n Receive (function)\n Purpose\n \n Receive raw data over a socket\n \n Prototype\n@@ -759,23 +738,19 @@\n socket. Only one system call will be performed; this function will return whatever data has arrived. Note that in GNAT the secondary stack may be used to\n store the data and may result in stack storage exhaustion.\n Exceptions\n Connection_Closed\n \n Peer has closed the connection before sending any data\n \n-See also [Receive (procedure)], page 15,\n+See also [Receive (procedure)], page 14,\n [Receive Some (procedure)], page 15,\n [Get Line (function)], page 10,\n [Get Line (procedure)], page 10.\n \n-\fChapter 4: Sockets package\n-\n-15\n-\n Receive (procedure)\n Purpose\n \n Receive raw data over a socket\n \n Prototype\n \n@@ -797,14 +772,18 @@\n socket. It will block until the Data reception buffer has been totally filled.\n Exceptions\n Connection_Closed\n \n Peer has closed the connection before Data'Length bytes\n were received\n \n+\fChapter 4: Sockets package\n+\n+15\n+\n See also [Get Line (function)], page 10,\n [Get Line (procedure)], page 10,\n [Receive (function)], page 14,\n [Receive Some (procedure)], page 15.\n \n Receive Some (procedure)\n Purpose\n@@ -839,19 +818,15 @@\n Connection_Closed\n \n Peer has closed the connection before sending any data\n \n See also [Get Line (function)], page 10,\n [Get Line (procedure)], page 10,\n [Receive (function)], page 14,\n-[Receive (procedure)], page 15.\n-\n-\f16\n-\n-AdaSockets reference manual\n+[Receive (procedure)], page 14.\n \n Send (procedure)\n Purpose\n \n Send raw data over a socket\n \n Prototype\n@@ -874,15 +849,19 @@\n socket.\n Exceptions\n Connection_Closed\n \n Peer has prematurely closed the connection\n \n See also [Put (procedure)], page 13,\n-[Put Line (procedure)], page 14.\n+[Put Line (procedure)], page 13.\n+\n+\f16\n+\n+AdaSockets reference manual\n \n Set Buffer (procedure)\n Purpose\n \n Install a line-oriented buffer of the socket object\n \n Prototype\n@@ -913,18 +892,14 @@\n See also [Unset Buffer (procedure)], page 18.\n \n Setsockopt (procedure)\n Purpose\n \n Set a socket option\n \n-\fChapter 4: Sockets package\n-\n-17\n-\n Prototype\n \n procedure Setsockopt (Socket : Socket_FD;\n [Sockets.Setsockopt]\n Level : Socket_Level := SOL_SOCKET;\n Optname : Socket_Option; Optval : Integer);\n Parameters\n@@ -950,14 +925,18 @@\n are SO_REUSEADDR, SO_REUSEPORT, IP_MULTICAST_TTL, IP_ADD_MEMBERSHIP,\n IP_DROP_MEMBERSHIP, IP_MULTICAST_LOOP, SO_SNDBUF and IP_RCVBUF.\n Note that unlike their C language counterpart, Getsockopt and Setsockopt\n do not require an extra parameter representing the length in bytes of the option\n value. AdaSockets nows the right size for every option.\n See also [Getsockopt (procedure)], page 12.\n \n+\fChapter 4: Sockets package\n+\n+17\n+\n Shutdown (procedure)\n Purpose\n \n Shutdown a socket\n \n Prototype\n \n@@ -989,31 +968,24 @@\n Prototype\n \n procedure Socket (Socket : out Socket_FD;\n Domain : Socket_Domain := PF_INET;\n Typ : Socket_Type := SOCK_STREAM);\n Parameters\n Socket\n-\n-out\n-\n-Socket object to initialize\n-\n-[Sockets.Socket]\n-\n-\f18\n-\n-AdaSockets reference manual\n-\n Domain\n Typ\n \n+out\n in\n in\n \n+[Sockets.Socket]\n+\n+Socket object to initialize\n Protocol family\n Kind of sockets\n \n Description\n This procedure initializes a new socket object by reserving a file descriptor to\n the operating system. For backward compatibility with older versions of this\n library, AF_INET is still accepted as a value but should be replaced as soon as\n@@ -1028,14 +1000,18 @@\n -- Perform some operations on socket\n [...]\n -- Shutdown the socket in both directions\n Shutdown (Sock, Both);\n end;\n See also [Shutdown (procedure)], page 17.\n \n+\f18\n+\n+AdaSockets reference manual\n+\n Unset Buffer (procedure)\n Purpose\n \n Deinstall the line-oriented buffer of the socket object\n \n Prototype\n \n@@ -1108,29 +1084,29 @@\n IP multicast routers do implement threshold-based filtering and will not let IP\n multicast packets leave your organization if the TTL on the last router is smaller\n than 16.\n If 0 is given for the Port, a local one will be chosen. It can then later be retrieved\n using Get Sock Port.\n Example\n declare\n-Sock : Socket_FD;\n+Sock : Multicast_Socket_FD;\n begin\n--- Create a TCP socket\n-Socket (Sock, PF_INET, SOCK_STREAM);\n--- Connect it to rfc1149.net's mail server\n-Connect (Sock, \"mail.rfc1149.net\", 25);\n+-- Create a multicast socket on group 224.1.2.3 port 8763\n+Sock := Create_Multicast_Socket (\"224.1.2.3\", 8763);\n+-- Perform some operations on socket\n+[...]\n \n \f20\n \n AdaSockets reference manual\n \n--- Do a mail transaction then close the socket\n-[...]\n+-- Shutdown the socket in both directions\n+Shutdown (Sock, Both);\n end;\n-See also [Send (procedure)], page 16,\n+See also [Send (procedure)], page 15,\n [Shutdown (procedure)], page 17.\n \n Create Multicast Socket (function)\n Purpose\n \n Create an IP multicast socket\n \n@@ -1175,15 +1151,15 @@\n -- Create a multicast socket on group 224.1.2.3 port 8763\n Sock := Create_Multicast_Socket (\"224.1.2.3\", 8763);\n -- Perform some operations on socket\n [...]\n -- Shutdown the socket in both directions\n Shutdown (Sock, Both);\n end;\n-See also [Send (procedure)], page 16,\n+See also [Send (procedure)], page 15,\n [Shutdown (procedure)], page 17.\n \n \f21\n \n 6 Sockets.Naming package\n The Sockets.Naming package contains types and helper functions needed to manipulate\n Internet host names and addresses.\n@@ -1563,77 +1539,77 @@\n Index\n A\n \n G\n \n Accept_Socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n Accepting a new connection . . . . . . . . . . . . . . . . . . . . . 7\n-Ada.Streams.Stream_Element_Array . 6, 14, 15, 16\n+Ada.Streams.Stream_Element_Array . . . . 6, 14, 15\n Ada.Streams.Stream_Element_Count . . . . . . . 14, 15\n AdaSockets presentation . . . . . . . . . . . . . . . . . . . . . . . . 1\n Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21\n Address_Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21\n Address_Component . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21\n Address_Of . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21\n-AF_INET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18\n+AF_INET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n Any_Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22\n-Assigning a local port . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n+Assigning a local port . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n \n Get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9\n Get_Char . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9\n-Get_Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 11\n+Get_Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10\n Get_Peer_Addr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22\n Get_Peer_Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22\n Get_Receive_Queue_Size . . . . . . . . . . . . . . . . . . . . . . 11\n-Get_Send_Queue_Size. . . . . . . . . . . . . . . . . . . . . . . . . . 12\n+Get_Send_Queue_Size. . . . . . . . . . . . . . . . . . . . . . . . . . 11\n Get_Sock_Addr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22\n Get_Sock_Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23\n Getsockopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12\n Group communication . . . . . . . . . . . . . . . . . . . . . . . . . . . 5\n \n H\n B\n-Bind . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n-Binding a socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n+Bind . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n+Binding a socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n Both . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n \n Handling a new connection . . . . . . . . . . . . . . . . . . . . . . 7\n Host_Entry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21\n Host_Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23\n \n I\n C\n Closing a socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n Comparaison with GNAT.Sockets . . . . . . . . . . . . . . . . 1\n Connect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n Connecting a socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n-Connection_Closed . . . . . . . 9, 10, 11, 13, 14, 15, 16\n+Connection_Closed . . . . . . . . . . . 9, 10, 11, 13, 14, 15\n Connection_Refused . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n Contributing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27, 29\n Create_Multicast_Socket . . . . . . . . . . . . . . . 5, 19, 20\n Creating a multicast socket . . . . . . . . . . . . . . 5, 19, 20\n-Creating a server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n+Creating a server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n Creating a socket. . . . . . . . . . . . . . . . . . . . . 5, 17, 19, 20\n Creating a TCP socket . . . . . . . . . . . . . . . . . . . . . . . . . . 5\n Creating a UDP socket . . . . . . . . . . . . . . . . . . . . . . . . . . 5\n Creating a unicast socket . . . . . . . . . . . . . . . . . . . . . . . . 5\n-CR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 11, 13\n+CR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 13\n \n Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23\n Info_Of_Name_Or_IP . . . . . . . . . . . . . . . . . . . . . . . . . . . 24\n Installing AdaSockets . . . . . . . . . . . . . . . . . . . . . . . . . . . 3\n-IP_ADD_MEMBERSHIP . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-IP_DROP_MEMBERSHIP . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-IP_MULTICAST_LOOP . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-IP_MULTICAST_TTL . . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-IPPROTO_IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n+IP_ADD_MEMBERSHIP . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+IP_DROP_MEMBERSHIP . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+IP_MULTICAST_LOOP . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+IP_MULTICAST_TTL . . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+IPPROTO_IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n Is_IP_Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24\n \n L\n-LF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 11, 13\n+LF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10, 13\n Listen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12\n Listen queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12\n \n M\n E\n Establishing a listen queue . . . . . . . . . . . . . . . . . . . . . 12\n \n@@ -1670,80 +1646,80 @@\n Sockets.Naming.Image . . . . . . . . . . . . . . . . . . . . . . . . 23\n Sockets.Naming.Info_Of_Name_Or_IP . . . . . . . . . 24\n Sockets.Naming.Is_IP_Address . . . . . . . . . . . . . . . 24\n Sockets.Naming.Name_Of . . . . . . . . . . . . . . . . . . . . . . 24\n Sockets.Naming.Value . . . . . . . . . . . . . . . . . . . . . . . . 25\n Sockets.New_Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13\n Sockets.Put . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13\n-Sockets.Put_Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14\n-Sockets.Receive. . . . . . . . . . . . . . . . . . . . . . . . . . . 14, 15\n+Sockets.Put_Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13\n+Sockets.Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14\n Sockets.Receive_Some . . . . . . . . . . . . . . . . . . . . . . . . 15\n-Sockets.Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n+Sockets.Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15\n Sockets.Set_Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n-Sockets.Setsockopt . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n+Sockets.Setsockopt . . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n Sockets.Shutdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n-Sockets.SO_RCVBUF . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-Sockets.SO_REUSEADDR . . . . . . . . . . . . . . . . . . . . . 12, 17\n-Sockets.SO_REUSEPORT . . . . . . . . . . . . . . . . . . . . . 12, 17\n-Sockets.SO_SNDBUF . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n+Sockets.SO_RCVBUF . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+Sockets.SO_REUSEADDR . . . . . . . . . . . . . . . . . . . . . 12, 16\n+Sockets.SO_REUSEPORT . . . . . . . . . . . . . . . . . . . . . 12, 16\n+Sockets.SO_SNDBUF . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n Sockets.Socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5, 17\n-Sockets.SOL_SOCKET . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n+Sockets.SOL_SOCKET . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n Sockets.Unset_Buffer . . . . . . . . . . . . . . . . . . . . . . . . 18\n-SOL_SOCKET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-Stream_Element_Array . . . . . . . . . . . . . . . 6, 14, 15, 16\n+SOL_SOCKET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+Stream_Element_Array . . . . . . . . . . . . . . . . . . 6, 14, 15\n Stream_Element_Count . . . . . . . . . . . . . . . . . . . . . 14, 15\n String_Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21\n String_Array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21\n Suggesting a feature . . . . . . . . . . . . . . . . . . . . . . . . . . . 29\n \n-PF_INET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18\n+PF_INET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n Put . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13\n-Put_Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14\n+Put_Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13\n \n R\n Raw data manipulation . . . . . . . . . . . . . . . . . . . . . . . . . 6\n-Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14, 15, 17\n+Receive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14, 17\n Receive_Some . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15\n Receiving data . . . . . . . . . . 6, 9, 10, 11, 14, 15, 16, 18\n Reporting a bug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29\n Representing IP addresses . . . . . . . . . . . . . . . . . . 23, 25\n Retrieving socket options. . . . . . . . . . . . . . . . . . . . . . . 12\n \n S\n-Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16, 17\n-Sending data . . . . . . . . . . . . . . . . . . . . . 6, 11, 13, 14, 16\n+Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15, 17\n+Sending data . . . . . . . . . . . . . . . . . . . . . 6, 11, 12, 13, 15\n Sending patches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29\n Set_Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n-Setsockopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n+Setsockopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n Setting socket options . . . . . . . . . . . . . . . . . . . . . . . . . . 16\n Shutdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n-SO_RCVBUF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-SO_REUSEADDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-SO_REUSEPORT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-SO_SNDBUF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n-SOCK_DGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18\n-SOCK_STREAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18\n+SO_RCVBUF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+SO_REUSEADDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+SO_REUSEPORT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+SO_SNDBUF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n+SOCK_DGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n+SOCK_STREAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n Socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5, 17\n Socket shutdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17\n Socket_Error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n Socket_FD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5, 7\n Sockets.Accept_Socket . . . . . . . . . . . . . . . . . . . . . . . . 7\n-Sockets.Bind . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n+Sockets.Bind . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7\n Sockets.Connect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8\n Sockets.Get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9\n Sockets.Get_Char . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9\n-Sockets.Get_Line . . . . . . . . . . . . . . . . . . . . . . . . . 10, 11\n+Sockets.Get_Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10\n Sockets.Get_Receive_Queue_Size . . . . . . . . . . . . . 11\n-Sockets.Get_Send_Queue_Size . . . . . . . . . . . . . . . . 12\n+Sockets.Get_Send_Queue_Size . . . . . . . . . . . . . . . . 11\n Sockets.Getsockopt . . . . . . . . . . . . . . . . . . . . . . . . . . . 12\n-Sockets.IP_ADD_MEMBERSHIP . . . . . . . . . . . . . . . 12, 17\n-Sockets.IP_DROP_MEMBERSHIP . . . . . . . . . . . . . . 12, 17\n-Sockets.IP_MULTICAST_LOOP . . . . . . . . . . . . . . . 12, 17\n-Sockets.IP_MULTICAST_TTL . . . . . . . . . . . . . . . . 12, 17\n-Sockets.IPPROTO_IP . . . . . . . . . . . . . . . . . . . . . . . 12, 17\n+Sockets.IP_ADD_MEMBERSHIP . . . . . . . . . . . . . . . 12, 16\n+Sockets.IP_DROP_MEMBERSHIP . . . . . . . . . . . . . . 12, 16\n+Sockets.IP_MULTICAST_LOOP . . . . . . . . . . . . . . . 12, 16\n+Sockets.IP_MULTICAST_TTL . . . . . . . . . . . . . . . . 12, 16\n+Sockets.IPPROTO_IP . . . . . . . . . . . . . . . . . . . . . . . 12, 16\n Sockets.Listen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12\n \n T\n TCP socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5\n \n U\n UDP socket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5\n"}]}]}, {"source1": "./usr/share/info/adasockets.info.gz", "source2": "./usr/share/info/adasockets.info.gz", "unified_diff": null, "details": [{"source1": "adasockets.info", "source2": "adasockets.info", "has_internal_linenos": true, "unified_diff": "@@ -748,3391 +748,4213 @@\n 00002eb0: 6f72 7320 6c65 616b 2e0a 0a20 2020 2020 ors leak... \n 00002ec0: e280 9841 6363 6570 745f 536f 636b 6574 ...Accept_Socket\n 00002ed0: e280 9920 7769 6c6c 2062 6c6f 636b 2075 ... will block u\n 00002ee0: 6e74 696c 2061 6e20 696e 636f 6d69 6e67 ntil an incoming\n 00002ef0: 2063 6f6e 6e65 6374 696f 6e20 6973 2072 connection is r\n 00002f00: 6561 6479 2074 6f0a 2020 2020 2062 6520 eady to. be \n 00002f10: 6163 6365 7074 6564 2e0a 0a45 5841 4d50 accepted...EXAMP\n-00002f20: 4c45 0a20 2020 2020 2020 2020 2064 6563 LE. dec\n-00002f30: 6c61 7265 0a20 2020 2020 2020 2020 2020 lare. \n-00002f40: 2020 536f 636b 2020 2020 203a 2053 6f63 Sock : Soc\n-00002f50: 6b65 745f 4644 3b0a 2020 2020 2020 2020 ket_FD;. \n-00002f60: 2020 2020 2049 6e63 6f6d 696e 6720 3a20 Incoming : \n-00002f70: 536f 636b 6574 5f46 443b 0a20 2020 2020 Socket_FD;. \n-00002f80: 2020 2020 2062 6567 696e 0a20 2020 2020 begin. \n-00002f90: 2020 2020 2020 2020 2d2d 2043 7265 6174 -- Creat\n-00002fa0: 6520 6120 5443 5020 736f 636b 6574 206c e a TCP socket l\n-00002fb0: 6973 7465 6e69 6e67 206f 6e20 6c6f 6361 istening on loca\n-00002fc0: 6c20 706f 7274 2034 3136 310a 2020 2020 l port 4161. \n-00002fd0: 2020 2020 2020 2020 2053 6f63 6b65 7420 Socket \n-00002fe0: 2853 6f63 6b2c 2050 465f 494e 4554 2c20 (Sock, PF_INET, \n-00002ff0: 534f 434b 5f53 5452 4541 4d29 3b0a 2020 SOCK_STREAM);. \n-00003000: 2020 2020 2020 2020 2020 2042 696e 6420 Bind \n-00003010: 2853 6f63 6b2c 2034 3136 3129 3b0a 2020 (Sock, 4161);. \n-00003020: 2020 2020 2020 2020 2020 204c 6973 7465 Liste\n-00003030: 6e20 2853 6f63 6b2c 2033 293b 0a20 2020 n (Sock, 3);. \n-00003040: 2020 2020 2020 2020 2020 2d2d 204f 6e65 -- One\n-00003050: 2d63 6f6e 6e65 6374 696f 6e2d 6174 2d61 -connection-at-a\n-00003060: 2d74 696d 6520 7365 7276 6572 2028 3320 -time server (3 \n-00003070: 6d61 7920 6265 2070 656e 6469 6e67 290a may be pending).\n-00003080: 2020 2020 2020 2020 2020 2020 206c 6f6f loo\n-00003090: 700a 2020 2020 2020 2020 2020 2020 2020 p. \n-000030a0: 2020 2d2d 2057 6169 7420 666f 7220 6120 -- Wait for a \n-000030b0: 6e65 7720 636f 6e6e 6563 7469 6f6e 2061 new connection a\n-000030c0: 6e64 2061 6363 6570 7420 6974 0a20 2020 nd accept it. \n-000030d0: 2020 2020 2020 2020 2020 2020 2041 6363 Acc\n-000030e0: 6570 745f 536f 636b 6574 2028 536f 636b ept_Socket (Sock\n-000030f0: 2c20 496e 636f 6d69 6e67 293b 0a20 2020 , Incoming);. \n-00003100: 2020 2020 2020 2020 2020 2020 202d 2d20 -- \n-00003110: 446f 2073 6f6d 6520 6469 616c 6f67 2077 Do some dialog w\n-00003120: 6974 6820 7468 6520 7265 6d6f 7465 2068 ith the remote h\n-00003130: 6f73 740a 2020 2020 2020 2020 2020 2020 ost. \n-00003140: 2020 2020 446f 5f53 6f6d 655f 4469 616c Do_Some_Dial\n-00003150: 6f67 2028 496e 636f 6d69 6e67 293b 0a20 og (Incoming);. \n-00003160: 2020 2020 2020 2020 2020 2020 2020 202d -\n-00003170: 2d20 436c 6f73 6520 696e 636f 6d69 6e67 - Close incoming\n-00003180: 2073 6f63 6b65 7420 616e 6420 7761 6974 socket and wait\n-00003190: 2066 6f72 206e 6578 7420 636f 6e6e 6563 for next connec\n-000031a0: 7469 6f6e 0a20 2020 2020 2020 2020 2020 tion. \n-000031b0: 2020 2020 2053 6875 7464 6f77 6e20 2849 Shutdown (I\n-000031c0: 6e63 6f6d 696e 6729 3b0a 2020 2020 2020 ncoming);. \n-000031d0: 2020 2020 2020 2065 6e64 206c 6f6f 703b end loop;\n-000031e0: 0a20 2020 2020 2020 2020 2065 6e64 3b0a . end;.\n-000031f0: 0a53 4545 2041 4c53 4f0a 2020 2020 202a .SEE ALSO. *\n-00003200: 6e6f 7465 2042 696e 6420 2870 726f 6365 note Bind (proce\n-00003210: 6475 7265 293a 3a2c 0a20 2020 2020 2a6e dure)::,. *n\n-00003220: 6f74 6520 4c69 7374 656e 2028 7072 6f63 ote Listen (proc\n-00003230: 6564 7572 6529 3a3a 2c0a 2020 2020 202a edure)::,. *\n-00003240: 6e6f 7465 2053 6875 7464 6f77 6e20 2870 note Shutdown (p\n-00003250: 726f 6365 6475 7265 293a 3a2c 0a20 2020 rocedure)::,. \n-00003260: 2020 2a6e 6f74 6520 536f 636b 6574 2028 *note Socket (\n-00003270: 7072 6f63 6564 7572 6529 3a3a 2e0a 0a2a procedure)::...*\n-00003280: 204d 656e 753a 0a0a 2a20 4269 6e64 2028 Menu:..* Bind (\n-00003290: 7072 6f63 6564 7572 6529 3a3a 0a2a 2043 procedure)::.* C\n-000032a0: 6f6e 6e65 6374 2028 7072 6f63 6564 7572 onnect (procedur\n-000032b0: 6529 3a3a 0a2a 2047 6574 2028 6675 6e63 e)::.* Get (func\n-000032c0: 7469 6f6e 293a 3a0a 2a20 4765 745f 4368 tion)::.* Get_Ch\n-000032d0: 6172 2028 6675 6e63 7469 6f6e 293a 3a0a ar (function)::.\n-000032e0: 2a20 4765 745f 4c69 6e65 2028 6675 6e63 * Get_Line (func\n-000032f0: 7469 6f6e 293a 3a0a 2a20 4765 745f 4c69 tion)::.* Get_Li\n-00003300: 6e65 2028 7072 6f63 6564 7572 6529 3a3a ne (procedure)::\n-00003310: 0a2a 2047 6574 5f52 6563 6569 7665 5f51 .* Get_Receive_Q\n-00003320: 7565 7565 5f53 697a 6520 2866 756e 6374 ueue_Size (funct\n-00003330: 696f 6e29 3a3a 0a2a 2047 6574 5f53 656e ion)::.* Get_Sen\n-00003340: 645f 5175 6575 655f 5369 7a65 2028 6675 d_Queue_Size (fu\n-00003350: 6e63 7469 6f6e 293a 3a0a 2a20 4765 7473 nction)::.* Gets\n-00003360: 6f63 6b6f 7074 2028 7072 6f63 6564 7572 ockopt (procedur\n-00003370: 6529 3a3a 0a2a 204c 6973 7465 6e20 2870 e)::.* Listen (p\n-00003380: 726f 6365 6475 7265 293a 3a0a 2a20 4e65 rocedure)::.* Ne\n-00003390: 775f 4c69 6e65 2028 7072 6f63 6564 7572 w_Line (procedur\n-000033a0: 6529 3a3a 0a2a 2050 7574 2028 7072 6f63 e)::.* Put (proc\n-000033b0: 6564 7572 6529 3a3a 0a2a 2050 7574 5f4c edure)::.* Put_L\n-000033c0: 696e 6520 2870 726f 6365 6475 7265 293a ine (procedure):\n-000033d0: 3a0a 2a20 5265 6365 6976 6520 2866 756e :.* Receive (fun\n-000033e0: 6374 696f 6e29 3a3a 0a2a 2052 6563 6569 ction)::.* Recei\n-000033f0: 7665 2028 7072 6f63 6564 7572 6529 3a3a ve (procedure)::\n-00003400: 0a2a 2052 6563 6569 7665 5f53 6f6d 6520 .* Receive_Some \n-00003410: 2870 726f 6365 6475 7265 293a 3a0a 2a20 (procedure)::.* \n-00003420: 5365 6e64 2028 7072 6f63 6564 7572 6529 Send (procedure)\n-00003430: 3a3a 0a2a 2053 6574 5f42 7566 6665 7220 ::.* Set_Buffer \n-00003440: 2870 726f 6365 6475 7265 293a 3a0a 2a20 (procedure)::.* \n-00003450: 5365 7473 6f63 6b6f 7074 2028 7072 6f63 Setsockopt (proc\n-00003460: 6564 7572 6529 3a3a 0a2a 2053 6875 7464 edure)::.* Shutd\n-00003470: 6f77 6e20 2870 726f 6365 6475 7265 293a own (procedure):\n-00003480: 3a0a 2a20 536f 636b 6574 2028 7072 6f63 :.* Socket (proc\n-00003490: 6564 7572 6529 3a3a 0a2a 2055 6e73 6574 edure)::.* Unset\n-000034a0: 5f42 7566 6665 7220 2870 726f 6365 6475 _Buffer (procedu\n-000034b0: 7265 293a 3a0a 0a1f 0a46 696c 653a 2061 re)::....File: a\n-000034c0: 6461 736f 636b 6574 732e 696e 666f 2c20 dasockets.info, \n-000034d0: 204e 6f64 653a 2042 696e 6420 2870 726f Node: Bind (pro\n-000034e0: 6365 6475 7265 292c 2020 4e65 7874 3a20 cedure), Next: \n-000034f0: 436f 6e6e 6563 7420 2870 726f 6365 6475 Connect (procedu\n-00003500: 7265 292c 2020 5072 6576 3a20 4163 6365 re), Prev: Acce\n-00003510: 7074 5f53 6f63 6b65 7420 2870 726f 6365 pt_Socket (proce\n-00003520: 6475 7265 292c 2020 5570 3a20 4163 6365 dure), Up: Acce\n-00003530: 7074 5f53 6f63 6b65 7420 2870 726f 6365 pt_Socket (proce\n-00003540: 6475 7265 290a 0a42 696e 6420 2870 726f dure)..Bind (pro\n-00003550: 6365 6475 7265 290a 2d2d 2d2d 2d2d 2d2d cedure).--------\n-00003560: 2d2d 2d2d 2d2d 2d2d 0a0a 5055 5250 4f53 --------..PURPOS\n-00003570: 450a 2020 2020 2041 7373 6f63 6961 7465 E. Associate\n-00003580: 2061 206c 6f63 616c 2070 6f72 7420 746f a local port to\n-00003590: 2061 2073 6f63 6b65 740a 5052 4f54 4f54 a socket.PROTOT\n-000035a0: 5950 450a 2020 2020 2020 2d2d 2053 6f63 YPE. -- Soc\n-000035b0: 6b65 7473 2e42 696e 643a 2070 726f 6365 kets.Bind: proce\n-000035c0: 6475 7265 2042 696e 6420 2853 4f43 4b45 dure Bind (SOCKE\n-000035d0: 5420 3a20 536f 636b 6574 5f46 443b 0a20 T : Socket_FD;. \n-000035e0: 2020 2020 2020 2020 2020 2020 2020 504f PO\n-000035f0: 5254 203a 204e 6174 7572 616c 3b20 484f RT : Natural; HO\n-00003600: 5354 203a 2053 7472 696e 6720 3a3d 2022 ST : String := \"\n-00003610: 2229 3b0a 0a50 4152 414d 4554 4552 530a \");..PARAMETERS.\n-00003620: 2020 2020 2053 4f43 4b45 5420 2020 2020 SOCKET \n-00003630: 696e 2020 2020 2020 2020 2049 6e69 7469 in Initi\n-00003640: 616c 697a 6564 2073 6f63 6b65 7420 6f62 alized socket ob\n-00003650: 6a65 6374 0a20 2020 2020 504f 5254 2020 ject. PORT \n-00003660: 2020 2020 2069 6e20 2020 2020 2020 2020 in \n-00003670: 4c6f 6361 6c20 706f 7274 2074 6f20 6269 Local port to bi\n-00003680: 6e64 2074 6f0a 2020 2020 2048 4f53 5420 nd to. HOST \n-00003690: 2020 2020 2020 696e 2020 2020 2020 2020 in \n-000036a0: 204c 6f63 616c 2069 6e74 6572 6661 6365 Local interface\n-000036b0: 2074 6f20 6269 6e64 2074 6f0a 0a44 4553 to bind to..DES\n-000036c0: 4352 4950 5449 4f4e 0a20 2020 2020 5468 CRIPTION. Th\n-000036d0: 6973 2070 726f 6365 6475 7265 2072 6571 is procedure req\n-000036e0: 7565 7374 7320 6120 6c6f 6361 6c20 706f uests a local po\n-000036f0: 7274 2066 726f 6d20 7468 6520 6f70 6572 rt from the oper\n-00003700: 6174 696e 6720 7379 7374 656d 2e20 2049 ating system. I\n-00003710: 660a 2020 2020 2030 2069 7320 6769 7665 f. 0 is give\n-00003720: 6e20 696e 2050 4f52 542c 2074 6865 2073 n in PORT, the s\n-00003730: 7973 7465 6d20 7769 6c6c 2061 7373 6967 ystem will assig\n-00003740: 6e20 6120 6672 6565 2070 6f72 7420 7768 n a free port wh\n-00003750: 6f73 6520 6e75 6d62 6572 0a20 2020 2020 ose number. \n-00003760: 6361 6e20 6c61 7465 7220 6265 2072 6574 can later be ret\n-00003770: 7269 6576 6564 2075 7369 6e67 202a 6e6f rieved using *no\n-00003780: 7465 2047 6574 5f53 6f63 6b5f 506f 7274 te Get_Sock_Port\n-00003790: 2028 6675 6e63 7469 6f6e 293a 3a2e 0a20 (function)::.. \n-000037a0: 2020 2020 416c 736f 2c20 6d6f 7374 206f Also, most o\n-000037b0: 7065 7261 7469 6e67 2073 7973 7465 6d73 perating systems\n-000037c0: 2072 6571 7569 7265 2073 7065 6369 616c require special\n-000037d0: 2070 7269 7669 6c65 6765 7320 6966 2079 privileges if y\n-000037e0: 6f75 2077 616e 740a 2020 2020 2074 6f20 ou want. to \n-000037f0: 6269 6e64 2074 6f20 706f 7274 7320 6265 bind to ports be\n-00003800: 6c6f 7720 3130 3234 2e0a 0a20 2020 2020 low 1024... \n-00003810: 4966 2048 4f53 5420 6973 206e 6f74 2074 If HOST is not t\n-00003820: 6865 2065 6d70 7479 2073 7472 696e 672c he empty string,\n-00003830: 2069 7420 6d75 7374 2063 6f6e 7461 696e it must contain\n-00003840: 2074 6865 2049 5020 6164 6472 6573 7320 the IP address \n-00003850: 6f66 0a20 2020 2020 6120 6c6f 6361 6c20 of. a local \n-00003860: 696e 7465 7266 6163 6520 746f 2062 696e interface to bin\n-00003870: 6420 746f 2c20 6f72 2061 206e 616d 6520 d to, or a name \n-00003880: 7768 6963 6820 7265 736f 6c76 6573 2069 which resolves i\n-00003890: 6e74 6f20 7375 6368 2061 6e0a 2020 2020 nto such an. \n-000038a0: 2061 6464 7265 7373 2e20 2049 6620 616e address. If an\n-000038b0: 2065 6d70 7479 2073 7472 696e 6720 6973 empty string is\n-000038c0: 2067 6976 656e 2028 7468 6520 6465 6661 given (the defa\n-000038d0: 756c 7429 2c20 7468 6520 736f 636b 6574 ult), the socket\n-000038e0: 0a20 2020 2020 7769 6c6c 2062 6520 626f . will be bo\n-000038f0: 756e 6420 746f 2061 6c6c 2074 6865 2061 und to all the a\n-00003900: 7661 696c 6162 6c65 2069 6e74 6572 6661 vailable interfa\n-00003910: 6365 732e 0a0a 4558 4345 5054 494f 4e53 ces...EXCEPTIONS\n-00003920: 0a20 2020 2020 e280 9853 6f63 6b65 745f . ...Socket_\n-00003930: 4572 726f 72e2 8099 2020 2020 2052 6571 Error... Req\n-00003940: 7565 7374 6564 2070 6f72 7420 6f72 2069 uested port or i\n-00003950: 6e74 6572 6661 6365 206e 6f74 2061 7661 nterface not ava\n-00003960: 696c 6162 6c65 0a0a 5345 4520 414c 534f ilable..SEE ALSO\n-00003970: 0a20 2020 2020 2a6e 6f74 6520 4c69 7374 . *note List\n-00003980: 656e 2028 7072 6f63 6564 7572 6529 3a3a en (procedure)::\n-00003990: 2c0a 2020 2020 202a 6e6f 7465 2053 6f63 ,. *note Soc\n-000039a0: 6b65 7420 2870 726f 6365 6475 7265 293a ket (procedure):\n-000039b0: 3a2e 0a0a 1f0a 4669 6c65 3a20 6164 6173 :.....File: adas\n-000039c0: 6f63 6b65 7473 2e69 6e66 6f2c 2020 4e6f ockets.info, No\n-000039d0: 6465 3a20 436f 6e6e 6563 7420 2870 726f de: Connect (pro\n-000039e0: 6365 6475 7265 292c 2020 4e65 7874 3a20 cedure), Next: \n-000039f0: 4765 7420 2866 756e 6374 696f 6e29 2c20 Get (function), \n-00003a00: 2050 7265 763a 2042 696e 6420 2870 726f Prev: Bind (pro\n-00003a10: 6365 6475 7265 292c 2020 5570 3a20 4163 cedure), Up: Ac\n-00003a20: 6365 7074 5f53 6f63 6b65 7420 2870 726f cept_Socket (pro\n-00003a30: 6365 6475 7265 290a 0a43 6f6e 6e65 6374 cedure)..Connect\n-00003a40: 2028 7072 6f63 6564 7572 6529 0a2d 2d2d (procedure).---\n-00003a50: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-00003a60: 0a0a 5055 5250 4f53 450a 2020 2020 2043 ..PURPOSE. C\n-00003a70: 6f6e 6e65 6374 2061 2073 6f63 6b65 7420 onnect a socket \n-00003a80: 6f6e 2061 2067 6976 656e 2068 6f73 742f on a given host/\n-00003a90: 706f 7274 0a50 524f 544f 5459 5045 0a20 port.PROTOTYPE. \n-00003aa0: 2020 2020 202d 2d20 536f 636b 6574 732e -- Sockets.\n-00003ab0: 436f 6e6e 6563 743a 2070 726f 6365 6475 Connect: procedu\n-00003ac0: 7265 2043 6f6e 6e65 6374 2028 534f 434b re Connect (SOCK\n-00003ad0: 4554 203a 2053 6f63 6b65 745f 4644 3b0a ET : Socket_FD;.\n-00003ae0: 2020 2020 2020 2020 2020 2020 2020 2048 H\n-00003af0: 4f53 5420 3a20 5374 7269 6e67 3b20 504f OST : String; PO\n-00003b00: 5254 203a 2050 6f73 6974 6976 6529 3b0a RT : Positive);.\n-00003b10: 0a50 4152 414d 4554 4552 530a 2020 2020 .PARAMETERS. \n-00003b20: 2053 4f43 4b45 5420 2020 2020 696e 2020 SOCKET in \n-00003b30: 2020 2020 2020 2049 6e69 7469 616c 697a Initializ\n-00003b40: 6564 2073 6f63 6b65 7420 6f62 6a65 6374 ed socket object\n-00003b50: 0a20 2020 2020 484f 5354 2020 2020 2020 . HOST \n-00003b60: 2069 6e20 2020 2020 2020 2020 486f 7374 in Host\n-00003b70: 2074 6f20 636f 6e6e 6563 7420 746f 0a20 to connect to. \n-00003b80: 2020 2020 504f 5254 2020 2020 2020 2069 PORT i\n-00003b90: 6e20 2020 2020 2020 2020 506f 7274 2074 n Port t\n-00003ba0: 6f20 636f 6e6e 6563 7420 746f 0a0a 4445 o connect to..DE\n-00003bb0: 5343 5249 5054 494f 4e0a 2020 2020 2054 SCRIPTION. T\n-00003bc0: 6869 7320 7072 6f63 6564 7572 6520 636f his procedure co\n-00003bd0: 6e6e 6563 7473 2061 6e20 696e 6974 6961 nnects an initia\n-00003be0: 6c69 7a65 6420 736f 636b 6574 2074 6f20 lized socket to \n-00003bf0: 6120 6769 7665 6e20 686f 7374 206f 6e20 a given host on \n-00003c00: 610a 2020 2020 2067 6976 656e 2070 6f72 a. given por\n-00003c10: 742e 2020 496e 2074 6865 2063 6173 6520 t. In the case \n-00003c20: 6f66 2061 2054 4350 2073 6f63 6b65 742c of a TCP socket,\n-00003c30: 2061 2072 6561 6c20 636f 6e6e 6563 7469 a real connecti\n-00003c40: 6f6e 2069 730a 2020 2020 2061 7474 656d on is. attem\n-00003c50: 7074 6564 2e20 2049 6e20 7468 6520 6361 pted. In the ca\n-00003c60: 7365 206f 6620 6120 5544 5020 736f 636b se of a UDP sock\n-00003c70: 6574 2c20 6e6f 2063 6f6e 6e65 6374 696f et, no connectio\n-00003c80: 6e20 7461 6b65 7320 706c 6163 650a 2020 n takes place. \n-00003c90: 2020 2062 7574 2074 6865 2065 6e64 706f but the endpo\n-00003ca0: 696e 7420 636f 6f72 6469 6e61 7465 7320 int coordinates \n-00003cb0: 6172 6520 7265 636f 7264 6564 2e0a 0a45 are recorded...E\n-00003cc0: 5843 4550 5449 4f4e 530a 2020 2020 20e2 XCEPTIONS. .\n-00003cd0: 8098 436f 6e6e 6563 7469 6f6e 5f52 6566 ..Connection_Ref\n-00003ce0: 7573 6564 e280 9954 6865 2063 6f6e 6e65 used...The conne\n-00003cf0: 6374 696f 6e20 6861 7320 6265 656e 2072 ction has been r\n-00003d00: 6566 7573 6564 2062 7920 7468 650a 2020 efused by the. \n-00003d10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00003d20: 2020 2020 2020 7365 7276 6572 0a20 2020 server. \n-00003d30: 2020 e280 9853 6f63 6b65 745f 4572 726f ...Socket_Erro\n-00003d40: 72e2 8099 2020 2020 2041 6e6f 7468 6572 r... Another\n-00003d50: 2065 7272 6f72 206f 6363 7572 7265 6420 error occurred \n-00003d60: 6475 7269 6e67 2074 6865 0a20 2020 2020 during the. \n-00003d70: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00003d80: 2020 2063 6f6e 6e65 6374 696f 6e0a 0a45 connection..E\n-00003d90: 5841 4d50 4c45 0a20 2020 2020 2020 2020 XAMPLE. \n-00003da0: 2064 6563 6c61 7265 0a20 2020 2020 2020 declare. \n-00003db0: 2020 2020 2020 536f 636b 203a 2053 6f63 Sock : Soc\n-00003dc0: 6b65 745f 4644 3b0a 2020 2020 2020 2020 ket_FD;. \n-00003dd0: 2020 6265 6769 6e0a 2020 2020 2020 2020 begin. \n-00003de0: 2020 2020 202d 2d20 4372 6561 7465 2061 -- Create a\n-00003df0: 2054 4350 2073 6f63 6b65 740a 2020 2020 TCP socket. \n-00003e00: 2020 2020 2020 2020 2053 6f63 6b65 7420 Socket \n-00003e10: 2853 6f63 6b2c 2050 465f 494e 4554 2c20 (Sock, PF_INET, \n-00003e20: 534f 434b 5f53 5452 4541 4d29 3b0a 2020 SOCK_STREAM);. \n-00003e30: 2020 2020 2020 2020 2020 202d 2d20 436f -- Co\n-00003e40: 6e6e 6563 7420 6974 2074 6f20 7266 6331 nnect it to rfc1\n-00003e50: 3134 392e 6e65 7427 7320 6d61 696c 2073 149.net's mail s\n-00003e60: 6572 7665 720a 2020 2020 2020 2020 2020 erver. \n-00003e70: 2020 2043 6f6e 6e65 6374 2028 536f 636b Connect (Sock\n-00003e80: 2c20 226d 6169 6c2e 7266 6331 3134 392e , \"mail.rfc1149.\n-00003e90: 6e65 7422 2c20 3235 293b 0a20 2020 2020 net\", 25);. \n-00003ea0: 2020 2020 2020 2020 2d2d 2044 6f20 6120 -- Do a \n-00003eb0: 6d61 696c 2074 7261 6e73 6163 7469 6f6e mail transaction\n-00003ec0: 2074 6865 6e20 636c 6f73 6520 7468 6520 then close the \n-00003ed0: 736f 636b 6574 0a20 2020 2020 2020 2020 socket. \n-00003ee0: 2020 2020 5b2e 2e2e 5d0a 2020 2020 2020 [...]. \n-00003ef0: 2020 2020 656e 643b 0a0a 5345 4520 414c end;..SEE AL\n-00003f00: 534f 0a20 2020 2020 2a6e 6f74 6520 536f SO. *note So\n-00003f10: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n-00003f20: 3a3a 2e0a 0a1f 0a46 696c 653a 2061 6461 ::.....File: ada\n-00003f30: 736f 636b 6574 732e 696e 666f 2c20 204e sockets.info, N\n-00003f40: 6f64 653a 2047 6574 2028 6675 6e63 7469 ode: Get (functi\n-00003f50: 6f6e 292c 2020 4e65 7874 3a20 4765 745f on), Next: Get_\n-00003f60: 4368 6172 2028 6675 6e63 7469 6f6e 292c Char (function),\n-00003f70: 2020 5072 6576 3a20 436f 6e6e 6563 7420 Prev: Connect \n-00003f80: 2870 726f 6365 6475 7265 292c 2020 5570 (procedure), Up\n-00003f90: 3a20 4163 6365 7074 5f53 6f63 6b65 7420 : Accept_Socket \n-00003fa0: 2870 726f 6365 6475 7265 290a 0a47 6574 (procedure)..Get\n-00003fb0: 2028 6675 6e63 7469 6f6e 290a 2d2d 2d2d (function).----\n-00003fc0: 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 5055 5250 ----------..PURP\n-00003fd0: 4f53 450a 2020 2020 2047 6574 2061 2073 OSE. Get a s\n-00003fe0: 7472 696e 6720 6672 6f6d 2061 2072 656d tring from a rem\n-00003ff0: 6f74 6520 686f 7374 0a50 524f 544f 5459 ote host.PROTOTY\n-00004000: 5045 0a20 2020 2020 202d 2d20 536f 636b PE. -- Sock\n-00004010: 6574 732e 4765 743a 2066 756e 6374 696f ets.Get: functio\n-00004020: 6e20 4765 7420 2853 4f43 4b45 5420 3a20 n Get (SOCKET : \n-00004030: 536f 636b 6574 5f46 4427 436c 6173 7329 Socket_FD'Class)\n-00004040: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-00004050: 7265 7475 726e 2053 7472 696e 673b 0a0a return String;..\n-00004060: 5041 5241 4d45 5445 5253 0a20 2020 2020 PARAMETERS. \n-00004070: 534f 434b 4554 2020 2020 2069 6e20 2020 SOCKET in \n-00004080: 2020 2020 2020 496e 6974 6961 6c69 7a65 Initialize\n-00004090: 6420 616e 6420 636f 6e6e 6563 7465 6420 d and connected \n-000040a0: 736f 636b 6574 206f 626a 6563 740a 0a52 socket object..R\n-000040b0: 4554 5552 4e20 5641 4c55 450a 2020 2020 ETURN VALUE. \n-000040c0: 2053 6f6d 6520 6368 6172 6163 7465 7273 Some characters\n-000040d0: 2074 6861 7420 6861 7665 2062 6565 6e20 that have been \n-000040e0: 7265 6365 6976 6564 0a0a 4445 5343 5249 received..DESCRI\n-000040f0: 5054 494f 4e0a 2020 2020 2054 6869 7320 PTION. This \n-00004100: 6675 6e63 7469 6f6e 2072 6563 6569 7665 function receive\n-00004110: 7320 736f 6d65 2063 6861 7261 6374 6572 s some character\n-00004120: 7320 6672 6f6d 2061 2072 656d 6f74 6520 s from a remote \n-00004130: 686f 7374 2e20 2041 7320 736f 6f6e 0a20 host. As soon. \n-00004140: 2020 2020 7468 6174 2061 7420 6c65 6173 that at leas\n-00004150: 7420 6f6e 6520 6368 6172 6163 7465 7220 t one character \n-00004160: 6973 2061 7661 696c 6162 6c65 2c20 7468 is available, th\n-00004170: 6520 6375 7272 656e 7420 7265 6365 7074 e current recept\n-00004180: 696f 6e0a 2020 2020 2062 7566 6665 7220 ion. buffer \n-00004190: 6973 2072 6574 7572 6e65 642e 0a0a 2020 is returned... \n-000041a0: 2020 2054 6865 7265 2069 7320 7573 7561 There is usua\n-000041b0: 6c6c 7920 6c69 7474 6c65 2067 6169 6e20 lly little gain \n-000041c0: 696e 2075 7369 6e67 2074 6869 7320 6675 in using this fu\n-000041d0: 6e63 7469 6f6e 2077 686f 7365 2062 6568 nction whose beh\n-000041e0: 6176 696f 7572 0a20 2020 2020 6973 2063 aviour. is c\n-000041f0: 6f6d 7061 7261 626c 6520 746f 2074 6865 omparable to the\n-00004200: 206f 6e65 206f 6620 2a6e 6f74 6520 5265 one of *note Re\n-00004210: 6365 6976 6520 2866 756e 6374 696f 6e29 ceive (function)\n-00004220: 3a3a 2e20 204f 7468 6572 0a20 2020 2020 ::. Other. \n-00004230: 6675 6e63 7469 6f6e 7320 7375 6368 2061 functions such a\n-00004240: 7320 2a6e 6f74 6520 4765 745f 4368 6172 s *note Get_Char\n-00004250: 2028 6675 6e63 7469 6f6e 293a 3a2c 206f (function)::, o\n-00004260: 7220 2a6e 6f74 6520 4765 745f 4c69 6e65 r *note Get_Line\n-00004270: 0a20 2020 2020 2866 756e 6374 696f 6e29 . (function)\n-00004280: 3a3a 2c20 616c 6c6f 7720 6d6f 7265 2073 ::, allow more s\n-00004290: 7472 7563 7475 7265 6420 7072 6f67 7261 tructured progra\n-000042a0: 6d6d 696e 672e 0a0a 2020 2020 2048 6f77 mming... How\n-000042b0: 6576 6572 2c20 7468 6973 2066 756e 6374 ever, this funct\n-000042c0: 696f 6e20 6d61 7920 6265 2075 7365 6420 ion may be used \n-000042d0: 746f 2061 766f 6964 206c 6f6f 7369 6e67 to avoid loosing\n-000042e0: 2063 6861 7261 6374 6572 7320 7768 656e characters when\n-000042f0: 0a20 2020 2020 6361 6c6c 696e 6720 2a6e . calling *n\n-00004300: 6f74 6520 556e 7365 745f 4275 6666 6572 ote Unset_Buffer\n-00004310: 2028 7072 6f63 6564 7572 6529 3a3a 2c20 (procedure)::, \n-00004320: 6966 2c20 666f 7220 736f 6d65 2072 6561 if, for some rea\n-00004330: 736f 6e2c 2074 6865 0a20 2020 2020 7265 son, the. re\n-00004340: 6d6f 7465 2068 6f73 7420 6d61 7920 6861 mote host may ha\n-00004350: 7665 2073 656e 7420 736f 6d65 2e0a 0a45 ve sent some...E\n-00004360: 5843 4550 5449 4f4e 530a 2020 2020 20e2 XCEPTIONS. .\n-00004370: 8098 436f 6e6e 6563 7469 6f6e 5f43 6c6f ..Connection_Clo\n-00004380: 7365 64e2 8099 5065 6572 2068 6173 2063 sed...Peer has c\n-00004390: 6c6f 7365 6420 7468 6520 636f 6e6e 6563 losed the connec\n-000043a0: 7469 6f6e 2062 6566 6f72 650a 2020 2020 tion before. \n-000043b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-000043c0: 2020 2020 7365 6e64 696e 6720 616e 7920 sending any \n-000043d0: 6461 7461 0a0a 1f0a 4669 6c65 3a20 6164 data....File: ad\n-000043e0: 6173 6f63 6b65 7473 2e69 6e66 6f2c 2020 asockets.info, \n-000043f0: 4e6f 6465 3a20 4765 745f 4368 6172 2028 Node: Get_Char (\n-00004400: 6675 6e63 7469 6f6e 292c 2020 4e65 7874 function), Next\n-00004410: 3a20 4765 745f 4c69 6e65 2028 6675 6e63 : Get_Line (func\n-00004420: 7469 6f6e 292c 2020 5072 6576 3a20 4765 tion), Prev: Ge\n-00004430: 7420 2866 756e 6374 696f 6e29 2c20 2055 t (function), U\n-00004440: 703a 2041 6363 6570 745f 536f 636b 6574 p: Accept_Socket\n-00004450: 2028 7072 6f63 6564 7572 6529 0a0a 4765 (procedure)..Ge\n-00004460: 745f 4368 6172 2028 6675 6e63 7469 6f6e t_Char (function\n-00004470: 290a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ).--------------\n-00004480: 2d2d 2d2d 2d0a 0a50 5552 504f 5345 0a20 -----..PURPOSE. \n-00004490: 2020 2020 4765 7420 6120 6368 6172 6163 Get a charac\n-000044a0: 7465 7220 6672 6f6d 2061 2072 656d 6f74 ter from a remot\n-000044b0: 6520 686f 7374 0a50 524f 544f 5459 5045 e host.PROTOTYPE\n-000044c0: 0a20 2020 2020 202d 2d20 536f 636b 6574 . -- Socket\n-000044d0: 732e 4765 745f 4368 6172 3a20 6675 6e63 s.Get_Char: func\n-000044e0: 7469 6f6e 2047 6574 5f43 6861 7220 2853 tion Get_Char (S\n-000044f0: 4f43 4b45 5420 3a20 536f 636b 6574 5f46 OCKET : Socket_F\n-00004500: 4427 436c 6173 7329 0a20 2020 2020 2020 D'Class). \n-00004510: 2020 2020 2020 2020 7265 7475 726e 2043 return C\n-00004520: 6861 7261 6374 6572 3b0a 0a50 4152 414d haracter;..PARAM\n-00004530: 4554 4552 530a 2020 2020 2053 4f43 4b45 ETERS. SOCKE\n-00004540: 5420 2020 2020 696e 2020 2020 2020 2020 T in \n-00004550: 2049 6e69 7469 616c 697a 6564 2061 6e64 Initialized and\n-00004560: 2063 6f6e 6e65 6374 6564 2073 6f63 6b65 connected socke\n-00004570: 7420 6f62 6a65 6374 0a0a 5245 5455 524e t object..RETURN\n-00004580: 2056 414c 5545 0a20 2020 2020 4f6e 6520 VALUE. One \n-00004590: 6368 6172 6163 7465 7220 7365 6e74 2062 character sent b\n-000045a0: 7920 7468 6520 7265 6d6f 7465 2068 6f73 y the remote hos\n-000045b0: 740a 0a44 4553 4352 4950 5449 4f4e 0a20 t..DESCRIPTION. \n-000045c0: 2020 2020 5468 6973 2066 756e 6374 696f This functio\n-000045d0: 6e20 7265 6365 6976 6573 2065 7861 6374 n receives exact\n-000045e0: 6c79 206f 6e65 2063 6861 7261 6374 6572 ly one character\n-000045f0: 2066 726f 6d20 7468 6520 7265 6d6f 7465 from the remote\n-00004600: 2068 6f73 742e 0a0a 4558 4345 5054 494f host...EXCEPTIO\n-00004610: 4e53 0a20 2020 2020 e280 9843 6f6e 6e65 NS. ...Conne\n-00004620: 6374 696f 6e5f 436c 6f73 6564 e280 9950 ction_Closed...P\n-00004630: 6565 7220 6861 7320 636c 6f73 6564 2074 eer has closed t\n-00004640: 6865 2063 6f6e 6e65 6374 696f 6e20 6265 he connection be\n-00004650: 666f 7265 0a20 2020 2020 2020 2020 2020 fore. \n-00004660: 2020 2020 2020 2020 2020 2020 2073 656e sen\n-00004670: 6469 6e67 2074 6865 2063 6861 7261 6374 ding the charact\n-00004680: 6572 0a0a 5345 4520 414c 534f 0a20 2020 er..SEE ALSO. \n-00004690: 2020 2a6e 6f74 6520 4765 7420 2866 756e *note Get (fun\n-000046a0: 6374 696f 6e29 3a3a 2c0a 2020 2020 202a ction)::,. *\n-000046b0: 6e6f 7465 2047 6574 5f4c 696e 6520 2866 note Get_Line (f\n-000046c0: 756e 6374 696f 6e29 3a3a 2c0a 2020 2020 unction)::,. \n-000046d0: 202a 6e6f 7465 2047 6574 5f4c 696e 6520 *note Get_Line \n-000046e0: 2870 726f 6365 6475 7265 293a 3a2c 0a20 (procedure)::,. \n-000046f0: 2020 2020 2a6e 6f74 6520 5265 6365 6976 *note Receiv\n-00004700: 6520 2870 726f 6365 6475 7265 293a 3a2c e (procedure)::,\n-00004710: 0a20 2020 2020 2a6e 6f74 6520 5365 745f . *note Set_\n-00004720: 4275 6666 6572 2028 7072 6f63 6564 7572 Buffer (procedur\n-00004730: 6529 3a3a 2e0a 0a1f 0a46 696c 653a 2061 e)::.....File: a\n-00004740: 6461 736f 636b 6574 732e 696e 666f 2c20 dasockets.info, \n-00004750: 204e 6f64 653a 2047 6574 5f4c 696e 6520 Node: Get_Line \n-00004760: 2866 756e 6374 696f 6e29 2c20 204e 6578 (function), Nex\n-00004770: 743a 2047 6574 5f4c 696e 6520 2870 726f t: Get_Line (pro\n-00004780: 6365 6475 7265 292c 2020 5072 6576 3a20 cedure), Prev: \n-00004790: 4765 745f 4368 6172 2028 6675 6e63 7469 Get_Char (functi\n-000047a0: 6f6e 292c 2020 5570 3a20 4163 6365 7074 on), Up: Accept\n-000047b0: 5f53 6f63 6b65 7420 2870 726f 6365 6475 _Socket (procedu\n-000047c0: 7265 290a 0a47 6574 5f4c 696e 6520 2866 re)..Get_Line (f\n-000047d0: 756e 6374 696f 6e29 0a2d 2d2d 2d2d 2d2d unction).-------\n-000047e0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 5055 ------------..PU\n-000047f0: 5250 4f53 450a 2020 2020 2047 6574 2061 RPOSE. Get a\n-00004800: 2077 686f 6c65 206c 696e 6520 6672 6f6d whole line from\n-00004810: 2061 2072 656d 6f74 6520 686f 7374 0a50 a remote host.P\n-00004820: 524f 544f 5459 5045 0a20 2020 2020 202d ROTOTYPE. -\n-00004830: 2d20 536f 636b 6574 732e 4765 745f 4c69 - Sockets.Get_Li\n-00004840: 6e65 3a20 6675 6e63 7469 6f6e 2047 6574 ne: function Get\n-00004850: 5f4c 696e 6520 2853 4f43 4b45 5420 3a20 _Line (SOCKET : \n-00004860: 536f 636b 6574 5f46 4427 436c 6173 733b Socket_FD'Class;\n-00004870: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-00004880: 4d41 585f 4c45 4e47 5448 203a 2050 6f73 MAX_LENGTH : Pos\n-00004890: 6974 6976 6520 3a3d 2032 3034 3829 0a20 itive := 2048). \n-000048a0: 2020 2020 2020 2020 2020 2020 2020 7265 re\n-000048b0: 7475 726e 2053 7472 696e 673b 0a0a 5041 turn String;..PA\n-000048c0: 5241 4d45 5445 5253 0a20 2020 2020 534f RAMETERS. SO\n-000048d0: 434b 4554 2020 2020 2069 6e20 2020 2020 CKET in \n-000048e0: 2020 2020 496e 6974 6961 6c69 7a65 6420 Initialized \n-000048f0: 616e 6420 636f 6e6e 6563 7465 6420 736f and connected so\n-00004900: 636b 6574 206f 626a 6563 740a 2020 2020 cket object. \n-00004910: 204d 4158 5f4c 454e 4754 4820 696e 2020 MAX_LENGTH in \n-00004920: 2020 2020 2020 204d 6178 696d 756d 2072 Maximum r\n-00004930: 6574 7572 6e65 6420 6c69 6e65 206c 656e eturned line len\n-00004940: 6774 680a 0a52 4554 5552 4e20 5641 4c55 gth..RETURN VALU\n-00004950: 450a 2020 2020 2041 206c 696e 6520 7769 E. A line wi\n-00004960: 7468 6f75 7420 7468 6520 4352 2061 6e64 thout the CR and\n-00004970: 204c 4620 7365 7061 7261 746f 7273 0a0a LF separators..\n-00004980: 4445 5343 5249 5054 494f 4e0a 2020 2020 DESCRIPTION. \n-00004990: 2054 6869 7320 6675 6e63 7469 6f6e 2072 This function r\n-000049a0: 6563 6569 7665 7320 6f6e 6520 6c69 6e65 eceives one line\n-000049b0: 2066 726f 6d20 7468 6520 7265 6d6f 7465 from the remote\n-000049c0: 2068 6f73 742e 2020 4120 6c69 6e65 0a20 host. A line. \n-000049d0: 2020 2020 636f 6e73 6973 7473 2069 6e74 consists int\n-000049e0: 6f20 7a65 726f 206f 7220 6d6f 7265 2063 o zero or more c\n-000049f0: 6861 7261 6374 6572 7320 666f 6c6c 6f77 haracters follow\n-00004a00: 6564 2062 7920 616e 206f 7074 696f 6e61 ed by an optiona\n-00004a10: 6c20 4352 0a20 2020 2020 616e 6420 6279 l CR. and by\n-00004a20: 2061 204c 462e 2054 686f 7365 2074 6572 a LF. Those ter\n-00004a30: 6d69 6e61 746f 7273 2061 7265 2073 7472 minators are str\n-00004a40: 6970 7065 6420 6265 666f 7265 2074 6865 ipped before the\n-00004a50: 206c 696e 6520 6973 0a20 2020 2020 7265 line is. re\n-00004a60: 7475 726e 6564 2e0a 0a20 2020 2020 5468 turned... Th\n-00004a70: 6973 2066 756e 6374 696f 6e20 626c 6f63 is function bloc\n-00004a80: 6b73 2075 6e74 696c 206f 6e65 2066 756c ks until one ful\n-00004a90: 6c20 6c69 6e65 2068 6173 2062 6565 6e20 l line has been \n-00004aa0: 7265 6365 6976 6564 2e20 2054 6865 0a20 received. The. \n-00004ab0: 2020 2020 6c69 6e65 206c 656e 6774 6820 line length \n-00004ac0: 6973 206c 696d 6974 6564 2077 6974 6820 is limited with \n-00004ad0: 7468 6520 7661 6c75 6520 6f66 2074 6865 the value of the\n-00004ae0: 204d 6178 5f4c 656e 6774 6820 6172 6775 Max_Length argu\n-00004af0: 6d65 6e74 2c0a 2020 2020 2074 6f20 6176 ment,. to av\n-00004b00: 6f69 6420 6578 6861 7573 7469 6f6e 206f oid exhaustion o\n-00004b10: 6620 7468 6520 7365 636f 6e64 6172 7920 f the secondary \n-00004b20: 7374 6163 6b2e 0a0a 4558 4345 5054 494f stack...EXCEPTIO\n-00004b30: 4e53 0a20 2020 2020 e280 9843 6f6e 6e65 NS. ...Conne\n-00004b40: 6374 696f 6e5f 436c 6f73 6564 e280 9950 ction_Closed...P\n-00004b50: 6565 7220 6861 7320 636c 6f73 6564 2074 eer has closed t\n-00004b60: 6865 2063 6f6e 6e65 6374 696f 6e20 6265 he connection be\n-00004b70: 666f 7265 0a20 2020 2020 2020 2020 2020 fore. \n-00004b80: 2020 2020 2020 2020 2020 2020 2073 656e sen\n-00004b90: 6469 6e67 2061 2077 686f 6c65 206c 696e ding a whole lin\n-00004ba0: 650a 0a53 4545 2041 4c53 4f0a 2020 2020 e..SEE ALSO. \n-00004bb0: 202a 6e6f 7465 2047 6574 2028 6675 6e63 *note Get (func\n-00004bc0: 7469 6f6e 293a 3a2c 0a20 2020 2020 2a6e tion)::,. *n\n-00004bd0: 6f74 6520 4765 745f 4368 6172 2028 6675 ote Get_Char (fu\n-00004be0: 6e63 7469 6f6e 293a 3a2c 0a20 2020 2020 nction)::,. \n-00004bf0: 2a6e 6f74 6520 4765 745f 4c69 6e65 2028 *note Get_Line (\n-00004c00: 7072 6f63 6564 7572 6529 3a3a 2c0a 2020 procedure)::,. \n-00004c10: 2020 202a 6e6f 7465 2052 6563 6569 7665 *note Receive\n-00004c20: 2028 7072 6f63 6564 7572 6529 3a3a 2c0a (procedure)::,.\n-00004c30: 2020 2020 202a 6e6f 7465 2053 6574 5f42 *note Set_B\n-00004c40: 7566 6665 7220 2870 726f 6365 6475 7265 uffer (procedure\n-00004c50: 293a 3a2e 0a0a 1f0a 4669 6c65 3a20 6164 )::.....File: ad\n-00004c60: 6173 6f63 6b65 7473 2e69 6e66 6f2c 2020 asockets.info, \n-00004c70: 4e6f 6465 3a20 4765 745f 4c69 6e65 2028 Node: Get_Line (\n-00004c80: 7072 6f63 6564 7572 6529 2c20 204e 6578 procedure), Nex\n-00004c90: 743a 2047 6574 5f52 6563 6569 7665 5f51 t: Get_Receive_Q\n-00004ca0: 7565 7565 5f53 697a 6520 2866 756e 6374 ueue_Size (funct\n-00004cb0: 696f 6e29 2c20 2050 7265 763a 2047 6574 ion), Prev: Get\n-00004cc0: 5f4c 696e 6520 2866 756e 6374 696f 6e29 _Line (function)\n-00004cd0: 2c20 2055 703a 2041 6363 6570 745f 536f , Up: Accept_So\n-00004ce0: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n-00004cf0: 0a0a 4765 745f 4c69 6e65 2028 7072 6f63 ..Get_Line (proc\n-00004d00: 6564 7572 6529 0a2d 2d2d 2d2d 2d2d 2d2d edure).---------\n-00004d10: 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a 0a50 5552 -----------..PUR\n-00004d20: 504f 5345 0a20 2020 2020 4765 7420 6120 POSE. Get a \n-00004d30: 7768 6f6c 6520 6c69 6e65 2066 726f 6d20 whole line from \n-00004d40: 6120 7265 6d6f 7465 2068 6f73 740a 5052 a remote host.PR\n-00004d50: 4f54 4f54 5950 450a 2020 2020 2020 2d2d OTOTYPE. --\n-00004d60: 2053 6f63 6b65 7473 2e47 6574 5f4c 696e Sockets.Get_Lin\n-00004d70: 653a 2070 726f 6365 6475 7265 2047 6574 e: procedure Get\n-00004d80: 5f4c 696e 6520 2853 4f43 4b45 5420 3a20 _Line (SOCKET : \n-00004d90: 536f 636b 6574 5f46 4427 436c 6173 733b Socket_FD'Class;\n-00004da0: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-00004db0: 5354 5220 3a20 696e 206f 7574 2053 7472 STR : in out Str\n-00004dc0: 696e 673b 204c 4153 5420 3a20 6f75 7420 ing; LAST : out \n-00004dd0: 4e61 7475 7261 6c29 3b0a 0a50 4152 414d Natural);..PARAM\n-00004de0: 4554 4552 530a 2020 2020 2053 4f43 4b45 ETERS. SOCKE\n-00004df0: 5420 2020 2020 696e 2020 2020 2020 2020 T in \n-00004e00: 2049 6e69 7469 616c 697a 6564 2061 6e64 Initialized and\n-00004e10: 2063 6f6e 6e65 6374 6564 2073 6f63 6b65 connected socke\n-00004e20: 7420 6f62 6a65 6374 0a20 2020 2020 5354 t object. ST\n-00004e30: 5220 2020 2020 2020 2069 6e20 6f75 7420 R in out \n-00004e40: 2020 2020 5374 7269 6e67 2074 6f20 6669 String to fi\n-00004e50: 6c6c 0a20 2020 2020 4c41 5354 2020 2020 ll. LAST \n-00004e60: 2020 206f 7574 2020 2020 2020 2020 4c61 out La\n-00004e70: 7374 2069 6e64 6578 2075 7365 6420 696e st index used in\n-00004e80: 2074 6865 2073 7472 696e 670a 0a44 4553 the string..DES\n-00004e90: 4352 4950 5449 4f4e 0a20 2020 2020 5468 CRIPTION. Th\n-00004ea0: 6973 2070 726f 6365 6475 7265 2072 6563 is procedure rec\n-00004eb0: 6569 7665 7320 6f6e 6520 6c69 6e65 2066 eives one line f\n-00004ec0: 726f 6d20 7468 6520 7265 6d6f 7465 2068 rom the remote h\n-00004ed0: 6f73 742e 2020 4120 6c69 6e65 0a20 2020 ost. A line. \n-00004ee0: 2020 636f 6e73 6973 7473 2069 6e74 6f20 consists into \n-00004ef0: 7a65 726f 206f 7220 6d6f 7265 2063 6861 zero or more cha\n-00004f00: 7261 6374 6572 7320 666f 6c6c 6f77 6564 racters followed\n-00004f10: 2062 7920 616e 206f 7074 696f 6e61 6c20 by an optional \n-00004f20: 4352 0a20 2020 2020 616e 6420 6279 2061 CR. and by a\n-00004f30: 204c 462e 2054 686f 7365 2074 6572 6d69 LF. Those termi\n-00004f40: 6e61 746f 7273 2061 7265 2073 7472 6970 nators are strip\n-00004f50: 7065 6420 6265 666f 7265 2074 6865 206c ped before the l\n-00004f60: 696e 6520 6973 0a20 2020 2020 7265 7475 ine is. retu\n-00004f70: 726e 6564 2e0a 0a20 2020 2020 5468 6973 rned... This\n-00004f80: 2070 726f 6365 6475 7265 2062 6c6f 636b procedure block\n-00004f90: 7320 756e 7469 6c20 6f6e 6520 6675 6c6c s until one full\n-00004fa0: 206c 696e 6520 6861 7320 6265 656e 2072 line has been r\n-00004fb0: 6563 6569 7665 642e 0a0a 4558 4345 5054 eceived...EXCEPT\n-00004fc0: 494f 4e53 0a20 2020 2020 e280 9843 6f6e IONS. ...Con\n-00004fd0: 6e65 6374 696f 6e5f 436c 6f73 6564 e280 nection_Closed..\n-00004fe0: 9950 6565 7220 6861 7320 636c 6f73 6564 .Peer has closed\n-00004ff0: 2074 6865 2063 6f6e 6e65 6374 696f 6e20 the connection \n-00005000: 6265 666f 7265 0a20 2020 2020 2020 2020 before. \n-00005010: 2020 2020 2020 2020 2020 2020 2020 2073 s\n-00005020: 656e 6469 6e67 2061 2077 686f 6c65 206c ending a whole l\n-00005030: 696e 650a 0a53 4545 2041 4c53 4f0a 2020 ine..SEE ALSO. \n-00005040: 2020 202a 6e6f 7465 2047 6574 2028 6675 *note Get (fu\n-00005050: 6e63 7469 6f6e 293a 3a2c 0a20 2020 2020 nction)::,. \n-00005060: 2a6e 6f74 6520 4765 745f 4368 6172 2028 *note Get_Char (\n-00005070: 6675 6e63 7469 6f6e 293a 3a2c 0a20 2020 function)::,. \n-00005080: 2020 2a6e 6f74 6520 4765 745f 4c69 6e65 *note Get_Line\n-00005090: 2028 6675 6e63 7469 6f6e 293a 3a2c 0a20 (function)::,. \n-000050a0: 2020 2020 2a6e 6f74 6520 5265 6365 6976 *note Receiv\n-000050b0: 6520 2870 726f 6365 6475 7265 293a 3a2c e (procedure)::,\n-000050c0: 0a20 2020 2020 2a6e 6f74 6520 5365 745f . *note Set_\n-000050d0: 4275 6666 6572 2028 7072 6f63 6564 7572 Buffer (procedur\n-000050e0: 6529 3a3a 2e0a 0a1f 0a46 696c 653a 2061 e)::.....File: a\n-000050f0: 6461 736f 636b 6574 732e 696e 666f 2c20 dasockets.info, \n-00005100: 204e 6f64 653a 2047 6574 5f52 6563 6569 Node: Get_Recei\n-00005110: 7665 5f51 7565 7565 5f53 697a 6520 2866 ve_Queue_Size (f\n-00005120: 756e 6374 696f 6e29 2c20 204e 6578 743a unction), Next:\n-00005130: 2047 6574 5f53 656e 645f 5175 6575 655f Get_Send_Queue_\n-00005140: 5369 7a65 2028 6675 6e63 7469 6f6e 292c Size (function),\n-00005150: 2020 5072 6576 3a20 4765 745f 4c69 6e65 Prev: Get_Line\n-00005160: 2028 7072 6f63 6564 7572 6529 2c20 2055 (procedure), U\n-00005170: 703a 2041 6363 6570 745f 536f 636b 6574 p: Accept_Socket\n-00005180: 2028 7072 6f63 6564 7572 6529 0a0a 4765 (procedure)..Ge\n-00005190: 745f 5265 6365 6976 655f 5175 6575 655f t_Receive_Queue_\n-000051a0: 5369 7a65 2028 6675 6e63 7469 6f6e 290a Size (function).\n-000051b0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-000051c0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-000051d0: 2d0a 0a50 5552 504f 5345 0a20 2020 2020 -..PURPOSE. \n-000051e0: 5265 7475 726e 2074 6865 2073 697a 6520 Return the size \n-000051f0: 6f66 2074 6865 2075 6e72 6561 6420 6461 of the unread da\n-00005200: 7461 2069 6e20 7468 6520 696e 7075 7420 ta in the input \n-00005210: 7175 6575 650a 5052 4f54 4f54 5950 450a queue.PROTOTYPE.\n-00005220: 2020 2020 2020 2d2d 2053 6f63 6b65 7473 -- Sockets\n-00005230: 2e47 6574 5f52 6563 6569 7665 5f51 7565 .Get_Receive_Que\n-00005240: 7565 5f53 697a 653a 2066 756e 6374 696f ue_Size: functio\n-00005250: 6e20 4765 745f 5265 6365 6976 655f 5175 n Get_Receive_Qu\n-00005260: 6575 655f 5369 7a65 0a20 2020 2020 2020 eue_Size. \n-00005270: 2020 2020 2020 2020 2853 4f43 4b45 5420 (SOCKET \n-00005280: 3a20 536f 636b 6574 5f46 4427 436c 6173 : Socket_FD'Clas\n-00005290: 7329 0a20 2020 2020 2020 2020 2020 2020 s). \n-000052a0: 2020 7265 7475 726e 2049 6e74 6567 6572 return Integer\n-000052b0: 3b0a 0a50 4152 414d 4554 4552 530a 2020 ;..PARAMETERS. \n-000052c0: 2020 2053 4f43 4b45 5420 2020 2020 696e SOCKET in\n-000052d0: 2020 2020 2020 2020 2049 6e69 7469 616c Initial\n-000052e0: 697a 6564 2061 6e64 2063 6f6e 6e65 6374 ized and connect\n-000052f0: 6564 2073 6f63 6b65 7420 6f62 6a65 6374 ed socket object\n-00005300: 0a0a 5245 5455 524e 2056 414c 5545 0a20 ..RETURN VALUE. \n-00005310: 2020 2020 5468 6520 6e6f 6e2d 6e65 6761 The non-nega\n-00005320: 7469 7665 2073 697a 6520 696e 2062 7974 tive size in byt\n-00005330: 6573 206f 6620 7468 6520 696e 7075 7420 es of the input \n-00005340: 7175 6575 650a 0a44 4553 4352 4950 5449 queue..DESCRIPTI\n-00005350: 4f4e 0a20 2020 2020 5468 6973 2066 756e ON. This fun\n-00005360: 6374 696f 6e20 6973 206f 6e6c 7920 6176 ction is only av\n-00005370: 6169 6c61 626c 6520 6f6e 204c 696e 7578 ailable on Linux\n-00005380: 2070 6c61 7466 6f72 6d73 2e20 204f 6e20 platforms. On \n-00005390: 6f74 6865 720a 2020 2020 206f 7065 7261 other. opera\n-000053a0: 7469 6e67 2073 7973 7465 6d73 2c20 6974 ting systems, it\n-000053b0: 2077 696c 6c20 7265 7475 726e 202d 3220 will return -2 \n-000053c0: 746f 2069 6e64 6963 6174 6520 7468 6174 to indicate that\n-000053d0: 2074 6865 206e 6563 6573 7361 7279 0a20 the necessary. \n-000053e0: 2020 2020 6d65 6368 616e 6973 6d73 2074 mechanisms t\n-000053f0: 6f20 7265 7472 6965 7665 2074 6865 2069 o retrieve the i\n-00005400: 6e66 6f72 6d61 7469 6f6e 2061 7265 206e nformation are n\n-00005410: 6f74 2061 7661 696c 6162 6c65 2e0a 0a53 ot available...S\n-00005420: 4545 2041 4c53 4f0a 2020 2020 202a 6e6f EE ALSO. *no\n-00005430: 7465 2052 6563 6569 7665 2028 7072 6f63 te Receive (proc\n-00005440: 6564 7572 6529 3a3a 2e0a 0a1f 0a46 696c edure)::.....Fil\n-00005450: 653a 2061 6461 736f 636b 6574 732e 696e e: adasockets.in\n-00005460: 666f 2c20 204e 6f64 653a 2047 6574 5f53 fo, Node: Get_S\n-00005470: 656e 645f 5175 6575 655f 5369 7a65 2028 end_Queue_Size (\n-00005480: 6675 6e63 7469 6f6e 292c 2020 4e65 7874 function), Next\n-00005490: 3a20 4765 7473 6f63 6b6f 7074 2028 7072 : Getsockopt (pr\n-000054a0: 6f63 6564 7572 6529 2c20 2050 7265 763a ocedure), Prev:\n-000054b0: 2047 6574 5f52 6563 6569 7665 5f51 7565 Get_Receive_Que\n-000054c0: 7565 5f53 697a 6520 2866 756e 6374 696f ue_Size (functio\n-000054d0: 6e29 2c20 2055 703a 2041 6363 6570 745f n), Up: Accept_\n-000054e0: 536f 636b 6574 2028 7072 6f63 6564 7572 Socket (procedur\n-000054f0: 6529 0a0a 4765 745f 5365 6e64 5f51 7565 e)..Get_Send_Que\n-00005500: 7565 5f53 697a 6520 2866 756e 6374 696f ue_Size (functio\n-00005510: 6e29 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d n).-------------\n-00005520: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-00005530: 2d0a 0a50 5552 504f 5345 0a20 2020 2020 -..PURPOSE. \n-00005540: 5265 7475 726e 2074 6865 2073 697a 6520 Return the size \n-00005550: 6f66 2074 6865 2075 6e73 656e 7420 6461 of the unsent da\n-00005560: 7461 2069 6e20 7468 6520 6f75 7470 7574 ta in the output\n-00005570: 2071 7565 7565 0a50 524f 544f 5459 5045 queue.PROTOTYPE\n-00005580: 0a20 2020 2020 202d 2d20 536f 636b 6574 . -- Socket\n-00005590: 732e 4765 745f 5365 6e64 5f51 7565 7565 s.Get_Send_Queue\n-000055a0: 5f53 697a 653a 2066 756e 6374 696f 6e20 _Size: function \n-000055b0: 4765 745f 5365 6e64 5f51 7565 7565 5f53 Get_Send_Queue_S\n-000055c0: 697a 650a 2020 2020 2020 2020 2020 2020 ize. \n-000055d0: 2020 2028 534f 434b 4554 203a 2053 6f63 (SOCKET : Soc\n-000055e0: 6b65 745f 4644 2743 6c61 7373 290a 2020 ket_FD'Class). \n-000055f0: 2020 2020 2020 2020 2020 2020 2072 6574 ret\n-00005600: 7572 6e20 496e 7465 6765 723b 0a0a 5041 urn Integer;..PA\n-00005610: 5241 4d45 5445 5253 0a20 2020 2020 534f RAMETERS. SO\n-00005620: 434b 4554 2020 2020 2069 6e20 2020 2020 CKET in \n-00005630: 2020 2020 496e 6974 6961 6c69 7a65 6420 Initialized \n-00005640: 616e 6420 636f 6e6e 6563 7465 6420 736f and connected so\n-00005650: 636b 6574 206f 626a 6563 740a 0a52 4554 cket object..RET\n-00005660: 5552 4e20 5641 4c55 450a 2020 2020 2054 URN VALUE. T\n-00005670: 6865 206e 6f6e 2d6e 6567 6174 6976 6520 he non-negative \n-00005680: 7369 7a65 2069 6e20 6279 7465 7320 6f66 size in bytes of\n-00005690: 2074 6865 206f 7574 7075 7420 7175 6575 the output queu\n-000056a0: 650a 0a44 4553 4352 4950 5449 4f4e 0a20 e..DESCRIPTION. \n-000056b0: 2020 2020 5468 6973 2066 756e 6374 696f This functio\n-000056c0: 6e20 6973 206f 6e6c 7920 6176 6169 6c61 n is only availa\n-000056d0: 626c 6520 6f6e 204c 696e 7578 2070 6c61 ble on Linux pla\n-000056e0: 7466 6f72 6d73 2e20 204f 6e20 6f74 6865 tforms. On othe\n-000056f0: 720a 2020 2020 206f 7065 7261 7469 6e67 r. operating\n-00005700: 2073 7973 7465 6d73 2c20 6974 2077 696c systems, it wil\n-00005710: 6c20 7265 7475 726e 202d 3220 746f 2069 l return -2 to i\n-00005720: 6e64 6963 6174 6520 7468 6174 2074 6865 ndicate that the\n-00005730: 206e 6563 6573 7361 7279 0a20 2020 2020 necessary. \n-00005740: 6d65 6368 616e 6973 6d73 2074 6f20 7265 mechanisms to re\n-00005750: 7472 6965 7665 2074 6865 2069 6e66 6f72 trieve the infor\n-00005760: 6d61 7469 6f6e 2061 7265 206e 6f74 2061 mation are not a\n-00005770: 7661 696c 6162 6c65 2e0a 0a53 4545 2041 vailable...SEE A\n-00005780: 4c53 4f0a 2020 2020 202a 6e6f 7465 2053 LSO. *note S\n-00005790: 656e 6420 2870 726f 6365 6475 7265 293a end (procedure):\n-000057a0: 3a2e 0a0a 1f0a 4669 6c65 3a20 6164 6173 :.....File: adas\n-000057b0: 6f63 6b65 7473 2e69 6e66 6f2c 2020 4e6f ockets.info, No\n-000057c0: 6465 3a20 4765 7473 6f63 6b6f 7074 2028 de: Getsockopt (\n-000057d0: 7072 6f63 6564 7572 6529 2c20 204e 6578 procedure), Nex\n-000057e0: 743a 204c 6973 7465 6e20 2870 726f 6365 t: Listen (proce\n-000057f0: 6475 7265 292c 2020 5072 6576 3a20 4765 dure), Prev: Ge\n-00005800: 745f 5365 6e64 5f51 7565 7565 5f53 697a t_Send_Queue_Siz\n-00005810: 6520 2866 756e 6374 696f 6e29 2c20 2055 e (function), U\n-00005820: 703a 2041 6363 6570 745f 536f 636b 6574 p: Accept_Socket\n-00005830: 2028 7072 6f63 6564 7572 6529 0a0a 4765 (procedure)..Ge\n-00005840: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n-00005850: 7572 6529 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d ure).-----------\n-00005860: 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a 0a50 5552 -----------..PUR\n-00005870: 504f 5345 0a20 2020 2020 5265 7472 6965 POSE. Retrie\n-00005880: 7665 2061 2073 6f63 6b65 7420 6f70 7469 ve a socket opti\n-00005890: 6f6e 0a50 524f 544f 5459 5045 0a20 2020 on.PROTOTYPE. \n-000058a0: 2020 202d 2d20 536f 636b 6574 732e 4765 -- Sockets.Ge\n-000058b0: 7473 6f63 6b6f 7074 3a20 7072 6f63 6564 tsockopt: proced\n-000058c0: 7572 6520 4765 7473 6f63 6b6f 7074 2028 ure Getsockopt (\n-000058d0: 534f 434b 4554 203a 2053 6f63 6b65 745f SOCKET : Socket_\n-000058e0: 4644 3b0a 2020 2020 2020 2020 2020 2020 FD;. \n-000058f0: 2020 204c 4556 454c 203a 2053 6f63 6b65 LEVEL : Socke\n-00005900: 745f 4c65 7665 6c20 3a3d 2053 4f4c 5f53 t_Level := SOL_S\n-00005910: 4f43 4b45 543b 0a20 2020 2020 2020 2020 OCKET;. \n-00005920: 2020 2020 2020 4f50 544e 414d 4520 3a20 OPTNAME : \n-00005930: 536f 636b 6574 5f4f 7074 696f 6e3b 204f Socket_Option; O\n-00005940: 5054 5641 4c20 3a20 6f75 7420 496e 7465 PTVAL : out Inte\n-00005950: 6765 7229 3b0a 0a50 4152 414d 4554 4552 ger);..PARAMETER\n-00005960: 530a 2020 2020 2053 4f43 4b45 5420 2020 S. SOCKET \n-00005970: 2020 696e 2020 2020 2020 2020 2049 6e69 in Ini\n-00005980: 7469 616c 697a 6564 2061 6e64 2062 6f75 tialized and bou\n-00005990: 6e64 2073 6f63 6b65 7420 6f62 6a65 6374 nd socket object\n-000059a0: 0a20 2020 2020 4c45 5645 4c20 2020 2020 . LEVEL \n-000059b0: 2069 6e20 2020 2020 2020 2020 5072 6f74 in Prot\n-000059c0: 6f63 6f6c 206c 6576 656c 0a20 2020 2020 ocol level. \n-000059d0: 4f50 544e 414d 4520 2020 2069 6e20 2020 OPTNAME in \n-000059e0: 2020 2020 2020 4f70 7469 6f6e 206e 616d Option nam\n-000059f0: 650a 2020 2020 204f 5054 5641 4c20 2020 e. OPTVAL \n-00005a00: 2020 6f75 7420 2020 2020 2020 204f 7074 out Opt\n-00005a10: 696f 6e20 7661 6c75 650a 0a44 4553 4352 ion value..DESCR\n-00005a20: 4950 5449 4f4e 0a20 2020 2020 5468 6973 IPTION. This\n-00005a30: 2070 726f 6365 6475 7265 2072 6574 7269 procedure retri\n-00005a40: 6576 6573 206f 7074 696f 6e73 2061 7070 eves options app\n-00005a50: 6c69 6361 626c 6520 746f 2061 2073 6f63 licable to a soc\n-00005a60: 6b65 742e 2020 506c 6561 7365 0a20 2020 ket. Please. \n-00005a70: 2020 7365 6520 796f 7572 206f 7065 7261 see your opera\n-00005a80: 7469 6e67 2073 7973 7465 6d20 6d61 6e75 ting system manu\n-00005a90: 616c 2066 6f72 2075 7361 626c 6520 6c65 al for usable le\n-00005aa0: 7665 6c73 2061 6e64 206f 7074 696f 6e73 vels and options\n-00005ab0: 2e0a 0a20 2020 2020 5477 6f20 6c65 7665 ... Two leve\n-00005ac0: 6c73 2061 7265 2064 6566 696e 6564 3a20 ls are defined: \n-00005ad0: e280 9853 4f4c 5f53 4f43 4b45 54e2 8099 ...SOL_SOCKET...\n-00005ae0: 2028 7468 6520 6465 6661 756c 7429 2061 (the default) a\n-00005af0: 6e64 0a20 2020 2020 e280 9849 5050 524f nd. ...IPPRO\n-00005b00: 544f 5f49 50e2 8099 2e20 2054 6865 206f TO_IP.... The o\n-00005b10: 7074 696f 6e73 2061 7265 20e2 8098 534f ptions are ...SO\n-00005b20: 5f52 4555 5345 4144 4452 e280 992c 20e2 _REUSEADDR..., .\n-00005b30: 8098 534f 5f52 4555 5345 504f 5254 e280 ..SO_REUSEPORT..\n-00005b40: 992c 0a20 2020 2020 e280 9849 505f 4d55 .,. ...IP_MU\n-00005b50: 4c54 4943 4153 545f 5454 4ce2 8099 2c20 LTICAST_TTL..., \n-00005b60: e280 9849 505f 4144 445f 4d45 4d42 4552 ...IP_ADD_MEMBER\n-00005b70: 5348 4950 e280 992c 20e2 8098 4950 5f44 SHIP..., ...IP_D\n-00005b80: 524f 505f 4d45 4d42 4552 5348 4950 e280 ROP_MEMBERSHIP..\n-00005b90: 992c 0a20 2020 2020 e280 9849 505f 4d55 .,. ...IP_MU\n-00005ba0: 4c54 4943 4153 545f 4c4f 4f50 e280 992c LTICAST_LOOP...,\n-00005bb0: 20e2 8098 534f 5f53 4e44 4255 46e2 8099 ...SO_SNDBUF...\n-00005bc0: 2061 6e64 20e2 8098 4950 5f52 4356 4255 and ...IP_RCVBU\n-00005bd0: 46e2 8099 2e0a 0a20 2020 2020 4e6f 7465 F...... Note\n-00005be0: 2074 6861 7420 756e 6c69 6b65 2074 6865 that unlike the\n-00005bf0: 6972 2043 206c 616e 6775 6167 6520 636f ir C language co\n-00005c00: 756e 7465 7270 6172 742c 20e2 8098 4765 unterpart, ...Ge\n-00005c10: 7473 6f63 6b6f 7074 e280 9920 616e 640a tsockopt... and.\n-00005c20: 2020 2020 20e2 8098 5365 7473 6f63 6b6f ...Setsocko\n-00005c30: 7074 e280 9920 646f 206e 6f74 2072 6571 pt... do not req\n-00005c40: 7569 7265 2061 6e20 6578 7472 6120 7061 uire an extra pa\n-00005c50: 7261 6d65 7465 7220 7265 7072 6573 656e rameter represen\n-00005c60: 7469 6e67 2074 6865 0a20 2020 2020 6c65 ting the. le\n-00005c70: 6e67 7468 2069 6e20 6279 7465 7320 6f66 ngth in bytes of\n-00005c80: 2074 6865 206f 7074 696f 6e20 7661 6c75 the option valu\n-00005c90: 652e 2020 4164 6153 6f63 6b65 7473 206e e. AdaSockets n\n-00005ca0: 6f77 7320 7468 6520 7269 6768 740a 2020 ows the right. \n-00005cb0: 2020 2073 697a 6520 666f 7220 6576 6572 size for ever\n-00005cc0: 7920 6f70 7469 6f6e 2e0a 0a53 4545 2041 y option...SEE A\n-00005cd0: 4c53 4f0a 2020 2020 202a 6e6f 7465 2053 LSO. *note S\n-00005ce0: 6574 736f 636b 6f70 7420 2870 726f 6365 etsockopt (proce\n-00005cf0: 6475 7265 293a 3a2e 0a0a 1f0a 4669 6c65 dure)::.....File\n-00005d00: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n-00005d10: 6f2c 2020 4e6f 6465 3a20 4c69 7374 656e o, Node: Listen\n-00005d20: 2028 7072 6f63 6564 7572 6529 2c20 204e (procedure), N\n-00005d30: 6578 743a 204e 6577 5f4c 696e 6520 2870 ext: New_Line (p\n-00005d40: 726f 6365 6475 7265 292c 2020 5072 6576 rocedure), Prev\n-00005d50: 3a20 4765 7473 6f63 6b6f 7074 2028 7072 : Getsockopt (pr\n-00005d60: 6f63 6564 7572 6529 2c20 2055 703a 2041 ocedure), Up: A\n-00005d70: 6363 6570 745f 536f 636b 6574 2028 7072 ccept_Socket (pr\n-00005d80: 6f63 6564 7572 6529 0a0a 4c69 7374 656e ocedure)..Listen\n-00005d90: 2028 7072 6f63 6564 7572 6529 0a2d 2d2d (procedure).---\n-00005da0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a ---------------.\n-00005db0: 0a50 5552 504f 5345 0a20 2020 2020 4573 .PURPOSE. Es\n-00005dc0: 7461 626c 6973 6820 6120 6c69 7374 656e tablish a listen\n-00005dd0: 2071 7565 7565 0a50 524f 544f 5459 5045 queue.PROTOTYPE\n-00005de0: 0a20 2020 2020 202d 2d20 536f 636b 6574 . -- Socket\n-00005df0: 732e 4c69 7374 656e 3a20 7072 6f63 6564 s.Listen: proced\n-00005e00: 7572 6520 4c69 7374 656e 2028 534f 434b ure Listen (SOCK\n-00005e10: 4554 203a 2053 6f63 6b65 745f 4644 3b0a ET : Socket_FD;.\n-00005e20: 2020 2020 2020 2020 2020 2020 2020 2051 Q\n-00005e30: 5545 5545 5f53 495a 4520 3a20 506f 7369 UEUE_SIZE : Posi\n-00005e40: 7469 7665 203a 3d20 3529 3b0a 0a50 4152 tive := 5);..PAR\n-00005e50: 414d 4554 4552 530a 2020 2020 2053 4f43 AMETERS. SOC\n-00005e60: 4b45 5420 2020 2020 696e 2020 2020 2020 KET in \n-00005e70: 2020 2049 6e69 7469 616c 697a 6564 2061 Initialized a\n-00005e80: 6e64 2062 6f75 6e64 2073 6f63 6b65 7420 nd bound socket \n-00005e90: 6f62 6a65 6374 0a20 2020 2020 5155 4555 object. QUEU\n-00005ea0: 455f 5349 5a45 2069 6e20 2020 2020 2020 E_SIZE in \n-00005eb0: 2020 5265 7175 6573 7465 6420 736c 6f74 Requested slot\n-00005ec0: 7320 696e 2074 6865 206c 6973 7465 6e20 s in the listen \n-00005ed0: 7175 6575 650a 0a44 4553 4352 4950 5449 queue..DESCRIPTI\n-00005ee0: 4f4e 0a20 2020 2020 5468 6973 2070 726f ON. This pro\n-00005ef0: 6365 6475 7265 2065 7374 6162 6c69 7368 cedure establish\n-00005f00: 6573 2061 206c 6973 7465 6e20 7175 6575 es a listen queu\n-00005f10: 6520 6166 7465 7220 6120 5443 5020 736f e after a TCP so\n-00005f20: 636b 6574 2061 730a 2020 2020 2062 6565 cket as. bee\n-00005f30: 6e20 696e 6974 6961 6c69 7a65 6420 616e n initialized an\n-00005f40: 6420 626f 756e 642e 2020 4561 6368 2073 d bound. Each s\n-00005f50: 6c6f 7420 696e 2074 6865 2071 7565 7565 lot in the queue\n-00005f60: 2063 616e 2068 6f6c 6420 6f6e 650a 2020 can hold one. \n-00005f70: 2020 2069 6e63 6f6d 696e 6720 636f 6e6e incoming conn\n-00005f80: 6563 7469 6f6e 2074 6861 7420 6861 7320 ection that has \n-00005f90: 6e6f 7420 6265 656e 2061 6363 6570 7465 not been accepte\n-00005fa0: 6420 7965 742e 2020 4e6f 7465 2074 6861 d yet. Note tha\n-00005fb0: 7420 6d6f 7374 0a20 2020 2020 6f70 6572 t most. oper\n-00005fc0: 6174 696e 6720 7379 7374 656d 7320 6967 ating systems ig\n-00005fd0: 6e6f 7265 2071 7565 7565 2073 697a 6573 nore queue sizes\n-00005fe0: 206c 6172 6765 7220 7468 616e 2066 6976 larger than fiv\n-00005ff0: 652e 0a0a 5345 4520 414c 534f 0a20 2020 e...SEE ALSO. \n-00006000: 2020 2a6e 6f74 6520 4163 6365 7074 5f53 *note Accept_S\n-00006010: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n-00006020: 293a 3a2c 0a20 2020 2020 2a6e 6f74 6520 )::,. *note \n-00006030: 4269 6e64 2028 7072 6f63 6564 7572 6529 Bind (procedure)\n-00006040: 3a3a 2c0a 2020 2020 202a 6e6f 7465 2053 ::,. *note S\n-00006050: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n-00006060: 293a 3a2e 0a0a 1f0a 4669 6c65 3a20 6164 )::.....File: ad\n-00006070: 6173 6f63 6b65 7473 2e69 6e66 6f2c 2020 asockets.info, \n-00006080: 4e6f 6465 3a20 4e65 775f 4c69 6e65 2028 Node: New_Line (\n-00006090: 7072 6f63 6564 7572 6529 2c20 204e 6578 procedure), Nex\n-000060a0: 743a 2050 7574 2028 7072 6f63 6564 7572 t: Put (procedur\n-000060b0: 6529 2c20 2050 7265 763a 204c 6973 7465 e), Prev: Liste\n-000060c0: 6e20 2870 726f 6365 6475 7265 292c 2020 n (procedure), \n-000060d0: 5570 3a20 4163 6365 7074 5f53 6f63 6b65 Up: Accept_Socke\n-000060e0: 7420 2870 726f 6365 6475 7265 290a 0a4e t (procedure)..N\n-000060f0: 6577 5f4c 696e 6520 2870 726f 6365 6475 ew_Line (procedu\n-00006100: 7265 290a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d re).------------\n-00006110: 2d2d 2d2d 2d2d 2d2d 0a0a 5055 5250 4f53 --------..PURPOS\n-00006120: 450a 2020 2020 2053 656e 6420 6120 4352 E. Send a CR\n-00006130: 2f4c 4620 746f 2061 2072 656d 6f74 6520 /LF to a remote \n-00006140: 686f 7374 0a50 524f 544f 5459 5045 0a20 host.PROTOTYPE. \n-00006150: 2020 2020 202d 2d20 536f 636b 6574 732e -- Sockets.\n-00006160: 4e65 775f 4c69 6e65 3a20 7072 6f63 6564 New_Line: proced\n-00006170: 7572 6520 4e65 775f 4c69 6e65 2028 534f ure New_Line (SO\n-00006180: 434b 4554 203a 2053 6f63 6b65 745f 4644 CKET : Socket_FD\n-00006190: 2743 6c61 7373 3b0a 2020 2020 2020 2020 'Class;. \n-000061a0: 2020 2020 2020 2043 4f55 4e54 203a 204e COUNT : N\n-000061b0: 6174 7572 616c 203a 3d20 3129 3b0a 0a50 atural := 1);..P\n-000061c0: 4152 414d 4554 4552 530a 2020 2020 2053 ARAMETERS. S\n-000061d0: 4f43 4b45 5420 2020 2020 696e 2020 2020 OCKET in \n-000061e0: 2020 2020 2049 6e69 7469 616c 697a 6564 Initialized\n-000061f0: 2061 6e64 2063 6f6e 6e65 6374 6564 2073 and connected s\n-00006200: 6f63 6b65 7420 6f62 6a65 6374 0a20 2020 ocket object. \n-00006210: 2020 434f 554e 5420 2020 2020 2069 6e20 COUNT in \n-00006220: 2020 2020 2020 2020 4e75 6d62 6572 206f Number o\n-00006230: 6620 4352 2f4c 4620 7365 7175 656e 6365 f CR/LF sequence\n-00006240: 7320 746f 2073 656e 640a 0a44 4553 4352 s to send..DESCR\n-00006250: 4950 5449 4f4e 0a20 2020 2020 5468 6973 IPTION. This\n-00006260: 2070 726f 6365 6475 7265 2073 656e 6473 procedure sends\n-00006270: 206f 6e65 206f 7220 6d6f 7265 2043 522f one or more CR/\n-00006280: 4c46 2063 6f6d 6269 6e61 7469 6f6e 7320 LF combinations \n-00006290: 746f 2074 6865 2070 6565 722e 0a0a 4558 to the peer...EX\n-000062a0: 4345 5054 494f 4e53 0a20 2020 2020 e280 CEPTIONS. ..\n-000062b0: 9843 6f6e 6e65 6374 696f 6e5f 436c 6f73 .Connection_Clos\n-000062c0: 6564 e280 9950 6565 7220 6861 7320 7072 ed...Peer has pr\n-000062d0: 656d 6174 7572 656c 7920 636c 6f73 6564 ematurely closed\n-000062e0: 2074 6865 2063 6f6e 6e65 6374 696f 6e0a the connection.\n-000062f0: 0a53 4545 2041 4c53 4f0a 2020 2020 202a .SEE ALSO. *\n-00006300: 6e6f 7465 2050 7574 2028 7072 6f63 6564 note Put (proced\n-00006310: 7572 6529 3a3a 2c0a 2020 2020 202a 6e6f ure)::,. *no\n-00006320: 7465 2050 7574 5f4c 696e 6520 2870 726f te Put_Line (pro\n-00006330: 6365 6475 7265 293a 3a2e 0a0a 1f0a 4669 cedure)::.....Fi\n-00006340: 6c65 3a20 6164 6173 6f63 6b65 7473 2e69 le: adasockets.i\n-00006350: 6e66 6f2c 2020 4e6f 6465 3a20 5075 7420 nfo, Node: Put \n-00006360: 2870 726f 6365 6475 7265 292c 2020 4e65 (procedure), Ne\n-00006370: 7874 3a20 5075 745f 4c69 6e65 2028 7072 xt: Put_Line (pr\n-00006380: 6f63 6564 7572 6529 2c20 2050 7265 763a ocedure), Prev:\n-00006390: 204e 6577 5f4c 696e 6520 2870 726f 6365 New_Line (proce\n-000063a0: 6475 7265 292c 2020 5570 3a20 4163 6365 dure), Up: Acce\n-000063b0: 7074 5f53 6f63 6b65 7420 2870 726f 6365 pt_Socket (proce\n-000063c0: 6475 7265 290a 0a50 7574 2028 7072 6f63 dure)..Put (proc\n-000063d0: 6564 7572 6529 0a2d 2d2d 2d2d 2d2d 2d2d edure).---------\n-000063e0: 2d2d 2d2d 2d2d 0a0a 5055 5250 4f53 450a ------..PURPOSE.\n-000063f0: 2020 2020 2053 656e 6420 6120 7374 7269 Send a stri\n-00006400: 6e67 2074 6f20 6120 7265 6d6f 7465 2068 ng to a remote h\n-00006410: 6f73 740a 5052 4f54 4f54 5950 450a 2020 ost.PROTOTYPE. \n-00006420: 2020 2020 2d2d 2053 6f63 6b65 7473 2e50 -- Sockets.P\n-00006430: 7574 3a20 7072 6f63 6564 7572 6520 5075 ut: procedure Pu\n-00006440: 7420 2853 4f43 4b45 5420 3a20 536f 636b t (SOCKET : Sock\n-00006450: 6574 5f46 4427 436c 6173 733b 0a20 2020 et_FD'Class;. \n-00006460: 2020 2020 2020 2020 2020 2020 5354 5220 STR \n-00006470: 3a20 5374 7269 6e67 293b 0a0a 5041 5241 : String);..PARA\n-00006480: 4d45 5445 5253 0a20 2020 2020 534f 434b METERS. SOCK\n-00006490: 4554 2020 2020 2069 6e20 2020 2020 2020 ET in \n-000064a0: 2020 496e 6974 6961 6c69 7a65 6420 616e Initialized an\n-000064b0: 6420 636f 6e6e 6563 7465 6420 736f 636b d connected sock\n-000064c0: 6574 206f 626a 6563 740a 2020 2020 2053 et object. S\n-000064d0: 5452 2020 2020 2020 2020 696e 2020 2020 TR in \n-000064e0: 2020 2020 2053 7472 696e 6720 746f 2073 String to s\n-000064f0: 656e 640a 0a44 4553 4352 4950 5449 4f4e end..DESCRIPTION\n-00006500: 0a20 2020 2020 5468 6973 2070 726f 6365 . This proce\n-00006510: 6475 7265 2073 656e 6473 2074 6865 2063 dure sends the c\n-00006520: 6f6e 7465 6e74 206f 6620 5354 5220 6f76 ontent of STR ov\n-00006530: 6572 2061 6e20 6f75 7467 6f69 6e67 206f er an outgoing o\n-00006540: 720a 2020 2020 2069 6e63 6f6d 696e 6720 r. incoming \n-00006550: 736f 636b 6574 2e0a 0a45 5843 4550 5449 socket...EXCEPTI\n-00006560: 4f4e 530a 2020 2020 20e2 8098 436f 6e6e ONS. ...Conn\n-00006570: 6563 7469 6f6e 5f43 6c6f 7365 64e2 8099 ection_Closed...\n-00006580: 5065 6572 2068 6173 2070 7265 6d61 7475 Peer has prematu\n-00006590: 7265 6c79 2063 6c6f 7365 6420 7468 6520 rely closed the \n-000065a0: 636f 6e6e 6563 7469 6f6e 0a0a 5345 4520 connection..SEE \n-000065b0: 414c 534f 0a20 2020 2020 2a6e 6f74 6520 ALSO. *note \n-000065c0: 4e65 775f 4c69 6e65 2028 7072 6f63 6564 New_Line (proced\n-000065d0: 7572 6529 3a3a 2c0a 2020 2020 202a 6e6f ure)::,. *no\n-000065e0: 7465 2050 7574 5f4c 696e 6520 2870 726f te Put_Line (pro\n-000065f0: 6365 6475 7265 293a 3a2c 0a20 2020 2020 cedure)::,. \n-00006600: 2a6e 6f74 6520 5365 6e64 2028 7072 6f63 *note Send (proc\n-00006610: 6564 7572 6529 3a3a 2e0a 0a1f 0a46 696c edure)::.....Fil\n-00006620: 653a 2061 6461 736f 636b 6574 732e 696e e: adasockets.in\n-00006630: 666f 2c20 204e 6f64 653a 2050 7574 5f4c fo, Node: Put_L\n-00006640: 696e 6520 2870 726f 6365 6475 7265 292c ine (procedure),\n-00006650: 2020 4e65 7874 3a20 5265 6365 6976 6520 Next: Receive \n-00006660: 2866 756e 6374 696f 6e29 2c20 2050 7265 (function), Pre\n-00006670: 763a 2050 7574 2028 7072 6f63 6564 7572 v: Put (procedur\n-00006680: 6529 2c20 2055 703a 2041 6363 6570 745f e), Up: Accept_\n-00006690: 536f 636b 6574 2028 7072 6f63 6564 7572 Socket (procedur\n-000066a0: 6529 0a0a 5075 745f 4c69 6e65 2028 7072 e)..Put_Line (pr\n-000066b0: 6f63 6564 7572 6529 0a2d 2d2d 2d2d 2d2d ocedure).-------\n-000066c0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a 0a50 -------------..P\n-000066d0: 5552 504f 5345 0a20 2020 2020 5365 6e64 URPOSE. Send\n-000066e0: 2061 2043 522f 4c46 2074 6572 6d69 6e61 a CR/LF termina\n-000066f0: 7465 6420 7374 7269 6e67 2074 6f20 6120 ted string to a \n-00006700: 7265 6d6f 7465 2068 6f73 740a 5052 4f54 remote host.PROT\n-00006710: 4f54 5950 450a 2020 2020 2020 2d2d 2053 OTYPE. -- S\n-00006720: 6f63 6b65 7473 2e50 7574 5f4c 696e 653a ockets.Put_Line:\n-00006730: 2070 726f 6365 6475 7265 2050 7574 5f4c procedure Put_L\n-00006740: 696e 6520 2853 4f43 4b45 5420 3a20 536f ine (SOCKET : So\n-00006750: 636b 6574 5f46 4427 436c 6173 733b 0a20 cket_FD'Class;. \n-00006760: 2020 2020 2020 2020 2020 2020 2020 5354 ST\n-00006770: 5220 3a20 5374 7269 6e67 293b 0a0a 5041 R : String);..PA\n-00006780: 5241 4d45 5445 5253 0a20 2020 2020 534f RAMETERS. SO\n-00006790: 434b 4554 2020 2020 2069 6e20 2020 2020 CKET in \n-000067a0: 2020 2020 496e 6974 6961 6c69 7a65 6420 Initialized \n-000067b0: 616e 6420 636f 6e6e 6563 7465 6420 736f and connected so\n-000067c0: 636b 6574 206f 626a 6563 740a 2020 2020 cket object. \n-000067d0: 2053 5452 2020 2020 2020 2020 696e 2020 STR in \n-000067e0: 2020 2020 2020 2053 7472 696e 6720 746f String to\n-000067f0: 2073 656e 640a 0a44 4553 4352 4950 5449 send..DESCRIPTI\n-00006800: 4f4e 0a20 2020 2020 5468 6973 2070 726f ON. This pro\n-00006810: 6365 6475 7265 2073 656e 6473 2074 6865 cedure sends the\n-00006820: 2063 6f6e 7465 6e74 206f 6620 5354 5220 content of STR \n-00006830: 706c 7573 2061 2043 522f 4c46 2063 6f6d plus a CR/LF com\n-00006840: 6269 6e61 7469 6f6e 0a20 2020 2020 6f76 bination. ov\n-00006850: 6572 2061 6e20 6f75 7467 6f69 6e67 206f er an outgoing o\n-00006860: 7220 696e 636f 6d69 6e67 2073 6f63 6b65 r incoming socke\n-00006870: 742e 0a0a 4558 4345 5054 494f 4e53 0a20 t...EXCEPTIONS. \n-00006880: 2020 2020 e280 9843 6f6e 6e65 6374 696f ...Connectio\n-00006890: 6e5f 436c 6f73 6564 e280 9950 6565 7220 n_Closed...Peer \n-000068a0: 6861 7320 7072 656d 6174 7572 656c 7920 has prematurely \n-000068b0: 636c 6f73 6564 2074 6865 2063 6f6e 6e65 closed the conne\n-000068c0: 6374 696f 6e0a 0a53 4545 2041 4c53 4f0a ction..SEE ALSO.\n-000068d0: 2020 2020 202a 6e6f 7465 204e 6577 5f4c *note New_L\n-000068e0: 696e 6520 2870 726f 6365 6475 7265 293a ine (procedure):\n-000068f0: 3a2c 0a20 2020 2020 2a6e 6f74 6520 5075 :,. *note Pu\n-00006900: 7420 2870 726f 6365 6475 7265 293a 3a2c t (procedure)::,\n-00006910: 0a20 2020 2020 2a6e 6f74 6520 5365 6e64 . *note Send\n-00006920: 2028 7072 6f63 6564 7572 6529 3a3a 2e0a (procedure)::..\n-00006930: 0a1f 0a46 696c 653a 2061 6461 736f 636b ...File: adasock\n-00006940: 6574 732e 696e 666f 2c20 204e 6f64 653a ets.info, Node:\n-00006950: 2052 6563 6569 7665 2028 6675 6e63 7469 Receive (functi\n-00006960: 6f6e 292c 2020 4e65 7874 3a20 5265 6365 on), Next: Rece\n-00006970: 6976 6520 2870 726f 6365 6475 7265 292c ive (procedure),\n-00006980: 2020 5072 6576 3a20 5075 745f 4c69 6e65 Prev: Put_Line\n-00006990: 2028 7072 6f63 6564 7572 6529 2c20 2055 (procedure), U\n-000069a0: 703a 2041 6363 6570 745f 536f 636b 6574 p: Accept_Socket\n-000069b0: 2028 7072 6f63 6564 7572 6529 0a0a 5265 (procedure)..Re\n-000069c0: 6365 6976 6520 2866 756e 6374 696f 6e29 ceive (function)\n-000069d0: 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d .---------------\n-000069e0: 2d2d 2d0a 0a50 5552 504f 5345 0a20 2020 ---..PURPOSE. \n-000069f0: 2020 5265 6365 6976 6520 7261 7720 6461 Receive raw da\n-00006a00: 7461 206f 7665 7220 6120 736f 636b 6574 ta over a socket\n-00006a10: 0a50 524f 544f 5459 5045 0a20 2020 2020 .PROTOTYPE. \n-00006a20: 202d 2d20 536f 636b 6574 732e 5265 6365 -- Sockets.Rece\n-00006a30: 6976 653a 2066 756e 6374 696f 6e20 5265 ive: function Re\n-00006a40: 6365 6976 6520 2853 4f43 4b45 5420 3a20 ceive (SOCKET : \n-00006a50: 536f 636b 6574 5f46 443b 0a20 2020 2020 Socket_FD;. \n-00006a60: 2020 2020 2020 2020 2020 4d41 5820 3a20 MAX : \n-00006a70: 4164 612e 5374 7265 616d 732e 5374 7265 Ada.Streams.Stre\n-00006a80: 616d 5f45 6c65 6d65 6e74 5f43 6f75 6e74 am_Element_Count\n-00006a90: 203a 3d20 3430 3936 290a 2020 2020 2020 := 4096). \n-00006aa0: 2020 2020 2020 2020 2072 6574 7572 6e20 return \n-00006ab0: 4164 612e 5374 7265 616d 732e 5374 7265 Ada.Streams.Stre\n-00006ac0: 616d 5f45 6c65 6d65 6e74 5f41 7272 6179 am_Element_Array\n-00006ad0: 3b0a 0a50 4152 414d 4554 4552 530a 2020 ;..PARAMETERS. \n-00006ae0: 2020 2053 4f43 4b45 5420 2020 2020 696e SOCKET in\n-00006af0: 2020 2020 2020 2020 2049 6e69 7469 616c Initial\n-00006b00: 697a 6564 2061 6e64 2062 6f75 6e64 206f ized and bound o\n-00006b10: 7220 636f 6e6e 6563 7465 640a 2020 2020 r connected. \n-00006b20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00006b30: 2020 2020 2020 2073 6f63 6b65 7420 6f62 socket ob\n-00006b40: 6a65 6374 0a20 2020 2020 4d41 5820 2020 ject. MAX \n-00006b50: 2020 2020 2069 6e20 2020 2020 2020 2020 in \n-00006b60: 4d61 7869 6d75 6d20 6461 7461 206c 656e Maximum data len\n-00006b70: 6774 680a 0a52 4554 5552 4e20 5641 4c55 gth..RETURN VALU\n-00006b80: 450a 2020 2020 2052 6563 6569 7665 6420 E. Received \n-00006b90: 7261 7720 6461 7461 0a0a 4445 5343 5249 raw data..DESCRI\n-00006ba0: 5054 494f 4e0a 2020 2020 2054 6869 7320 PTION. This \n-00006bb0: 7072 6f63 6564 7572 6520 7265 6365 6976 procedure receiv\n-00006bc0: 6573 2064 6174 6120 6672 6f6d 2061 2062 es data from a b\n-00006bd0: 6f75 6e64 2055 4450 2073 6f63 6b65 7420 ound UDP socket \n-00006be0: 6f72 2061 2063 6f6e 6e65 6374 6564 0a20 or a connected. \n-00006bf0: 2020 2020 5443 5020 736f 636b 6574 2e20 TCP socket. \n-00006c00: 204f 6e6c 7920 6f6e 6520 7379 7374 656d Only one system\n-00006c10: 2063 616c 6c20 7769 6c6c 2062 6520 7065 call will be pe\n-00006c20: 7266 6f72 6d65 643b 2074 6869 7320 6675 rformed; this fu\n-00006c30: 6e63 7469 6f6e 0a20 2020 2020 7769 6c6c nction. will\n-00006c40: 2072 6574 7572 6e20 7768 6174 6576 6572 return whatever\n-00006c50: 2064 6174 6120 6861 7320 6172 7269 7665 data has arrive\n-00006c60: 642e 2020 4e6f 7465 2074 6861 7420 696e d. Note that in\n-00006c70: 2047 4e41 5420 7468 650a 2020 2020 2073 GNAT the. s\n-00006c80: 6563 6f6e 6461 7279 2073 7461 636b 206d econdary stack m\n-00006c90: 6179 2062 6520 7573 6564 2074 6f20 7374 ay be used to st\n-00006ca0: 6f72 6520 7468 6520 6461 7461 2061 6e64 ore the data and\n-00006cb0: 206d 6179 2072 6573 756c 7420 696e 0a20 may result in. \n-00006cc0: 2020 2020 7374 6163 6b20 7374 6f72 6167 stack storag\n-00006cd0: 6520 6578 6861 7573 7469 6f6e 2e0a 0a45 e exhaustion...E\n-00006ce0: 5843 4550 5449 4f4e 530a 2020 2020 20e2 XCEPTIONS. .\n-00006cf0: 8098 436f 6e6e 6563 7469 6f6e 5f43 6c6f ..Connection_Clo\n-00006d00: 7365 64e2 8099 5065 6572 2068 6173 2063 sed...Peer has c\n-00006d10: 6c6f 7365 6420 7468 6520 636f 6e6e 6563 losed the connec\n-00006d20: 7469 6f6e 2062 6566 6f72 650a 2020 2020 tion before. \n-00006d30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00006d40: 2020 2020 7365 6e64 696e 6720 616e 7920 sending any \n-00006d50: 6461 7461 0a0a 5345 4520 414c 534f 0a20 data..SEE ALSO. \n-00006d60: 2020 2020 2a6e 6f74 6520 5265 6365 6976 *note Receiv\n-00006d70: 6520 2870 726f 6365 6475 7265 293a 3a2c e (procedure)::,\n-00006d80: 0a20 2020 2020 2a6e 6f74 6520 5265 6365 . *note Rece\n-00006d90: 6976 655f 536f 6d65 2028 7072 6f63 6564 ive_Some (proced\n-00006da0: 7572 6529 3a3a 2c0a 2020 2020 202a 6e6f ure)::,. *no\n-00006db0: 7465 2047 6574 5f4c 696e 6520 2866 756e te Get_Line (fun\n-00006dc0: 6374 696f 6e29 3a3a 2c0a 2020 2020 202a ction)::,. *\n-00006dd0: 6e6f 7465 2047 6574 5f4c 696e 6520 2870 note Get_Line (p\n-00006de0: 726f 6365 6475 7265 293a 3a2e 0a0a 1f0a rocedure)::.....\n-00006df0: 4669 6c65 3a20 6164 6173 6f63 6b65 7473 File: adasockets\n-00006e00: 2e69 6e66 6f2c 2020 4e6f 6465 3a20 5265 .info, Node: Re\n-00006e10: 6365 6976 6520 2870 726f 6365 6475 7265 ceive (procedure\n-00006e20: 292c 2020 4e65 7874 3a20 5265 6365 6976 ), Next: Receiv\n-00006e30: 655f 536f 6d65 2028 7072 6f63 6564 7572 e_Some (procedur\n-00006e40: 6529 2c20 2050 7265 763a 2052 6563 6569 e), Prev: Recei\n-00006e50: 7665 2028 6675 6e63 7469 6f6e 292c 2020 ve (function), \n-00006e60: 5570 3a20 4163 6365 7074 5f53 6f63 6b65 Up: Accept_Socke\n-00006e70: 7420 2870 726f 6365 6475 7265 290a 0a52 t (procedure)..R\n-00006e80: 6563 6569 7665 2028 7072 6f63 6564 7572 eceive (procedur\n-00006e90: 6529 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d e).-------------\n-00006ea0: 2d2d 2d2d 2d2d 0a0a 5055 5250 4f53 450a ------..PURPOSE.\n-00006eb0: 2020 2020 2052 6563 6569 7665 2072 6177 Receive raw\n-00006ec0: 2064 6174 6120 6f76 6572 2061 2073 6f63 data over a soc\n-00006ed0: 6b65 740a 5052 4f54 4f54 5950 450a 2020 ket.PROTOTYPE. \n-00006ee0: 2020 2020 2d2d 2053 6f63 6b65 7473 2e52 -- Sockets.R\n-00006ef0: 6563 6569 7665 3a20 7072 6f63 6564 7572 eceive: procedur\n-00006f00: 6520 5265 6365 6976 6520 2853 4f43 4b45 e Receive (SOCKE\n-00006f10: 5420 3a20 536f 636b 6574 5f46 4427 436c T : Socket_FD'Cl\n-00006f20: 6173 733b 0a20 2020 2020 2020 2020 2020 ass;. \n-00006f30: 2020 2020 4441 5441 203a 206f 7574 2041 DATA : out A\n-00006f40: 6461 2e53 7472 6561 6d73 2e53 7472 6561 da.Streams.Strea\n-00006f50: 6d5f 456c 656d 656e 745f 4172 7261 7929 m_Element_Array)\n-00006f60: 3b0a 0a50 4152 414d 4554 4552 530a 2020 ;..PARAMETERS. \n-00006f70: 2020 2053 4f43 4b45 5420 2020 2020 696e SOCKET in\n-00006f80: 2020 2020 2020 2020 2049 6e69 7469 616c Initial\n-00006f90: 697a 6564 2061 6e64 2062 6f75 6e64 206f ized and bound o\n-00006fa0: 7220 636f 6e6e 6563 7465 640a 2020 2020 r connected. \n-00006fb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00006fc0: 2020 2020 2020 2073 6f63 6b65 7420 6f62 socket ob\n-00006fd0: 6a65 6374 0a20 2020 2020 4441 5441 2020 ject. DATA \n-00006fe0: 2020 2020 206f 7574 2020 2020 2020 2020 out \n-00006ff0: 496e 636f 6d69 6e67 2064 6174 6120 6275 Incoming data bu\n-00007000: 6666 6572 0a0a 4445 5343 5249 5054 494f ffer..DESCRIPTIO\n-00007010: 4e0a 2020 2020 2054 6869 7320 7072 6f63 N. This proc\n-00007020: 6564 7572 6520 7265 6365 6976 6573 2064 edure receives d\n-00007030: 6174 6120 6672 6f6d 2061 2062 6f75 6e64 ata from a bound\n-00007040: 2055 4450 2073 6f63 6b65 7420 6f72 2061 UDP socket or a\n-00007050: 2063 6f6e 6e65 6374 6564 0a20 2020 2020 connected. \n-00007060: 5443 5020 736f 636b 6574 2e20 2049 7420 TCP socket. It \n-00007070: 7769 6c6c 2062 6c6f 636b 2075 6e74 696c will block until\n-00007080: 2074 6865 2044 4154 4120 7265 6365 7074 the DATA recept\n-00007090: 696f 6e20 6275 6666 6572 2068 6173 2062 ion buffer has b\n-000070a0: 6565 6e0a 2020 2020 2074 6f74 616c 6c79 een. totally\n-000070b0: 2066 696c 6c65 642e 0a0a 4558 4345 5054 filled...EXCEPT\n-000070c0: 494f 4e53 0a20 2020 2020 e280 9843 6f6e IONS. ...Con\n-000070d0: 6e65 6374 696f 6e5f 436c 6f73 6564 e280 nection_Closed..\n-000070e0: 9950 6565 7220 6861 7320 636c 6f73 6564 .Peer has closed\n-000070f0: 2074 6865 2063 6f6e 6e65 6374 696f 6e20 the connection \n-00007100: 6265 666f 7265 0a20 2020 2020 2020 2020 before. \n-00007110: 2020 2020 2020 2020 2020 2020 2020 20e2 .\n-00007120: 8098 4461 7461 274c 656e 6774 68e2 8099 ..Data'Length...\n-00007130: 2062 7974 6573 0a20 2020 2020 2020 2020 bytes. \n-00007140: 2020 2020 2020 2020 2020 2020 2020 2077 w\n-00007150: 6572 6520 7265 6365 6976 6564 0a0a 5345 ere received..SE\n-00007160: 4520 414c 534f 0a20 2020 2020 2a6e 6f74 E ALSO. *not\n-00007170: 6520 4765 745f 4c69 6e65 2028 6675 6e63 e Get_Line (func\n-00007180: 7469 6f6e 293a 3a2c 0a20 2020 2020 2a6e tion)::,. *n\n-00007190: 6f74 6520 4765 745f 4c69 6e65 2028 7072 ote Get_Line (pr\n-000071a0: 6f63 6564 7572 6529 3a3a 2c0a 2020 2020 ocedure)::,. \n-000071b0: 202a 6e6f 7465 2052 6563 6569 7665 2028 *note Receive (\n-000071c0: 6675 6e63 7469 6f6e 293a 3a2c 0a20 2020 function)::,. \n-000071d0: 2020 2a6e 6f74 6520 5265 6365 6976 655f *note Receive_\n-000071e0: 536f 6d65 2028 7072 6f63 6564 7572 6529 Some (procedure)\n-000071f0: 3a3a 2e0a 0a1f 0a46 696c 653a 2061 6461 ::.....File: ada\n-00007200: 736f 636b 6574 732e 696e 666f 2c20 204e sockets.info, N\n-00007210: 6f64 653a 2052 6563 6569 7665 5f53 6f6d ode: Receive_Som\n-00007220: 6520 2870 726f 6365 6475 7265 292c 2020 e (procedure), \n-00007230: 4e65 7874 3a20 5365 6e64 2028 7072 6f63 Next: Send (proc\n-00007240: 6564 7572 6529 2c20 2050 7265 763a 2052 edure), Prev: R\n-00007250: 6563 6569 7665 2028 7072 6f63 6564 7572 eceive (procedur\n-00007260: 6529 2c20 2055 703a 2041 6363 6570 745f e), Up: Accept_\n-00007270: 536f 636b 6574 2028 7072 6f63 6564 7572 Socket (procedur\n-00007280: 6529 0a0a 5265 6365 6976 655f 536f 6d65 e)..Receive_Some\n-00007290: 2028 7072 6f63 6564 7572 6529 0a2d 2d2d (procedure).---\n-000072a0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-000072b0: 2d2d 2d2d 2d0a 0a50 5552 504f 5345 0a20 -----..PURPOSE. \n-000072c0: 2020 2020 5265 6365 6976 6520 7261 7720 Receive raw \n-000072d0: 6461 7461 206f 7665 7220 6120 736f 636b data over a sock\n-000072e0: 6574 0a50 524f 544f 5459 5045 0a20 2020 et.PROTOTYPE. \n-000072f0: 2020 202d 2d20 536f 636b 6574 732e 5265 -- Sockets.Re\n-00007300: 6365 6976 655f 536f 6d65 3a20 7072 6f63 ceive_Some: proc\n-00007310: 6564 7572 6520 5265 6365 6976 655f 536f edure Receive_So\n-00007320: 6d65 0a20 2020 2020 2020 2020 2020 2020 me. \n-00007330: 2020 2853 4f43 4b45 5420 3a20 536f 636b (SOCKET : Sock\n-00007340: 6574 5f46 4427 436c 6173 733b 0a20 2020 et_FD'Class;. \n-00007350: 2020 2020 2020 2020 2020 2020 4441 5441 DATA\n-00007360: 203a 206f 7574 2041 6461 2e53 7472 6561 : out Ada.Strea\n-00007370: 6d73 2e53 7472 6561 6d5f 456c 656d 656e ms.Stream_Elemen\n-00007380: 745f 4172 7261 793b 0a20 2020 2020 2020 t_Array;. \n-00007390: 2020 2020 2020 2020 4c41 5354 203a 206f LAST : o\n-000073a0: 7574 2041 6461 2e53 7472 6561 6d73 2e53 ut Ada.Streams.S\n-000073b0: 7472 6561 6d5f 456c 656d 656e 745f 4f66 tream_Element_Of\n-000073c0: 6673 6574 293b 0a0a 5041 5241 4d45 5445 fset);..PARAMETE\n-000073d0: 5253 0a20 2020 2020 534f 434b 4554 2020 RS. SOCKET \n-000073e0: 2020 2069 6e20 2020 2020 2020 2020 496e in In\n-000073f0: 6974 6961 6c69 7a65 6420 616e 6420 626f itialized and bo\n-00007400: 756e 6420 6f72 2063 6f6e 6e65 6374 6564 und or connected\n-00007410: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-00007420: 2020 2020 2020 2020 2020 2020 736f 636b sock\n-00007430: 6574 206f 626a 6563 740a 2020 2020 2044 et object. D\n-00007440: 4154 4120 2020 2020 2020 6f75 7420 2020 ATA out \n-00007450: 2020 2020 2049 6e63 6f6d 696e 6720 6461 Incoming da\n-00007460: 7461 2062 7566 6665 720a 2020 2020 204c ta buffer. L\n-00007470: 4153 5420 2020 2020 2020 6f75 7420 2020 AST out \n-00007480: 2020 2020 2049 6e64 6578 206f 6620 6c61 Index of la\n-00007490: 7374 2065 6c65 6d65 6e74 2070 6c61 6365 st element place\n-000074a0: 6420 696e 746f 2044 4154 410a 0a44 4553 d into DATA..DES\n-000074b0: 4352 4950 5449 4f4e 0a20 2020 2020 5468 CRIPTION. Th\n-000074c0: 6973 2070 726f 6365 6475 7265 2072 6563 is procedure rec\n-000074d0: 6569 7665 7320 6461 7461 2066 726f 6d20 eives data from \n-000074e0: 6120 626f 756e 6420 5544 5020 736f 636b a bound UDP sock\n-000074f0: 6574 206f 7220 6120 636f 6e6e 6563 7465 et or a connecte\n-00007500: 640a 2020 2020 2054 4350 2073 6f63 6b65 d. TCP socke\n-00007510: 742e 2020 4173 2073 6f6f 6e20 6173 2061 t. As soon as a\n-00007520: 7420 6c65 6173 7420 6f6e 6520 6279 7465 t least one byte\n-00007530: 2068 6173 2062 6565 6e20 7265 6164 2c20 has been read, \n-00007540: 6974 2072 6574 7572 6e73 0a20 2020 2020 it returns. \n-00007550: 7769 7468 204c 4153 5420 7365 7420 746f with LAST set to\n-00007560: 2074 6865 2069 6e64 6578 206f 6620 7468 the index of th\n-00007570: 6520 6c61 7465 7374 2077 7269 7474 656e e latest written\n-00007580: 2065 6c65 6d65 6e74 206f 6620 4441 5441 element of DATA\n-00007590: 2e0a 0a45 5843 4550 5449 4f4e 530a 2020 ...EXCEPTIONS. \n-000075a0: 2020 20e2 8098 436f 6e6e 6563 7469 6f6e ...Connection\n-000075b0: 5f43 6c6f 7365 64e2 8099 5065 6572 2068 _Closed...Peer h\n-000075c0: 6173 2063 6c6f 7365 6420 7468 6520 636f as closed the co\n-000075d0: 6e6e 6563 7469 6f6e 2062 6566 6f72 650a nnection before.\n-000075e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-000075f0: 2020 2020 2020 2020 7365 6e64 696e 6720 sending \n-00007600: 616e 7920 6461 7461 0a0a 5345 4520 414c any data..SEE AL\n-00007610: 534f 0a20 2020 2020 2a6e 6f74 6520 4765 SO. *note Ge\n-00007620: 745f 4c69 6e65 2028 6675 6e63 7469 6f6e t_Line (function\n-00007630: 293a 3a2c 0a20 2020 2020 2a6e 6f74 6520 )::,. *note \n-00007640: 4765 745f 4c69 6e65 2028 7072 6f63 6564 Get_Line (proced\n-00007650: 7572 6529 3a3a 2c0a 2020 2020 202a 6e6f ure)::,. *no\n-00007660: 7465 2052 6563 6569 7665 2028 6675 6e63 te Receive (func\n-00007670: 7469 6f6e 293a 3a2c 0a20 2020 2020 2a6e tion)::,. *n\n-00007680: 6f74 6520 5265 6365 6976 6520 2870 726f ote Receive (pro\n-00007690: 6365 6475 7265 293a 3a2e 0a0a 1f0a 4669 cedure)::.....Fi\n-000076a0: 6c65 3a20 6164 6173 6f63 6b65 7473 2e69 le: adasockets.i\n-000076b0: 6e66 6f2c 2020 4e6f 6465 3a20 5365 6e64 nfo, Node: Send\n-000076c0: 2028 7072 6f63 6564 7572 6529 2c20 204e (procedure), N\n-000076d0: 6578 743a 2053 6574 5f42 7566 6665 7220 ext: Set_Buffer \n-000076e0: 2870 726f 6365 6475 7265 292c 2020 5072 (procedure), Pr\n-000076f0: 6576 3a20 5265 6365 6976 655f 536f 6d65 ev: Receive_Some\n-00007700: 2028 7072 6f63 6564 7572 6529 2c20 2055 (procedure), U\n-00007710: 703a 2041 6363 6570 745f 536f 636b 6574 p: Accept_Socket\n-00007720: 2028 7072 6f63 6564 7572 6529 0a0a 5365 (procedure)..Se\n-00007730: 6e64 2028 7072 6f63 6564 7572 6529 0a2d nd (procedure).-\n-00007740: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a ---------------.\n-00007750: 0a50 5552 504f 5345 0a20 2020 2020 5365 .PURPOSE. Se\n-00007760: 6e64 2072 6177 2064 6174 6120 6f76 6572 nd raw data over\n-00007770: 2061 2073 6f63 6b65 740a 5052 4f54 4f54 a socket.PROTOT\n-00007780: 5950 450a 2020 2020 2020 2d2d 2053 6f63 YPE. -- Soc\n-00007790: 6b65 7473 2e53 656e 643a 2070 726f 6365 kets.Send: proce\n-000077a0: 6475 7265 2053 656e 6420 2853 4f43 4b45 dure Send (SOCKE\n-000077b0: 5420 3a20 536f 636b 6574 5f46 443b 0a20 T : Socket_FD;. \n-000077c0: 2020 2020 2020 2020 2020 2020 2020 4441 DA\n-000077d0: 5441 203a 206f 7574 2041 6461 2e53 7472 TA : out Ada.Str\n-000077e0: 6561 6d73 2e53 7472 6561 6d5f 456c 656d eams.Stream_Elem\n-000077f0: 656e 745f 4172 7261 7929 3b0a 0a50 4152 ent_Array);..PAR\n-00007800: 414d 4554 4552 530a 2020 2020 2053 4f43 AMETERS. SOC\n-00007810: 4b45 5420 2020 2020 696e 2020 2020 2020 KET in \n-00007820: 2020 2049 6e69 7469 616c 697a 6564 2061 Initialized a\n-00007830: 6e64 2063 6f6e 6e65 6374 6564 2073 6f63 nd connected soc\n-00007840: 6b65 7420 6f62 6a65 6374 0a20 2020 2020 ket object. \n-00007850: 4441 5441 2020 2020 2020 206f 7574 2020 DATA out \n-00007860: 2020 2020 2020 4461 7461 2074 6f20 6265 Data to be\n-00007870: 2073 656e 740a 0a44 4553 4352 4950 5449 sent..DESCRIPTI\n-00007880: 4f4e 0a20 2020 2020 5468 6973 2070 726f ON. This pro\n-00007890: 6365 6475 7265 2073 656e 6473 2064 6174 cedure sends dat\n-000078a0: 6120 6f76 6572 2061 2063 6f6e 6e65 6374 a over a connect\n-000078b0: 6564 206f 7574 676f 696e 6720 736f 636b ed outgoing sock\n-000078c0: 6574 206f 7220 6f76 6572 0a20 2020 2020 et or over. \n-000078d0: 616e 2069 6e63 6f6d 696e 6720 736f 636b an incoming sock\n-000078e0: 6574 2e0a 0a45 5843 4550 5449 4f4e 530a et...EXCEPTIONS.\n-000078f0: 2020 2020 20e2 8098 436f 6e6e 6563 7469 ...Connecti\n-00007900: 6f6e 5f43 6c6f 7365 64e2 8099 5065 6572 on_Closed...Peer\n-00007910: 2068 6173 2070 7265 6d61 7475 7265 6c79 has prematurely\n-00007920: 2063 6c6f 7365 6420 7468 6520 636f 6e6e closed the conn\n-00007930: 6563 7469 6f6e 0a0a 5345 4520 414c 534f ection..SEE ALSO\n-00007940: 0a20 2020 2020 2a6e 6f74 6520 5075 7420 . *note Put \n-00007950: 2870 726f 6365 6475 7265 293a 3a2c 0a20 (procedure)::,. \n-00007960: 2020 2020 2a6e 6f74 6520 5075 745f 4c69 *note Put_Li\n-00007970: 6e65 2028 7072 6f63 6564 7572 6529 3a3a ne (procedure)::\n-00007980: 2e0a 0a1f 0a46 696c 653a 2061 6461 736f .....File: adaso\n-00007990: 636b 6574 732e 696e 666f 2c20 204e 6f64 ckets.info, Nod\n-000079a0: 653a 2053 6574 5f42 7566 6665 7220 2870 e: Set_Buffer (p\n-000079b0: 726f 6365 6475 7265 292c 2020 4e65 7874 rocedure), Next\n-000079c0: 3a20 5365 7473 6f63 6b6f 7074 2028 7072 : Setsockopt (pr\n-000079d0: 6f63 6564 7572 6529 2c20 2050 7265 763a ocedure), Prev:\n-000079e0: 2053 656e 6420 2870 726f 6365 6475 7265 Send (procedure\n-000079f0: 292c 2020 5570 3a20 4163 6365 7074 5f53 ), Up: Accept_S\n-00007a00: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n-00007a10: 290a 0a53 6574 5f42 7566 6665 7220 2870 )..Set_Buffer (p\n-00007a20: 726f 6365 6475 7265 290a 2d2d 2d2d 2d2d rocedure).------\n-00007a30: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-00007a40: 0a0a 5055 5250 4f53 450a 2020 2020 2049 ..PURPOSE. I\n-00007a50: 6e73 7461 6c6c 2061 206c 696e 652d 6f72 nstall a line-or\n-00007a60: 6965 6e74 6564 2062 7566 6665 7220 6f66 iented buffer of\n-00007a70: 2074 6865 2073 6f63 6b65 7420 6f62 6a65 the socket obje\n-00007a80: 6374 0a50 524f 544f 5459 5045 0a20 2020 ct.PROTOTYPE. \n-00007a90: 2020 202d 2d20 536f 636b 6574 732e 5365 -- Sockets.Se\n-00007aa0: 745f 4275 6666 6572 3a20 7072 6f63 6564 t_Buffer: proced\n-00007ab0: 7572 6520 5365 745f 4275 6666 6572 0a20 ure Set_Buffer. \n-00007ac0: 2020 2020 2020 2020 2020 2020 2020 2853 (S\n-00007ad0: 4f43 4b45 5420 3a20 536f 636b 6574 5f46 OCKET : Socket_F\n-00007ae0: 4427 436c 6173 733b 204c 454e 4754 4820 D'Class; LENGTH \n-00007af0: 3a20 506f 7369 7469 7665 203a 3d20 3135 : Positive := 15\n-00007b00: 3030 293b 0a0a 5041 5241 4d45 5445 5253 00);..PARAMETERS\n-00007b10: 0a20 2020 2020 534f 434b 4554 2020 2020 . SOCKET \n-00007b20: 2069 6e20 2020 2020 2020 2020 496e 6974 in Init\n-00007b30: 6961 6c69 7a65 6420 616e 6420 636f 6e6e ialized and conn\n-00007b40: 6563 7465 6420 736f 636b 6574 206f 626a ected socket obj\n-00007b50: 6563 740a 2020 2020 204c 454e 4754 4820 ect. LENGTH \n-00007b60: 2020 2020 696e 2020 2020 2020 2020 2053 in S\n-00007b70: 697a 6520 696e 2062 7974 6573 206f 6620 ize in bytes of \n-00007b80: 7468 6520 6e65 776c 7920 696e 7374 616c the newly instal\n-00007b90: 6c65 640a 2020 2020 2020 2020 2020 2020 led. \n-00007ba0: 2020 2020 2020 2020 2020 2020 2020 2062 b\n-00007bb0: 7566 6665 720a 0a44 4553 4352 4950 5449 uffer..DESCRIPTI\n-00007bc0: 4f4e 0a20 2020 2020 5468 6973 2070 726f ON. This pro\n-00007bd0: 6365 6475 7265 2070 7574 7320 7468 6520 cedure puts the \n-00007be0: 736f 636b 6574 206f 626a 6563 7420 696e socket object in\n-00007bf0: 2062 7566 6665 7265 6420 6d6f 6465 2e20 buffered mode. \n-00007c00: 2049 6620 7468 650a 2020 2020 2073 6f63 If the. soc\n-00007c10: 6b65 7420 7761 7320 616c 7265 6164 7920 ket was already \n-00007c20: 6275 6666 6572 6564 2c20 7468 6520 636f buffered, the co\n-00007c30: 6e74 656e 7420 6f66 2074 6865 2070 7265 ntent of the pre\n-00007c40: 7669 6f75 7320 6275 6666 6572 0a20 2020 vious buffer. \n-00007c50: 2020 7769 6c6c 2062 6520 6c6f 7374 2e20 will be lost. \n-00007c60: 2054 6865 2062 7566 6665 7265 6420 6d6f The buffered mo\n-00007c70: 6465 206f 6e6c 7920 6166 6665 6374 7320 de only affects \n-00007c80: 6368 6172 6163 7465 722d 2061 6e64 0a20 character- and. \n-00007c90: 2020 2020 6c69 6e65 2d6f 7269 656e 7465 line-oriente\n-00007ca0: 6420 7265 6164 206f 7065 7261 7469 6f6e d read operation\n-00007cb0: 2073 7563 6820 6173 202a 6e6f 7465 2047 such as *note G\n-00007cc0: 6574 2028 6675 6e63 7469 6f6e 293a 3a2c et (function)::,\n-00007cd0: 202a 6e6f 7465 0a20 2020 2020 4765 745f *note. Get_\n-00007ce0: 4368 6172 2028 6675 6e63 7469 6f6e 293a Char (function):\n-00007cf0: 3a2c 2061 6e64 202a 6e6f 7465 2047 6574 :, and *note Get\n-00007d00: 5f4c 696e 6520 2866 756e 6374 696f 6e29 _Line (function)\n-00007d10: 3a3a 2e20 204f 7468 6572 0a20 2020 2020 ::. Other. \n-00007d20: 7265 6365 7074 696f 6e20 7375 6270 726f reception subpro\n-00007d30: 6772 616d 7320 7769 6c6c 206e 6f74 2066 grams will not f\n-00007d40: 756e 6374 696f 6e20 7072 6f70 6572 6c79 unction properly\n-00007d50: 2069 6620 6275 6666 6572 6564 206d 6f64 if buffered mod\n-00007d60: 650a 2020 2020 2069 7320 7573 6564 2061 e. is used a\n-00007d70: 7420 7468 6520 7361 6d65 2074 696d 652e t the same time.\n-00007d80: 0a0a 2020 2020 2054 6865 2073 697a 6520 .. The size \n-00007d90: 6f66 2074 6865 2062 7566 6665 7220 6861 of the buffer ha\n-00007da0: 7320 746f 2062 6520 6772 6561 7465 7220 s to be greater \n-00007db0: 7468 616e 2074 6865 2062 6967 6765 7374 than the biggest\n-00007dc0: 2070 6f73 7369 626c 650a 2020 2020 2070 possible. p\n-00007dd0: 6163 6b65 7420 7365 6e74 2062 7920 7468 acket sent by th\n-00007de0: 6520 7265 6d6f 7465 2068 6f73 742c 206f e remote host, o\n-00007df0: 7468 6572 7769 7365 2064 6174 6120 6c6f therwise data lo\n-00007e00: 7373 206d 6179 206f 6363 7572 2e0a 0a53 ss may occur...S\n-00007e10: 4545 2041 4c53 4f0a 2020 2020 202a 6e6f EE ALSO. *no\n-00007e20: 7465 2055 6e73 6574 5f42 7566 6665 7220 te Unset_Buffer \n-00007e30: 2870 726f 6365 6475 7265 293a 3a2e 0a0a (procedure)::...\n-00007e40: 1f0a 4669 6c65 3a20 6164 6173 6f63 6b65 ..File: adasocke\n-00007e50: 7473 2e69 6e66 6f2c 2020 4e6f 6465 3a20 ts.info, Node: \n-00007e60: 5365 7473 6f63 6b6f 7074 2028 7072 6f63 Setsockopt (proc\n-00007e70: 6564 7572 6529 2c20 204e 6578 743a 2053 edure), Next: S\n-00007e80: 6875 7464 6f77 6e20 2870 726f 6365 6475 hutdown (procedu\n-00007e90: 7265 292c 2020 5072 6576 3a20 5365 745f re), Prev: Set_\n-00007ea0: 4275 6666 6572 2028 7072 6f63 6564 7572 Buffer (procedur\n-00007eb0: 6529 2c20 2055 703a 2041 6363 6570 745f e), Up: Accept_\n-00007ec0: 536f 636b 6574 2028 7072 6f63 6564 7572 Socket (procedur\n-00007ed0: 6529 0a0a 5365 7473 6f63 6b6f 7074 2028 e)..Setsockopt (\n-00007ee0: 7072 6f63 6564 7572 6529 0a2d 2d2d 2d2d procedure).-----\n-00007ef0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-00007f00: 2d0a 0a50 5552 504f 5345 0a20 2020 2020 -..PURPOSE. \n-00007f10: 5365 7420 6120 736f 636b 6574 206f 7074 Set a socket opt\n-00007f20: 696f 6e0a 5052 4f54 4f54 5950 450a 2020 ion.PROTOTYPE. \n-00007f30: 2020 2020 2d2d 2053 6f63 6b65 7473 2e53 -- Sockets.S\n-00007f40: 6574 736f 636b 6f70 743a 2070 726f 6365 etsockopt: proce\n-00007f50: 6475 7265 2053 6574 736f 636b 6f70 7420 dure Setsockopt \n-00007f60: 2853 4f43 4b45 5420 3a20 536f 636b 6574 (SOCKET : Socket\n-00007f70: 5f46 443b 0a20 2020 2020 2020 2020 2020 _FD;. \n-00007f80: 2020 2020 4c45 5645 4c20 3a20 536f 636b LEVEL : Sock\n-00007f90: 6574 5f4c 6576 656c 203a 3d20 534f 4c5f et_Level := SOL_\n-00007fa0: 534f 434b 4554 3b0a 2020 2020 2020 2020 SOCKET;. \n-00007fb0: 2020 2020 2020 204f 5054 4e41 4d45 203a OPTNAME :\n-00007fc0: 2053 6f63 6b65 745f 4f70 7469 6f6e 3b20 Socket_Option; \n-00007fd0: 4f50 5456 414c 203a 2049 6e74 6567 6572 OPTVAL : Integer\n-00007fe0: 293b 0a0a 5041 5241 4d45 5445 5253 0a20 );..PARAMETERS. \n-00007ff0: 2020 2020 534f 434b 4554 2020 2020 2069 SOCKET i\n-00008000: 6e20 2020 2020 2020 2020 496e 6974 6961 n Initia\n-00008010: 6c69 7a65 6420 616e 6420 626f 756e 6420 lized and bound \n-00008020: 736f 636b 6574 206f 626a 6563 740a 2020 socket object. \n-00008030: 2020 204c 4556 454c 2020 2020 2020 696e LEVEL in\n-00008040: 2020 2020 2020 2020 2050 726f 746f 636f Protoco\n-00008050: 6c20 6c65 7665 6c0a 2020 2020 204f 5054 l level. OPT\n-00008060: 4e41 4d45 2020 2020 696e 2020 2020 2020 NAME in \n-00008070: 2020 204f 7074 696f 6e20 6e61 6d65 0a20 Option name. \n-00008080: 2020 2020 4f50 5456 414c 2020 2020 2069 OPTVAL i\n-00008090: 6e20 2020 2020 2020 2020 4f70 7469 6f6e n Option\n-000080a0: 2076 616c 7565 0a0a 4445 5343 5249 5054 value..DESCRIPT\n-000080b0: 494f 4e0a 2020 2020 2054 6869 7320 7072 ION. This pr\n-000080c0: 6f63 6564 7572 6520 7365 7473 206f 7074 ocedure sets opt\n-000080d0: 696f 6e73 2061 7070 6c69 6361 626c 6520 ions applicable \n-000080e0: 746f 2061 2073 6f63 6b65 742e 2020 506c to a socket. Pl\n-000080f0: 6561 7365 2073 6565 0a20 2020 2020 796f ease see. yo\n-00008100: 7572 206f 7065 7261 7469 6e67 2073 7973 ur operating sys\n-00008110: 7465 6d20 6d61 6e75 616c 2066 6f72 2075 tem manual for u\n-00008120: 7361 626c 6520 6c65 7665 6c73 2061 6e64 sable levels and\n-00008130: 206f 7074 696f 6e73 2e0a 0a20 2020 2020 options... \n-00008140: 5477 6f20 6c65 7665 6c73 2061 7265 2064 Two levels are d\n-00008150: 6566 696e 6564 3a20 e280 9853 4f4c 5f53 efined: ...SOL_S\n-00008160: 4f43 4b45 54e2 8099 2028 7468 6520 6465 OCKET... (the de\n-00008170: 6661 756c 7429 2061 6e64 0a20 2020 2020 fault) and. \n-00008180: e280 9849 5050 524f 544f 5f49 50e2 8099 ...IPPROTO_IP...\n-00008190: 2e20 2054 6865 206f 7074 696f 6e73 2061 . The options a\n-000081a0: 7265 20e2 8098 534f 5f52 4555 5345 4144 re ...SO_REUSEAD\n-000081b0: 4452 e280 992c 20e2 8098 534f 5f52 4555 DR..., ...SO_REU\n-000081c0: 5345 504f 5254 e280 992c 0a20 2020 2020 SEPORT...,. \n-000081d0: e280 9849 505f 4d55 4c54 4943 4153 545f ...IP_MULTICAST_\n-000081e0: 5454 4ce2 8099 2c20 e280 9849 505f 4144 TTL..., ...IP_AD\n-000081f0: 445f 4d45 4d42 4552 5348 4950 e280 992c D_MEMBERSHIP...,\n-00008200: 20e2 8098 4950 5f44 524f 505f 4d45 4d42 ...IP_DROP_MEMB\n-00008210: 4552 5348 4950 e280 992c 0a20 2020 2020 ERSHIP...,. \n-00008220: e280 9849 505f 4d55 4c54 4943 4153 545f ...IP_MULTICAST_\n-00008230: 4c4f 4f50 e280 992c 20e2 8098 534f 5f53 LOOP..., ...SO_S\n-00008240: 4e44 4255 46e2 8099 2061 6e64 20e2 8098 NDBUF... and ...\n-00008250: 4950 5f52 4356 4255 46e2 8099 2e0a 0a20 IP_RCVBUF...... \n-00008260: 2020 2020 4e6f 7465 2074 6861 7420 756e Note that un\n-00008270: 6c69 6b65 2074 6865 6972 2043 206c 616e like their C lan\n-00008280: 6775 6167 6520 636f 756e 7465 7270 6172 guage counterpar\n-00008290: 742c 20e2 8098 4765 7473 6f63 6b6f 7074 t, ...Getsockopt\n-000082a0: e280 9920 616e 640a 2020 2020 20e2 8098 ... and. ...\n-000082b0: 5365 7473 6f63 6b6f 7074 e280 9920 646f Setsockopt... do\n-000082c0: 206e 6f74 2072 6571 7569 7265 2061 6e20 not require an \n-000082d0: 6578 7472 6120 7061 7261 6d65 7465 7220 extra parameter \n-000082e0: 7265 7072 6573 656e 7469 6e67 2074 6865 representing the\n-000082f0: 0a20 2020 2020 6c65 6e67 7468 2069 6e20 . length in \n-00008300: 6279 7465 7320 6f66 2074 6865 206f 7074 bytes of the opt\n-00008310: 696f 6e20 7661 6c75 652e 2020 4164 6153 ion value. AdaS\n-00008320: 6f63 6b65 7473 206e 6f77 7320 7468 6520 ockets nows the \n-00008330: 7269 6768 740a 2020 2020 2073 697a 6520 right. size \n-00008340: 666f 7220 6576 6572 7920 6f70 7469 6f6e for every option\n-00008350: 2e0a 0a53 4545 2041 4c53 4f0a 2020 2020 ...SEE ALSO. \n-00008360: 202a 6e6f 7465 2047 6574 736f 636b 6f70 *note Getsockop\n-00008370: 7420 2870 726f 6365 6475 7265 293a 3a2e t (procedure)::.\n-00008380: 0a0a 1f0a 4669 6c65 3a20 6164 6173 6f63 ....File: adasoc\n-00008390: 6b65 7473 2e69 6e66 6f2c 2020 4e6f 6465 kets.info, Node\n-000083a0: 3a20 5368 7574 646f 776e 2028 7072 6f63 : Shutdown (proc\n-000083b0: 6564 7572 6529 2c20 204e 6578 743a 2053 edure), Next: S\n-000083c0: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n-000083d0: 292c 2020 5072 6576 3a20 5365 7473 6f63 ), Prev: Setsoc\n-000083e0: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n-000083f0: 2c20 2055 703a 2041 6363 6570 745f 536f , Up: Accept_So\n-00008400: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n-00008410: 0a0a 5368 7574 646f 776e 2028 7072 6f63 ..Shutdown (proc\n-00008420: 6564 7572 6529 0a2d 2d2d 2d2d 2d2d 2d2d edure).---------\n-00008430: 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a 0a50 5552 -----------..PUR\n-00008440: 504f 5345 0a20 2020 2020 5368 7574 646f POSE. Shutdo\n-00008450: 776e 2061 2073 6f63 6b65 740a 5052 4f54 wn a socket.PROT\n-00008460: 4f54 5950 450a 2020 2020 2020 2d2d 2053 OTYPE. -- S\n-00008470: 6f63 6b65 7473 2e53 6875 7464 6f77 6e3a ockets.Shutdown:\n-00008480: 2070 726f 6365 6475 7265 2053 6875 7464 procedure Shutd\n-00008490: 6f77 6e0a 2020 2020 2020 2020 2020 2020 own. \n-000084a0: 2020 2028 534f 434b 4554 203a 2069 6e20 (SOCKET : in \n-000084b0: 6f75 7420 536f 636b 6574 5f46 443b 2048 out Socket_FD; H\n-000084c0: 4f57 203a 2053 6875 7464 6f77 6e5f 5479 OW : Shutdown_Ty\n-000084d0: 7065 203a 3d20 426f 7468 293b 0a0a 5041 pe := Both);..PA\n-000084e0: 5241 4d45 5445 5253 0a20 2020 2020 534f RAMETERS. SO\n-000084f0: 434b 4554 2020 2020 2069 6e20 6f75 7420 CKET in out \n-00008500: 2020 2020 536f 636b 6574 206f 626a 6563 Socket objec\n-00008510: 7420 746f 2073 6875 7464 6f77 6e0a 2020 t to shutdown. \n-00008520: 2020 2048 4f57 2020 2020 2020 2020 696e HOW in\n-00008530: 2020 2020 2020 2020 2044 6972 6563 7469 Directi\n-00008540: 6f6e 2074 6f20 7368 7574 646f 776e 0a0a on to shutdown..\n-00008550: 4445 5343 5249 5054 494f 4e0a 2020 2020 DESCRIPTION. \n-00008560: 2054 6869 7320 7072 6f63 6564 7572 6520 This procedure \n-00008570: 7368 7574 646f 776e 7320 6569 7468 6572 shutdowns either\n-00008580: 2064 6972 6563 7469 6f6e 206f 6620 7468 direction of th\n-00008590: 6520 736f 636b 6574 2e20 2048 4f57 2063 e socket. HOW c\n-000085a0: 616e 0a20 2020 2020 7461 6b65 2074 6865 an. take the\n-000085b0: 2076 616c 7565 20e2 8098 5365 6e64 e280 value ...Send..\n-000085c0: 992c 20e2 8098 5265 6365 6976 65e2 8099 ., ...Receive...\n-000085d0: 206f 7220 e280 9842 6f74 68e2 8099 2e0a or ...Both.....\n-000085e0: 0a53 4545 2041 4c53 4f0a 2020 2020 202a .SEE ALSO. *\n-000085f0: 6e6f 7465 2053 6f63 6b65 7420 2870 726f note Socket (pro\n-00008600: 6365 6475 7265 293a 3a2e 0a0a 1f0a 4669 cedure)::.....Fi\n-00008610: 6c65 3a20 6164 6173 6f63 6b65 7473 2e69 le: adasockets.i\n-00008620: 6e66 6f2c 2020 4e6f 6465 3a20 536f 636b nfo, Node: Sock\n-00008630: 6574 2028 7072 6f63 6564 7572 6529 2c20 et (procedure), \n-00008640: 204e 6578 743a 2055 6e73 6574 5f42 7566 Next: Unset_Buf\n-00008650: 6665 7220 2870 726f 6365 6475 7265 292c fer (procedure),\n-00008660: 2020 5072 6576 3a20 5368 7574 646f 776e Prev: Shutdown\n-00008670: 2028 7072 6f63 6564 7572 6529 2c20 2055 (procedure), U\n-00008680: 703a 2041 6363 6570 745f 536f 636b 6574 p: Accept_Socket\n-00008690: 2028 7072 6f63 6564 7572 6529 0a0a 536f (procedure)..So\n-000086a0: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n-000086b0: 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d .---------------\n-000086c0: 2d2d 2d0a 0a50 5552 504f 5345 0a20 2020 ---..PURPOSE. \n-000086d0: 2020 4372 6561 7465 2061 2073 6f63 6b65 Create a socke\n-000086e0: 7420 6f66 2074 6865 2067 6976 656e 206d t of the given m\n-000086f0: 6f64 650a 5052 4f54 4f54 5950 450a 2020 ode.PROTOTYPE. \n-00008700: 2020 2020 2d2d 2053 6f63 6b65 7473 2e53 -- Sockets.S\n-00008710: 6f63 6b65 743a 2070 726f 6365 6475 7265 ocket: procedure\n-00008720: 2053 6f63 6b65 7420 2853 4f43 4b45 5420 Socket (SOCKET \n-00008730: 3a20 6f75 7420 536f 636b 6574 5f46 443b : out Socket_FD;\n-00008740: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-00008750: 444f 4d41 494e 203a 2053 6f63 6b65 745f DOMAIN : Socket_\n-00008760: 446f 6d61 696e 203a 3d20 5046 5f49 4e45 Domain := PF_INE\n-00008770: 543b 0a20 2020 2020 2020 2020 2020 2020 T;. \n-00008780: 2020 5459 5020 3a20 536f 636b 6574 5f54 TYP : Socket_T\n-00008790: 7970 6520 3a3d 2053 4f43 4b5f 5354 5245 ype := SOCK_STRE\n-000087a0: 414d 293b 0a0a 5041 5241 4d45 5445 5253 AM);..PARAMETERS\n-000087b0: 0a20 2020 2020 534f 434b 4554 2020 2020 . SOCKET \n-000087c0: 206f 7574 2020 2020 2020 2020 536f 636b out Sock\n-000087d0: 6574 206f 626a 6563 7420 746f 2069 6e69 et object to ini\n-000087e0: 7469 616c 697a 650a 2020 2020 2044 4f4d tialize. DOM\n-000087f0: 4149 4e20 2020 2020 696e 2020 2020 2020 AIN in \n-00008800: 2020 2050 726f 746f 636f 6c20 6661 6d69 Protocol fami\n-00008810: 6c79 0a20 2020 2020 5459 5020 2020 2020 ly. TYP \n-00008820: 2020 2069 6e20 2020 2020 2020 2020 4b69 in Ki\n-00008830: 6e64 206f 6620 736f 636b 6574 730a 0a44 nd of sockets..D\n-00008840: 4553 4352 4950 5449 4f4e 0a20 2020 2020 ESCRIPTION. \n-00008850: 5468 6973 2070 726f 6365 6475 7265 2069 This procedure i\n-00008860: 6e69 7469 616c 697a 6573 2061 206e 6577 nitializes a new\n-00008870: 2073 6f63 6b65 7420 6f62 6a65 6374 2062 socket object b\n-00008880: 7920 7265 7365 7276 696e 6720 6120 6669 y reserving a fi\n-00008890: 6c65 0a20 2020 2020 6465 7363 7269 7074 le. descript\n-000088a0: 6f72 2074 6f20 7468 6520 6f70 6572 6174 or to the operat\n-000088b0: 696e 6720 7379 7374 656d 2e20 2046 6f72 ing system. For\n-000088c0: 2062 6163 6b77 6172 6420 636f 6d70 6174 backward compat\n-000088d0: 6962 696c 6974 790a 2020 2020 2077 6974 ibility. wit\n-000088e0: 6820 6f6c 6465 7220 7665 7273 696f 6e73 h older versions\n-000088f0: 206f 6620 7468 6973 206c 6962 7261 7279 of this library\n-00008900: 2c20 e280 9841 465f 494e 4554 e280 9920 , ...AF_INET... \n-00008910: 6973 2073 7469 6c6c 2061 6363 6570 7465 is still accepte\n-00008920: 6420 6173 0a20 2020 2020 6120 7661 6c75 d as. a valu\n-00008930: 6520 6275 7420 7368 6f75 6c64 2062 6520 e but should be \n-00008940: 7265 706c 6163 6564 2061 7320 736f 6f6e replaced as soon\n-00008950: 2061 7320 706f 7373 6962 6c65 2077 6974 as possible wit\n-00008960: 6820 7468 6520 7072 6f70 6572 0a20 2020 h the proper. \n-00008970: 2020 e280 9850 465f 494e 4554 e280 992e ...PF_INET....\n-00008980: 2020 5573 696e 6720 e280 9853 4f43 4b5f Using ...SOCK_\n-00008990: 5354 5245 414d e280 9920 666f 7220 7468 STREAM... for th\n-000089a0: 6520 5459 5020 6172 6775 6d65 6e74 2077 e TYP argument w\n-000089b0: 696c 6c20 6372 6561 7465 2061 0a20 2020 ill create a. \n-000089c0: 2020 5443 5020 736f 636b 6574 2077 6869 TCP socket whi\n-000089d0: 6c65 2061 20e2 8098 534f 434b 5f44 4752 le a ...SOCK_DGR\n-000089e0: 414d e280 9920 7769 6c6c 2063 7265 6174 AM... will creat\n-000089f0: 6520 6120 5544 5020 6f6e 652e 0a0a 4558 e a UDP one...EX\n-00008a00: 414d 504c 450a 2020 2020 2020 2020 2020 AMPLE. \n-00008a10: 6465 636c 6172 650a 2020 2020 2020 2020 declare. \n-00008a20: 2020 2020 2053 6f63 6b20 3a20 536f 636b Sock : Sock\n-00008a30: 6574 5f46 443b 0a20 2020 2020 2020 2020 et_FD;. \n-00008a40: 2062 6567 696e 0a20 2020 2020 2020 2020 begin. \n-00008a50: 2020 2020 2d2d 2043 7265 6174 6520 6120 -- Create a \n-00008a60: 5443 5020 736f 636b 6574 0a20 2020 2020 TCP socket. \n-00008a70: 2020 2020 2020 2020 536f 636b 6574 2028 Socket (\n-00008a80: 536f 636b 2c20 5046 5f49 4e45 542c 2053 Sock, PF_INET, S\n-00008a90: 4f43 4b5f 5354 5245 414d 293b 0a20 2020 OCK_STREAM);. \n-00008aa0: 2020 2020 2020 2020 2020 2d2d 2050 6572 -- Per\n-00008ab0: 666f 726d 2073 6f6d 6520 6f70 6572 6174 form some operat\n-00008ac0: 696f 6e73 206f 6e20 736f 636b 6574 0a20 ions on socket. \n-00008ad0: 2020 2020 2020 2020 2020 2020 5b2e 2e2e [...\n-00008ae0: 5d0a 2020 2020 2020 2020 2020 2020 202d ]. -\n-00008af0: 2d20 5368 7574 646f 776e 2074 6865 2073 - Shutdown the s\n-00008b00: 6f63 6b65 7420 696e 2062 6f74 6820 6469 ocket in both di\n-00008b10: 7265 6374 696f 6e73 0a20 2020 2020 2020 rections. \n-00008b20: 2020 2020 2020 5368 7574 646f 776e 2028 Shutdown (\n-00008b30: 536f 636b 2c20 426f 7468 293b 0a20 2020 Sock, Both);. \n-00008b40: 2020 2020 2020 2065 6e64 3b0a 0a53 4545 end;..SEE\n-00008b50: 2041 4c53 4f0a 2020 2020 202a 6e6f 7465 ALSO. *note\n-00008b60: 2053 6875 7464 6f77 6e20 2870 726f 6365 Shutdown (proce\n-00008b70: 6475 7265 293a 3a2e 0a0a 1f0a 4669 6c65 dure)::.....File\n-00008b80: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n-00008b90: 6f2c 2020 4e6f 6465 3a20 556e 7365 745f o, Node: Unset_\n-00008ba0: 4275 6666 6572 2028 7072 6f63 6564 7572 Buffer (procedur\n-00008bb0: 6529 2c20 2050 7265 763a 2053 6f63 6b65 e), Prev: Socke\n-00008bc0: 7420 2870 726f 6365 6475 7265 292c 2020 t (procedure), \n-00008bd0: 5570 3a20 4163 6365 7074 5f53 6f63 6b65 Up: Accept_Socke\n-00008be0: 7420 2870 726f 6365 6475 7265 290a 0a55 t (procedure)..U\n-00008bf0: 6e73 6574 5f42 7566 6665 7220 2870 726f nset_Buffer (pro\n-00008c00: 6365 6475 7265 290a 2d2d 2d2d 2d2d 2d2d cedure).--------\n-00008c10: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-00008c20: 0a0a 5055 5250 4f53 450a 2020 2020 2044 ..PURPOSE. D\n-00008c30: 6569 6e73 7461 6c6c 2074 6865 206c 696e einstall the lin\n-00008c40: 652d 6f72 6965 6e74 6564 2062 7566 6665 e-oriented buffe\n-00008c50: 7220 6f66 2074 6865 2073 6f63 6b65 7420 r of the socket \n-00008c60: 6f62 6a65 6374 0a50 524f 544f 5459 5045 object.PROTOTYPE\n-00008c70: 0a20 2020 2020 202d 2d20 536f 636b 6574 . -- Socket\n-00008c80: 732e 556e 7365 745f 4275 6666 6572 3a20 s.Unset_Buffer: \n-00008c90: 7072 6f63 6564 7572 6520 556e 7365 745f procedure Unset_\n-00008ca0: 4275 6666 6572 0a20 2020 2020 2020 2020 Buffer. \n-00008cb0: 2020 2020 2020 2853 4f43 4b45 5420 3a20 (SOCKET : \n-00008cc0: 536f 636b 6574 5f46 4427 436c 6173 7329 Socket_FD'Class)\n-00008cd0: 3b0a 0a50 4152 414d 4554 4552 530a 2020 ;..PARAMETERS. \n-00008ce0: 2020 2053 4f43 4b45 5420 2020 2020 696e SOCKET in\n-00008cf0: 2020 2020 2020 2020 2049 6e69 7469 616c Initial\n-00008d00: 697a 6564 2061 6e64 2063 6f6e 6e65 6374 ized and connect\n-00008d10: 6564 2073 6f63 6b65 7420 6f62 6a65 6374 ed socket object\n-00008d20: 0a0a 4445 5343 5249 5054 494f 4e0a 2020 ..DESCRIPTION. \n-00008d30: 2020 2054 6869 7320 7072 6f63 6564 7572 This procedur\n-00008d40: 6520 6465 696e 7374 616c 6c73 2074 6865 e deinstalls the\n-00008d50: 2062 7566 6665 7220 7072 6576 696f 7573 buffer previous\n-00008d60: 6c79 2069 6e73 7461 6c6c 6564 2062 7920 ly installed by \n-00008d70: 2a6e 6f74 650a 2020 2020 2053 6574 5f42 *note. Set_B\n-00008d80: 7566 6665 7220 2870 726f 6365 6475 7265 uffer (procedure\n-00008d90: 293a 3a2e 2020 4966 2061 6e79 2064 6174 )::. If any dat\n-00008da0: 6120 6973 2073 7469 6c6c 2070 7265 7365 a is still prese\n-00008db0: 6e74 2069 6e20 7468 650a 2020 2020 2062 nt in the. b\n-00008dc0: 7566 6665 722c 2069 7420 7769 6c6c 2062 uffer, it will b\n-00008dd0: 6520 6c6f 7374 2e20 2054 6f20 6176 6f69 e lost. To avoi\n-00008de0: 6420 7468 6973 2073 6974 7561 7469 6f6e d this situation\n-00008df0: 2c20 7468 6520 6275 6666 6572 2063 616e , the buffer can\n-00008e00: 0a20 2020 2020 6265 2066 6c75 7368 6564 . be flushed\n-00008e10: 2062 7920 6361 6c6c 696e 6720 2a6e 6f74 by calling *not\n-00008e20: 6520 4765 7420 2866 756e 6374 696f 6e29 e Get (function)\n-00008e30: 3a3a 2e0a 0a1f 0a46 696c 653a 2061 6461 ::.....File: ada\n-00008e40: 736f 636b 6574 732e 696e 666f 2c20 204e sockets.info, N\n-00008e50: 6f64 653a 2053 6f63 6b65 7473 2e4d 756c ode: Sockets.Mul\n-00008e60: 7469 6361 7374 2070 6163 6b61 6765 2c20 ticast package, \n-00008e70: 204e 6578 743a 2053 6f63 6b65 7473 2e4e Next: Sockets.N\n-00008e80: 616d 696e 6720 7061 636b 6167 652c 2020 aming package, \n-00008e90: 5072 6576 3a20 536f 636b 6574 7320 7061 Prev: Sockets pa\n-00008ea0: 636b 6167 652c 2020 5570 3a20 546f 700a ckage, Up: Top.\n-00008eb0: 0a35 2053 6f63 6b65 7473 2e4d 756c 7469 .5 Sockets.Multi\n-00008ec0: 6361 7374 2070 6163 6b61 6765 0a2a 2a2a cast package.***\n-00008ed0: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a ****************\n-00008ee0: 2a2a 2a2a 2a2a 2a2a 0a0a 5468 6520 e280 ********..The ..\n-00008ef0: 9853 6f63 6b65 7473 2e4d 756c 7469 6361 .Sockets.Multica\n-00008f00: 7374 e280 9920 616c 6c6f 7773 2074 6865 st... allows the\n-00008f10: 2063 7265 6174 696f 6e20 6f66 2049 5020 creation of IP \n-00008f20: 6d75 6c74 6963 6173 7420 736f 636b 6574 multicast socket\n-00008f30: 732e 0a0a 202d 2d20 536f 636b 6574 732e s... -- Sockets.\n-00008f40: 4d75 6c74 6963 6173 742e 4d75 6c74 6963 Multicast.Multic\n-00008f50: 6173 745f 536f 636b 6574 5f46 443a 2074 ast_Socket_FD: t\n-00008f60: 7970 6520 4d75 6c74 6963 6173 745f 536f ype Multicast_So\n-00008f70: 636b 6574 5f46 4420 6973 0a20 2020 2020 cket_FD is. \n-00008f80: 2020 2020 206e 6577 2053 6f63 6b65 745f new Socket_\n-00008f90: 4644 2077 6974 6820 7072 6976 6174 653b FD with private;\n-00008fa0: 0a20 2020 2020 5468 6520 e280 984d 756c . The ...Mul\n-00008fb0: 7469 6361 7374 5f53 6f63 6b65 745f 4644 ticast_Socket_FD\n-00008fc0: e280 9920 7461 6767 6564 2074 7970 6520 ... tagged type \n-00008fd0: 6465 7269 7665 7320 6672 6f6d 2074 6865 derives from the\n-00008fe0: 20e2 8098 536f 636b 6574 5f46 44e2 8099 ...Socket_FD...\n-00008ff0: 0a20 2020 2020 7479 7065 2e20 2049 7420 . type. It \n-00009000: 6765 7473 2069 6e69 7469 616c 697a 6564 gets initialized\n-00009010: 2062 7920 6361 6c6c 696e 6720 2a6e 6f74 by calling *not\n-00009020: 6520 4372 6561 7465 5f4d 756c 7469 6361 e Create_Multica\n-00009030: 7374 5f53 6f63 6b65 740a 2020 2020 2028 st_Socket. (\n-00009040: 6675 6e63 7469 6f6e 293a 3a2e 2020 416e function)::. An\n-00009050: 2075 6e69 6e69 7469 616c 697a 6564 20e2 uninitialized .\n-00009060: 8098 4d75 6c74 6963 6173 745f 536f 636b ..Multicast_Sock\n-00009070: 6574 5f46 44e2 8099 2063 616e 2062 650a et_FD... can be.\n-00009080: 2020 2020 2073 7563 6365 7366 756c 6c79 succesfully\n-00009090: 2063 6f6d 7061 7265 6420 746f 20e2 8098 compared to ...\n-000090a0: 4e75 6c6c 5f4d 756c 7469 6361 7374 5f53 Null_Multicast_S\n-000090b0: 6f63 6b65 745f 4644 e280 992e 0a0a 2a20 ocket_FD......* \n-000090c0: 4d65 6e75 3a0a 0a2a 2043 7265 6174 655f Menu:..* Create_\n-000090d0: 4d75 6c74 6963 6173 745f 536f 636b 6574 Multicast_Socket\n-000090e0: 2028 6675 6e63 7469 6f6e 293a 3a0a 2020 (function)::. \n-000090f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00009100: 2020 2020 2020 4372 6561 7465 2061 6e20 Create an \n-00009110: 4950 206d 756c 7469 6361 7374 2073 6f63 IP multicast soc\n-00009120: 6b65 740a 2a20 4372 6561 7465 5f4d 756c ket.* Create_Mul\n-00009130: 7469 6361 7374 5f53 6f63 6b65 7420 2866 ticast_Socket (f\n-00009140: 756e 6374 696f 6e29 3a3a 0a20 2020 2020 unction)::. \n-00009150: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00009160: 2020 2043 7265 6174 6520 616e 2049 5020 Create an IP \n-00009170: 6d75 6c74 6963 6173 7420 736f 636b 6574 multicast socket\n-00009180: 0a0a 1f0a 4669 6c65 3a20 6164 6173 6f63 ....File: adasoc\n-00009190: 6b65 7473 2e69 6e66 6f2c 2020 4e6f 6465 kets.info, Node\n-000091a0: 3a20 4372 6561 7465 5f4d 756c 7469 6361 : Create_Multica\n-000091b0: 7374 5f53 6f63 6b65 7420 2866 756e 6374 st_Socket (funct\n-000091c0: 696f 6e29 2c20 204e 6578 743a 2043 7265 ion), Next: Cre\n-000091d0: 6174 655f 4d75 6c74 6963 6173 745f 536f ate_Multicast_So\n-000091e0: 636b 6574 2028 6675 6e63 7469 6f6e 292c cket (function),\n-000091f0: 2020 5072 6576 3a20 4372 6561 7465 5f4d Prev: Create_M\n-00009200: 756c 7469 6361 7374 5f53 6f63 6b65 7420 ulticast_Socket \n-00009210: 2866 756e 6374 696f 6e29 2c20 2055 703a (function), Up:\n-00009220: 2053 6f63 6b65 7473 2e4d 756c 7469 6361 Sockets.Multica\n-00009230: 7374 2070 6163 6b61 6765 0a0a 4372 6561 st package..Crea\n-00009240: 7465 5f4d 756c 7469 6361 7374 5f53 6f63 te_Multicast_Soc\n-00009250: 6b65 7420 2866 756e 6374 696f 6e29 0a3d ket (function).=\n-00009260: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00009270: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n-00009280: 3d0a 0a50 5552 504f 5345 0a20 2020 2020 =..PURPOSE. \n-00009290: 4372 6561 7465 2061 6e20 4950 206d 756c Create an IP mul\n-000092a0: 7469 6361 7374 2073 6f63 6b65 740a 5052 ticast socket.PR\n-000092b0: 4f54 4f54 5950 450a 2020 2020 2020 2d2d OTOTYPE. --\n-000092c0: 2053 6f63 6b65 7473 2e4d 756c 7469 6361 Sockets.Multica\n-000092d0: 7374 2e43 7265 6174 655f 4d75 6c74 6963 st.Create_Multic\n-000092e0: 6173 745f 536f 636b 6574 3a20 6675 6e63 ast_Socket: func\n-000092f0: 7469 6f6e 0a20 2020 2020 2020 2020 2020 tion. \n-00009300: 2020 2020 4372 6561 7465 5f4d 756c 7469 Create_Multi\n-00009310: 6361 7374 5f53 6f63 6b65 7420 2847 524f cast_Socket (GRO\n-00009320: 5550 203a 2053 7472 696e 673b 2050 4f52 UP : String; POR\n-00009330: 5420 3a20 4e61 7475 7261 6c3b 0a20 2020 T : Natural;. \n-00009340: 2020 2020 2020 2020 2020 2020 5454 4c20 TTL \n-00009350: 3a20 506f 7369 7469 7665 203a 3d20 3136 : Positive := 16\n-00009360: 3b20 5345 4c46 5f4c 4f4f 5020 3a20 426f ; SELF_LOOP : Bo\n-00009370: 6f6c 6561 6e20 3a3d 2054 7275 653b 0a20 olean := True;. \n-00009380: 2020 2020 2020 2020 2020 2020 2020 4c4f LO\n-00009390: 4341 4c5f 4946 203a 2053 7472 696e 6720 CAL_IF : String \n-000093a0: 3a3d 2030 2e30 2e30 2e30 290a 2020 2020 := 0.0.0.0). \n-000093b0: 2020 2020 2020 2020 2020 2072 6574 7572 retur\n-000093c0: 6e20 4d75 6c74 6963 6173 745f 536f 636b n Multicast_Sock\n-000093d0: 6574 5f46 443b 0a0a 5041 5241 4d45 5445 et_FD;..PARAMETE\n-000093e0: 5253 0a20 2020 2020 4752 4f55 5020 2020 RS. GROUP \n-000093f0: 2020 2069 6e20 2020 2020 2020 2020 4950 in IP\n-00009400: 2061 6464 7265 7373 206f 6620 7468 6520 address of the \n-00009410: 6d75 6c74 6963 6173 7420 6772 6f75 7020 multicast group \n-00009420: 746f 0a20 2020 2020 2020 2020 2020 2020 to. \n-00009430: 2020 2020 2020 2020 2020 2020 2020 6a6f jo\n-00009440: 696e 0a20 2020 2020 504f 5254 2020 2020 in. PORT \n-00009450: 2020 2069 6e20 2020 2020 2020 2020 506f in Po\n-00009460: 7274 206f 6620 7468 6520 6d75 6c74 6963 rt of the multic\n-00009470: 6173 7420 6772 6f75 7020 746f 206a 6f69 ast group to joi\n-00009480: 6e0a 2020 2020 2054 544c 2020 2020 2020 n. TTL \n-00009490: 2020 696e 2020 2020 2020 2020 2054 696d in Tim\n-000094a0: 652d 746f 2d6c 6976 6520 6f66 2073 656e e-to-live of sen\n-000094b0: 7420 7061 636b 6574 730a 2020 2020 2053 t packets. S\n-000094c0: 454c 465f 4c4f 4f50 2020 696e 2020 2020 ELF_LOOP in \n-000094d0: 2020 2020 2053 686f 756c 6420 7468 6520 Should the \n-000094e0: 736f 636b 6574 2072 6563 6569 7665 2074 socket receive t\n-000094f0: 6865 2070 6163 6b65 7473 0a20 2020 2020 he packets. \n-00009500: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00009510: 2020 2020 2020 7365 6e74 2066 726f 6d20 sent from \n-00009520: 7468 6520 6c6f 6361 6c20 686f 7374 3f0a the local host?.\n-00009530: 2020 2020 204c 4f43 414c 5f49 4620 2020 LOCAL_IF \n-00009540: 696e 2020 2020 2020 2020 2041 6464 7265 in Addre\n-00009550: 7373 206f 6620 7468 6520 6c6f 6361 6c20 ss of the local \n-00009560: 696e 7465 7266 6163 6520 746f 2075 7365 interface to use\n-00009570: 0a0a 5245 5455 524e 2056 414c 5545 0a20 ..RETURN VALUE. \n-00009580: 2020 2020 5468 6520 6e65 7720 696e 6974 The new init\n-00009590: 6961 6c69 7a65 6420 6d75 6c74 6963 6173 ialized multicas\n-000095a0: 7420 736f 636b 6574 0a0a 4445 5343 5249 t socket..DESCRI\n-000095b0: 5054 494f 4e0a 2020 2020 2054 6869 7320 PTION. This \n-000095c0: 6675 6e63 7469 6f6e 2063 7265 6174 6573 function creates\n-000095d0: 2061 6e20 4950 206d 756c 7469 6361 7374 an IP multicast\n-000095e0: 2073 6f63 6b65 7420 6174 7461 6368 6564 socket attached\n-000095f0: 2074 6f20 6120 6769 7665 6e0a 2020 2020 to a given. \n-00009600: 2067 726f 7570 2c20 6964 656e 7469 6669 group, identifi\n-00009610: 6564 2062 7920 6974 7320 636c 6173 7320 ed by its class \n-00009620: 4520 4950 2061 6464 7265 7373 2061 6e64 E IP address and\n-00009630: 2070 6f72 742e 0a0a 2020 2020 2042 6520 port... Be \n-00009640: 6361 7265 6675 6c20 7768 656e 2063 686f careful when cho\n-00009650: 6f73 696e 6720 7468 6520 5454 4c20 7061 osing the TTL pa\n-00009660: 7261 6d65 7465 7220 6f66 2079 6f75 7220 rameter of your \n-00009670: 4950 206d 756c 7469 6361 7374 0a20 2020 IP multicast. \n-00009680: 2020 736f 636b 6574 2e20 204d 6f73 7420 socket. Most \n-00009690: 4950 206d 756c 7469 6361 7374 2072 6f75 IP multicast rou\n-000096a0: 7465 7273 2064 6f20 696d 706c 656d 656e ters do implemen\n-000096b0: 7420 7468 7265 7368 6f6c 642d 6261 7365 t threshold-base\n-000096c0: 640a 2020 2020 2066 696c 7465 7269 6e67 d. filtering\n-000096d0: 2061 6e64 2077 696c 6c20 6e6f 7420 6c65 and will not le\n-000096e0: 7420 4950 206d 756c 7469 6361 7374 2070 t IP multicast p\n-000096f0: 6163 6b65 7473 206c 6561 7665 2079 6f75 ackets leave you\n-00009700: 720a 2020 2020 206f 7267 616e 697a 6174 r. organizat\n-00009710: 696f 6e20 6966 2074 6865 2054 544c 206f ion if the TTL o\n-00009720: 6e20 7468 6520 6c61 7374 2072 6f75 7465 n the last route\n-00009730: 7220 6973 2073 6d61 6c6c 6572 2074 6861 r is smaller tha\n-00009740: 6e20 3136 2e0a 0a20 2020 2020 4966 2030 n 16... If 0\n-00009750: 2069 7320 6769 7665 6e20 666f 7220 7468 is given for th\n-00009760: 6520 506f 7274 2c20 6120 6c6f 6361 6c20 e Port, a local \n-00009770: 6f6e 6520 7769 6c6c 2062 6520 6368 6f73 one will be chos\n-00009780: 656e 2e20 2049 7420 6361 6e0a 2020 2020 en. It can. \n-00009790: 2074 6865 6e20 6c61 7465 7220 6265 2072 then later be r\n-000097a0: 6574 7269 6576 6564 2075 7369 6e67 2047 etrieved using G\n-000097b0: 6574 5f53 6f63 6b5f 506f 7274 2e0a 0a45 et_Sock_Port...E\n-000097c0: 5841 4d50 4c45 0a20 2020 2020 2020 2020 XAMPLE. \n-000097d0: 2064 6563 6c61 7265 0a20 2020 2020 2020 declare. \n-000097e0: 2020 2020 2020 536f 636b 203a 2053 6f63 Sock : Soc\n-000097f0: 6b65 745f 4644 3b0a 2020 2020 2020 2020 ket_FD;. \n-00009800: 2020 6265 6769 6e0a 2020 2020 2020 2020 begin. \n-00009810: 2020 2020 202d 2d20 4372 6561 7465 2061 -- Create a\n-00009820: 2054 4350 2073 6f63 6b65 740a 2020 2020 TCP socket. \n-00009830: 2020 2020 2020 2020 2053 6f63 6b65 7420 Socket \n-00009840: 2853 6f63 6b2c 2050 465f 494e 4554 2c20 (Sock, PF_INET, \n-00009850: 534f 434b 5f53 5452 4541 4d29 3b0a 2020 SOCK_STREAM);. \n-00009860: 2020 2020 2020 2020 2020 202d 2d20 436f -- Co\n-00009870: 6e6e 6563 7420 6974 2074 6f20 7266 6331 nnect it to rfc1\n-00009880: 3134 392e 6e65 7427 7320 6d61 696c 2073 149.net's mail s\n-00009890: 6572 7665 720a 2020 2020 2020 2020 2020 erver. \n-000098a0: 2020 2043 6f6e 6e65 6374 2028 536f 636b Connect (Sock\n-000098b0: 2c20 226d 6169 6c2e 7266 6331 3134 392e , \"mail.rfc1149.\n-000098c0: 6e65 7422 2c20 3235 293b 0a20 2020 2020 net\", 25);. \n-000098d0: 2020 2020 2020 2020 2d2d 2044 6f20 6120 -- Do a \n-000098e0: 6d61 696c 2074 7261 6e73 6163 7469 6f6e mail transaction\n-000098f0: 2074 6865 6e20 636c 6f73 6520 7468 6520 then close the \n-00009900: 736f 636b 6574 0a20 2020 2020 2020 2020 socket. \n-00009910: 2020 2020 5b2e 2e2e 5d0a 2020 2020 2020 [...]. \n-00009920: 2020 2020 656e 643b 0a0a 5345 4520 414c end;..SEE AL\n-00009930: 534f 0a20 2020 2020 2a6e 6f74 6520 5365 SO. *note Se\n-00009940: 6e64 2028 7072 6f63 6564 7572 6529 3a3a nd (procedure)::\n-00009950: 2c0a 2020 2020 202a 6e6f 7465 2053 6875 ,. *note Shu\n-00009960: 7464 6f77 6e20 2870 726f 6365 6475 7265 tdown (procedure\n-00009970: 293a 3a2e 0a0a 2a20 4d65 6e75 3a0a 0a43 )::...* Menu:..C\n-00009980: 7265 6174 655f 4d75 6c74 6963 6173 745f reate_Multicast_\n-00009990: 536f 636b 6574 2028 6675 6e63 7469 6f6e Socket (function\n-000099a0: 290a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ).--------------\n-000099b0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n-000099c0: 2d2d 2d2d 0a0a 5055 5250 4f53 450a 2020 ----..PURPOSE. \n-000099d0: 2020 2043 7265 6174 6520 616e 2049 5020 Create an IP \n-000099e0: 6d75 6c74 6963 6173 7420 736f 636b 6574 multicast socket\n-000099f0: 0a50 524f 544f 5459 5045 0a20 2020 2020 .PROTOTYPE. \n-00009a00: 202d 2d20 536f 636b 6574 732e 4d75 6c74 -- Sockets.Mult\n-00009a10: 6963 6173 742e 4372 6561 7465 5f4d 756c icast.Create_Mul\n-00009a20: 7469 6361 7374 5f53 6f63 6b65 743a 2066 ticast_Socket: f\n-00009a30: 756e 6374 696f 6e0a 2020 2020 2020 2020 unction. \n-00009a40: 2020 2020 2020 2043 7265 6174 655f 4d75 Create_Mu\n-00009a50: 6c74 6963 6173 745f 536f 636b 6574 2028 lticast_Socket (\n-00009a60: 4752 4f55 5020 3a20 5374 7269 6e67 3b20 GROUP : String; \n-00009a70: 504f 5254 203a 2050 6f73 6974 6976 653b PORT : Positive;\n-00009a80: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-00009a90: 4c4f 4341 4c5f 504f 5254 203a 204e 6174 LOCAL_PORT : Nat\n-00009aa0: 7572 616c 3b20 5454 4c20 3a20 506f 7369 ural; TTL : Posi\n-00009ab0: 7469 7665 203a 3d20 3136 3b0a 2020 2020 tive := 16;. \n-00009ac0: 2020 2020 2020 2020 2020 204c 4f43 414c LOCAL\n-00009ad0: 5f49 4620 3a20 5374 7269 6e67 203a 3d20 _IF : String := \n-00009ae0: 302e 302e 302e 3029 0a20 2020 2020 2020 0.0.0.0). \n-00009af0: 2020 2020 2020 2020 7265 7475 726e 204d return M\n-00009b00: 756c 7469 6361 7374 5f53 6f63 6b65 745f ulticast_Socket_\n-00009b10: 4644 3b0a 0a50 4152 414d 4554 4552 530a FD;..PARAMETERS.\n-00009b20: 2020 2020 2047 524f 5550 2020 2020 2020 GROUP \n-00009b30: 696e 2020 2020 2020 2020 2049 5020 6164 in IP ad\n-00009b40: 6472 6573 7320 6f66 2074 6865 206d 756c dress of the mul\n-00009b50: 7469 6361 7374 2067 726f 7570 2074 6f0a ticast group to.\n-00009b60: 2020 2020 2020 2020 2020 2020 2020 2020 \n-00009b70: 2020 2020 2020 2020 2020 206a 6f69 6e0a join.\n-00009b80: 2020 2020 2050 4f52 5420 2020 2020 2020 PORT \n-00009b90: 696e 2020 2020 2020 2020 2050 6f72 7420 in Port \n-00009ba0: 6f66 2074 6865 206d 756c 7469 6361 7374 of the multicast\n-00009bb0: 2067 726f 7570 2074 6f20 6a6f 696e 0a20 group to join. \n-00009bc0: 2020 2020 4c4f 4341 4c5f 504f 5254 2069 LOCAL_PORT i\n-00009bd0: 6e20 2020 2020 2020 2020 4c6f 6361 6c20 n Local \n-00009be0: 706f 7274 206e 756d 6265 7220 746f 2075 port number to u\n-00009bf0: 7365 0a20 2020 2020 5454 4c20 2020 2020 se. TTL \n-00009c00: 2020 2069 6e20 2020 2020 2020 2020 5469 in Ti\n-00009c10: 6d65 2d74 6f2d 6c69 7665 206f 6620 7365 me-to-live of se\n-00009c20: 6e74 2070 6163 6b65 7473 0a20 2020 2020 nt packets. \n-00009c30: 4c4f 4341 4c5f 4946 2020 2069 6e20 2020 LOCAL_IF in \n-00009c40: 2020 2020 2020 4164 6472 6573 7320 6f66 Address of\n-00009c50: 2074 6865 206c 6f63 616c 2069 6e74 6572 the local inter\n-00009c60: 6661 6365 2074 6f20 7573 650a 0a52 4554 face to use..RET\n-00009c70: 5552 4e20 5641 4c55 450a 2020 2020 2054 URN VALUE. T\n-00009c80: 6865 206e 6577 2069 6e69 7469 616c 697a he new initializ\n-00009c90: 6564 206d 756c 7469 6361 7374 2073 6f63 ed multicast soc\n-00009ca0: 6b65 740a 0a44 4553 4352 4950 5449 4f4e ket..DESCRIPTION\n-00009cb0: 0a20 2020 2020 5468 6973 2066 756e 6374 . This funct\n-00009cc0: 696f 6e20 6372 6561 7465 7320 616e 2049 ion creates an I\n-00009cd0: 5020 6d75 6c74 6963 6173 7420 736f 636b P multicast sock\n-00009ce0: 6574 2061 7474 6163 6865 6420 746f 2061 et attached to a\n-00009cf0: 2067 6976 656e 0a20 2020 2020 6772 6f75 given. grou\n-00009d00: 702c 2069 6465 6e74 6966 6965 6420 6279 p, identified by\n-00009d10: 2069 7473 2063 6c61 7373 2045 2049 5020 its class E IP \n-00009d20: 6164 6472 6573 7320 616e 6420 706f 7274 address and port\n-00009d30: 2e20 2049 660a 2020 2020 204c 6f63 616c . If. Local\n-00009d40: 5f50 6f72 7420 6973 2030 2c20 6120 6672 _Port is 0, a fr\n-00009d50: 6565 2070 6f72 7420 7769 6c6c 2061 7574 ee port will aut\n-00009d60: 6f6d 6174 6963 616c 6c79 2062 6520 6368 omatically be ch\n-00009d70: 6f73 656e 2062 7920 796f 7572 0a20 2020 osen by your. \n-00009d80: 2020 6f70 6572 6174 696e 6720 7379 7374 operating syst\n-00009d90: 656d 2e0a 0a20 2020 2020 5468 6973 2066 em... This f\n-00009da0: 756e 6374 696f 6e20 7368 6f75 6c64 2062 unction should b\n-00009db0: 6520 7573 6564 2077 6865 6e20 796f 7520 e used when you \n-00009dc0: 7761 6e74 2074 6f20 7365 6e64 2070 6163 want to send pac\n-00009dd0: 6b65 7473 2074 6f20 610a 2020 2020 206d kets to a. m\n-00009de0: 756c 7469 6361 7374 2067 726f 7570 2077 ulticast group w\n-00009df0: 6974 686f 7574 2072 6563 6569 7669 6e67 ithout receiving\n-00009e00: 2061 6e79 2070 6163 6b65 7420 796f 7572 any packet your\n-00009e10: 7365 6c66 2e0a 0a45 5841 4d50 4c45 0a20 self...EXAMPLE. \n-00009e20: 2020 2020 2020 2020 2064 6563 6c61 7265 declare\n-00009e30: 0a20 2020 2020 2020 2020 2020 2020 536f . So\n-00009e40: 636b 203a 204d 756c 7469 6361 7374 5f53 ck : Multicast_S\n-00009e50: 6f63 6b65 745f 4644 3b0a 2020 2020 2020 ocket_FD;. \n-00009e60: 2020 2020 6265 6769 6e0a 2020 2020 2020 begin. \n-00009e70: 2020 2020 2020 202d 2d20 4372 6561 7465 -- Create\n-00009e80: 2061 206d 756c 7469 6361 7374 2073 6f63 a multicast soc\n-00009e90: 6b65 7420 6f6e 2067 726f 7570 2032 3234 ket on group 224\n-00009ea0: 2e31 2e32 2e33 2070 6f72 7420 3837 3633 .1.2.3 port 8763\n-00009eb0: 0a20 2020 2020 2020 2020 2020 2020 536f . So\n-00009ec0: 636b 203a 3d20 4372 6561 7465 5f4d 756c ck := Create_Mul\n-00009ed0: 7469 6361 7374 5f53 6f63 6b65 7420 2822 ticast_Socket (\"\n-00009ee0: 3232 342e 312e 322e 3322 2c20 3837 3633 224.1.2.3\", 8763\n-00009ef0: 293b 0a20 2020 2020 2020 2020 2020 2020 );. \n-00009f00: 2d2d 2050 6572 666f 726d 2073 6f6d 6520 -- Perform some \n-00009f10: 6f70 6572 6174 696f 6e73 206f 6e20 736f operations on so\n-00009f20: 636b 6574 0a20 2020 2020 2020 2020 2020 cket. \n-00009f30: 2020 5b2e 2e2e 5d0a 2020 2020 2020 2020 [...]. \n-00009f40: 2020 2020 202d 2d20 5368 7574 646f 776e -- Shutdown\n-00009f50: 2074 6865 2073 6f63 6b65 7420 696e 2062 the socket in b\n-00009f60: 6f74 6820 6469 7265 6374 696f 6e73 0a20 oth directions. \n-00009f70: 2020 2020 2020 2020 2020 2020 5368 7574 Shut\n-00009f80: 646f 776e 2028 536f 636b 2c20 426f 7468 down (Sock, Both\n-00009f90: 293b 0a20 2020 2020 2020 2020 2065 6e64 );. end\n-00009fa0: 3b0a 0a53 4545 2041 4c53 4f0a 2020 2020 ;..SEE ALSO. \n-00009fb0: 202a 6e6f 7465 2053 656e 6420 2870 726f *note Send (pro\n-00009fc0: 6365 6475 7265 293a 3a2c 0a20 2020 2020 cedure)::,. \n-00009fd0: 2a6e 6f74 6520 5368 7574 646f 776e 2028 *note Shutdown (\n-00009fe0: 7072 6f63 6564 7572 6529 3a3a 2e0a 0a1f procedure)::....\n-00009ff0: 0a46 696c 653a 2061 6461 736f 636b 6574 .File: adasocket\n-0000a000: 732e 696e 666f 2c20 204e 6f64 653a 2053 s.info, Node: S\n-0000a010: 6f63 6b65 7473 2e4e 616d 696e 6720 7061 ockets.Naming pa\n-0000a020: 636b 6167 652c 2020 4e65 7874 3a20 436f ckage, Next: Co\n-0000a030: 6e74 7269 6275 746f 7273 2c20 2050 7265 ntributors, Pre\n-0000a040: 763a 2053 6f63 6b65 7473 2e4d 756c 7469 v: Sockets.Multi\n-0000a050: 6361 7374 2070 6163 6b61 6765 2c20 2055 cast package, U\n-0000a060: 703a 2054 6f70 0a0a 3620 536f 636b 6574 p: Top..6 Socket\n-0000a070: 732e 4e61 6d69 6e67 2070 6163 6b61 6765 s.Naming package\n-0000a080: 0a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a .***************\n-0000a090: 2a2a 2a2a 2a2a 2a2a 2a0a 0a1f 0a46 696c *********....Fil\n-0000a0a0: 653a 2061 6461 736f 636b 6574 732e 696e e: adasockets.in\n-0000a0b0: 666f 2c20 204e 6f64 653a 2043 6f6e 7472 fo, Node: Contr\n-0000a0c0: 6962 7574 6f72 732c 2020 4e65 7874 3a20 ibutors, Next: \n-0000a0d0: 5265 736f 7572 6365 7320 6f6e 2074 6865 Resources on the\n-0000a0e0: 2049 6e74 6572 6e65 742c 2020 5072 6576 Internet, Prev\n-0000a0f0: 3a20 536f 636b 6574 732e 4e61 6d69 6e67 : Sockets.Naming\n-0000a100: 2070 6163 6b61 6765 2c20 2055 703a 2054 package, Up: T\n-0000a110: 6f70 0a0a 4170 7065 6e64 6978 2041 2043 op..Appendix A C\n-0000a120: 6f6e 7472 6962 7574 6f72 730a 2a2a 2a2a ontributors.****\n-0000a130: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a ****************\n-0000a140: 2a2a 2a0a 0a41 6461 536f 636b 6574 7320 ***..AdaSockets \n-0000a150: 6861 7320 6265 656e 206f 7269 6769 6e61 has been origina\n-0000a160: 6c6c 7920 6465 7665 6c6f 7070 6564 2062 lly developped b\n-0000a170: 7920 5361 6d75 656c 2054 6172 6469 6575 y Samuel Tardieu\n-0000a180: 2077 686f 2073 7469 6c6c 0a6d 6169 6e74 who still.maint\n-0000a190: 6169 6e73 2069 742e 2020 486f 7765 7665 ains it. Howeve\n-0000a1a0: 722c 2074 6865 2066 6f6c 6c6f 7769 6e67 r, the following\n-0000a1b0: 2070 656f 706c 6520 6861 7665 206d 6164 people have mad\n-0000a1c0: 6520 6372 7563 6961 6c0a 636f 6e74 7269 e crucial.contri\n-0000a1d0: 6275 7469 6f6e 7320 746f 2041 6461 536f butions to AdaSo\n-0000a1e0: 636b 6574 732c 2062 6520 7468 6579 206e ckets, be they n\n-0000a1f0: 6577 2063 6f64 652c 2062 7567 2066 6978 ew code, bug fix\n-0000a200: 6573 206f 7220 706f 7274 696e 6720 746f es or porting to\n-0000a210: 0a6e 6577 206f 7065 7261 7469 6e67 2073 .new operating s\n-0000a220: 7973 7465 6d73 3a0a 0a20 2020 e280 a220 ystems:.. ... \n-0000a230: 446d 6974 7269 7920 416e 6973 696d 6b6f Dmitriy Anisimko\n-0000a240: 7620 283c 616e 6973 696d 6b6f 7640 7961 v (). ...\n-0000a260: 2041 6c61 6e20 4261 726e 6573 2028 3c62 Alan Barnes (). ... Juan\n-0000a290: 6d61 2042 6172 7261 6e71 7565 726f 2028 ma Barranquero (\n-0000a2a0: 3c6c 656b 7475 4074 6572 7261 2e65 733e \n-0000a2b0: 290a 2020 20e2 80a2 2042 6f62 6279 2044 ). ... Bobby D\n-0000a2c0: 2e20 4272 7961 6e74 2028 3c62 6462 7279 . Bryant (). ... San\n-0000a2f0: 6465 7220 436f 7820 283c 7361 6e64 6572 der Cox (). ... Sune F\n-0000a320: 616c 6b20 283c 7375 6e65 2e66 616c 636b alk (). \n-0000a340: e280 a220 4775 696c 6c61 756d 6520 466f ... Guillaume Fo\n-0000a350: 6c69 6172 6420 283c 6775 6966 6f40 7761 liard (). ..\n-0000a370: a220 4c61 7572 656e 7420 4775 6572 6279 . Laurent Guerby\n-0000a380: 2028 3c67 7565 7262 7940 636c 7562 2d69 (). \n-0000a3a0: e280 a220 4461 7669 6420 4a2e 204b 7269 ... David J. Kri\n-0000a3b0: 7374 6f6c 6120 283c 4461 7669 6439 3530 stola (). \n-0000a3d0: e280 a220 446f 6d69 6e69 6b20 4d61 646f ... Dominik Mado\n-0000a3e0: 6e20 283c 646f 6d69 6e69 6b40 6163 6d2e n (). ... Pas\n-0000a400: 6361 6c20 4f62 7279 2028 3c70 2e6f 6272 cal Obry (). \n-0000a420: 2020 e280 a220 4e69 636f 6c61 7320 4f6c ... Nicolas Ol\n-0000a430: 6c69 6e67 6572 2028 3c4e 6963 6f6c 6173 linger (). ... S\n-0000a460: 7470 6861 6e65 2050 6174 7572 6561 7520 tphane Patureau \n-0000a470: 283c 7370 6174 7572 6561 406d 656c 6574 (). ... \n-0000a4a0: 5468 6f6d 6173 2051 7569 6e6f 7420 283c Thomas Quinot (<\n-0000a4b0: 7468 6f6d 6173 4063 7569 7672 652e 6672 thomas@cuivre.fr\n-0000a4c0: 2e65 752e 6f72 673e 290a 2020 20e2 80a2 .eu.org>). ...\n-0000a4d0: 2050 7265 6265 6e20 5261 6e64 686f 6c20 Preben Randhol \n-0000a4e0: 283c 7261 6e64 686f 6c40 7076 762e 6f72 (). ... Maxim\n-0000a500: 2052 657a 6e69 6b20 283c 6d61 7831 406d Reznik (). \n-0000a520: 20e2 80a2 204a 6f65 6c20 5368 6572 7269 ... Joel Sherri\n-0000a530: 6c6c 2028 3c6a 6f65 6c2e 7368 6572 7269 ll ()\n-0000a550: 0a20 2020 e280 a220 5361 6d75 656c 2054 . ... Samuel T\n-0000a560: 6172 6469 6575 2028 3c73 616d 4072 6663 ardieu ().. I\n-0000a580: 6620 796f 7520 6665 656c 2074 6861 7420 f you feel that \n-0000a590: 796f 7520 6861 7665 2062 6565 6e20 666f you have been fo\n-0000a5a0: 7267 6f74 7465 6e2c 2070 6c65 6173 6520 rgotten, please \n-0000a5b0: 7365 6e64 206d 6520 6120 6d61 696c 2073 send me a mail s\n-0000a5c0: 6f0a 7468 6174 2049 2063 616e 2066 6978 o.that I can fix\n-0000a5d0: 2069 7420 696e 2074 6865 206e 6578 7420 it in the next \n-0000a5e0: 7665 7273 696f 6e2e 0a0a 2020 202a 4e6f version... *No\n-0000a5f0: 7465 2052 6573 6f75 7263 6573 206f 6e20 te Resources on \n-0000a600: 7468 6520 496e 7465 726e 6574 3a3a 2c20 the Internet::, \n-0000a610: 666f 7220 686f 7720 746f 2063 6f6e 7472 for how to contr\n-0000a620: 6962 7574 652e 0a0a 1f0a 4669 6c65 3a20 ibute.....File: \n-0000a630: 6164 6173 6f63 6b65 7473 2e69 6e66 6f2c adasockets.info,\n-0000a640: 2020 4e6f 6465 3a20 5265 736f 7572 6365 Node: Resource\n-0000a650: 7320 6f6e 2074 6865 2049 6e74 6572 6e65 s on the Interne\n-0000a660: 742c 2020 4e65 7874 3a20 496e 6465 782c t, Next: Index,\n-0000a670: 2020 5072 6576 3a20 436f 6e74 7269 6275 Prev: Contribu\n-0000a680: 746f 7273 2c20 2055 703a 2054 6f70 0a0a tors, Up: Top..\n-0000a690: 4170 7065 6e64 6978 2042 2052 6573 6f75 Appendix B Resou\n-0000a6a0: 7263 6573 206f 6e20 7468 6520 496e 7465 rces on the Inte\n-0000a6b0: 726e 6574 0a2a 2a2a 2a2a 2a2a 2a2a 2a2a rnet.***********\n-0000a6c0: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a ****************\n-0000a6d0: 2a2a 2a2a 2a2a 2a2a 2a0a 0a54 6865 206c *********..The l\n-0000a6e0: 6174 6573 7420 7665 7273 696f 6e20 6f66 atest version of\n-0000a6f0: 2041 6461 536f 636b 6574 7320 6361 6e20 AdaSockets can \n-0000a700: 616c 7761 7973 2062 6520 666f 756e 6420 always be found \n-0000a710: 6174 3a0a 0a20 2020 2020 2020 2020 2020 at:.. \n-0000a720: 2020 2020 3c68 7474 703a 2f2f 7777 772e .. \n-0000a750: 2020 596f 7520 6361 6e20 7265 706f 7274 You can report\n-0000a760: 2069 7373 7565 7320 6f72 2073 7562 6d69 issues or submi\n-0000a770: 7420 7175 6573 7469 6f6e 7320 6f6e 2047 t questions on G\n-0000a780: 6974 4875 6227 7320 6973 7375 6520 7472 itHub's issue tr\n-0000a790: 6163 6b65 720a 6174 3a0a 0a20 2020 2020 acker.at:.. \n-0000a7a0: 2020 2020 3c68 7474 7073 3a2f 2f67 6974 ....File\n-0000a7e0: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n-0000a7f0: 6f2c 2020 4e6f 6465 3a20 496e 6465 782c o, Node: Index,\n-0000a800: 2020 5072 6576 3a20 5265 736f 7572 6365 Prev: Resource\n-0000a810: 7320 6f6e 2074 6865 2049 6e74 6572 6e65 s on the Interne\n-0000a820: 742c 2020 5570 3a20 546f 700a 0a49 6e64 t, Up: Top..Ind\n-0000a830: 6578 0a2a 2a2a 2a2a 0a0a 0008 5b69 6e64 ex.*****....[ind\n-0000a840: 6578 0008 5d0a 2a20 4d65 6e75 3a0a 0a2a ex..].* Menu:..*\n-0000a850: 2041 6363 6570 745f 536f 636b 6574 3a20 Accept_Socket: \n-0000a860: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a870: 2020 2020 2020 2020 4163 6365 7074 5f53 Accept_S\n-0000a880: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n-0000a890: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n-0000a8a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a8b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a8c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a8d0: 2020 286c 696e 6520 2039 290a 2a20 4163 (line 9).* Ac\n-0000a8e0: 6365 7074 696e 6720 6120 6e65 7720 636f cepting a new co\n-0000a8f0: 6e6e 6563 7469 6f6e 3a20 2020 2020 2020 nnection: \n-0000a900: 2020 2020 2041 6363 6570 745f 536f 636b Accept_Sock\n-0000a910: 6574 2028 7072 6f63 6564 7572 6529 2e0a et (procedure)..\n-0000a920: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a930: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a940: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a950: 2020 2020 2020 2020 2020 2020 2020 2028 (\n-0000a960: 6c69 6e65 2020 3629 0a2a 2041 6461 2e53 line 6).* Ada.S\n-0000a970: 7472 6561 6d73 2e53 7472 6561 6d5f 456c treams.Stream_El\n-0000a980: 656d 656e 745f 4172 7261 793a 2020 2020 ement_Array: \n-0000a990: 2020 5261 7720 6461 7461 206d 616e 6970 Raw data manip\n-0000a9a0: 756c 6174 696f 6e2e 0a20 2020 2020 2020 ulation.. \n-0000a9b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a9c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a9d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000a9e0: 2020 2020 2020 2020 286c 696e 6520 2036 (line 6\n-0000a9f0: 290a 2a20 4164 612e 5374 7265 616d 732e ).* Ada.Streams.\n-0000aa00: 5374 7265 616d 5f45 6c65 6d65 6e74 5f41 Stream_Element_A\n-0000aa10: 7272 6179 203c 313e 3a20 2052 6563 6569 rray <1>: Recei\n-0000aa20: 7665 2028 6675 6e63 7469 6f6e 292e 2020 ve (function). \n-0000aa30: 2028 6c69 6e65 2032 3229 0a2a 2041 6461 (line 22).* Ada\n-0000aa40: 2e53 7472 6561 6d73 2e53 7472 6561 6d5f .Streams.Stream_\n-0000aa50: 456c 656d 656e 745f 4172 7261 7920 3c32 Element_Array <2\n-0000aa60: 3e3a 2020 5265 6365 6976 6520 2870 726f >: Receive (pro\n-0000aa70: 6365 6475 7265 292e 2020 286c 696e 6520 cedure). (line \n-0000aa80: 3138 290a 2a20 4164 612e 5374 7265 616d 18).* Ada.Stream\n-0000aa90: 732e 5374 7265 616d 5f45 6c65 6d65 6e74 s.Stream_Element\n-0000aaa0: 5f41 7272 6179 203c 333e 3a20 2052 6563 _Array <3>: Rec\n-0000aab0: 6569 7665 5f53 6f6d 6520 2870 726f 6365 eive_Some (proce\n-0000aac0: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n-0000aad0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000aae0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000aaf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ab00: 2020 2020 2020 286c 696e 6520 3231 290a (line 21).\n-0000ab10: 2a20 4164 612e 5374 7265 616d 732e 5374 * Ada.Streams.St\n-0000ab20: 7265 616d 5f45 6c65 6d65 6e74 5f41 7272 ream_Element_Arr\n-0000ab30: 6179 203c 343e 3a20 2053 656e 6420 2870 ay <4>: Send (p\n-0000ab40: 726f 6365 6475 7265 292e 2020 2020 2028 rocedure). (\n-0000ab50: 6c69 6e65 2031 3729 0a2a 2041 6461 2e53 line 17).* Ada.S\n-0000ab60: 7472 6561 6d73 2e53 7472 6561 6d5f 456c treams.Stream_El\n-0000ab70: 656d 656e 745f 436f 756e 743a 2020 2020 ement_Count: \n-0000ab80: 2020 5265 6365 6976 6520 2866 756e 6374 Receive (funct\n-0000ab90: 696f 6e29 2e20 2020 286c 696e 6520 3232 ion). (line 22\n-0000aba0: 290a 2a20 4164 612e 5374 7265 616d 732e ).* Ada.Streams.\n-0000abb0: 5374 7265 616d 5f45 6c65 6d65 6e74 5f43 Stream_Element_C\n-0000abc0: 6f75 6e74 203c 313e 3a20 2052 6563 6569 ount <1>: Recei\n-0000abd0: 7665 5f53 6f6d 6520 2870 726f 6365 6475 ve_Some (procedu\n-0000abe0: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n-0000abf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ac00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ac10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ac20: 2020 2020 286c 696e 6520 3231 290a 2a20 (line 21).* \n-0000ac30: 4164 6153 6f63 6b65 7473 2070 7265 7365 AdaSockets prese\n-0000ac40: 6e74 6174 696f 6e3a 2020 2020 2020 2020 ntation: \n-0000ac50: 2020 2020 2020 2057 6861 7420 6973 2041 What is A\n-0000ac60: 6461 536f 636b 6574 733f 2e20 2028 6c69 daSockets?. (li\n-0000ac70: 6e65 2020 3629 0a2a 2041 465f 494e 4554 ne 6).* AF_INET\n-0000ac80: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n-0000ac90: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000aca0: 536f 636b 6574 2028 7072 6f63 6564 7572 Socket (procedur\n-0000acb0: 6529 2e20 2020 286c 696e 6520 3139 290a e). (line 19).\n-0000acc0: 2a20 4173 7369 676e 696e 6720 6120 6c6f * Assigning a lo\n-0000acd0: 6361 6c20 706f 7274 3a20 2020 2020 2020 cal port: \n-0000ace0: 2020 2020 2020 2020 2042 696e 6420 2870 Bind (p\n-0000acf0: 726f 6365 6475 7265 292e 2020 2020 2028 rocedure). (\n-0000ad00: 6c69 6e65 2020 3629 0a2a 2042 696e 643a line 6).* Bind:\n-0000ad10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ad20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ad30: 2020 4269 6e64 2028 7072 6f63 6564 7572 Bind (procedur\n-0000ad40: 6529 2e20 2020 2020 286c 696e 6520 2039 e). (line 9\n-0000ad50: 290a 2a20 4269 6e64 696e 6720 6120 736f ).* Binding a so\n-0000ad60: 636b 6574 3a20 2020 2020 2020 2020 2020 cket: \n-0000ad70: 2020 2020 2020 2020 2020 2042 696e 6420 Bind \n-0000ad80: 2870 726f 6365 6475 7265 292e 2020 2020 (procedure). \n-0000ad90: 2028 6c69 6e65 2020 3629 0a2a 2042 6f74 (line 6).* Bot\n-0000ada0: 683a 2020 2020 2020 2020 2020 2020 2020 h: \n-0000adb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000adc0: 2020 2020 5368 7574 646f 776e 2028 7072 Shutdown (pr\n-0000add0: 6f63 6564 7572 6529 2e20 286c 696e 6520 ocedure). (line \n-0000ade0: 3137 290a 2a20 436c 6f73 696e 6720 6120 17).* Closing a \n-0000adf0: 736f 636b 6574 3a20 2020 2020 2020 2020 socket: \n-0000ae00: 2020 2020 2020 2020 2020 2020 2053 6875 Shu\n-0000ae10: 7464 6f77 6e20 2870 726f 6365 6475 7265 tdown (procedure\n-0000ae20: 292e 2028 6c69 6e65 2020 3629 0a2a 2043 ). (line 6).* C\n-0000ae30: 6f6d 7061 7261 6973 6f6e 2077 6974 6820 omparaison with \n-0000ae40: 474e 4154 2e53 6f63 6b65 7473 3a20 2020 GNAT.Sockets: \n-0000ae50: 2020 2020 2020 5768 6174 2069 7320 4164 What is Ad\n-0000ae60: 6153 6f63 6b65 7473 3f2e 2020 286c 696e aSockets?. (lin\n-0000ae70: 6520 2036 290a 2a20 436f 6e6e 6563 743a e 6).* Connect:\n-0000ae80: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ae90: 2020 2020 2020 2020 2020 2020 2020 2043 C\n-0000aea0: 6f6e 6e65 6374 2028 7072 6f63 6564 7572 onnect (procedur\n-0000aeb0: 6529 2e20 2028 6c69 6e65 2020 3929 0a2a e). (line 9).*\n-0000aec0: 2043 6f6e 6e65 6374 696e 6720 6120 736f Connecting a so\n-0000aed0: 636b 6574 3a20 2020 2020 2020 2020 2020 cket: \n-0000aee0: 2020 2020 2020 2020 436f 6e6e 6563 7420 Connect \n-0000aef0: 2870 726f 6365 6475 7265 292e 2020 286c (procedure). (l\n-0000af00: 696e 6520 2036 290a 2a20 436f 6e6e 6563 ine 6).* Connec\n-0000af10: 7469 6f6e 5f43 6c6f 7365 643a 2020 2020 tion_Closed: \n-0000af20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000af30: 2047 6574 2028 6675 6e63 7469 6f6e 292e Get (function).\n-0000af40: 2020 2020 2020 2028 6c69 6e65 2033 3429 (line 34)\n-0000af50: 0a2a 2043 6f6e 6e65 6374 696f 6e5f 436c .* Connection_Cl\n-0000af60: 6f73 6564 203c 313e 3a20 2020 2020 2020 osed <1>: \n-0000af70: 2020 2020 2020 2020 2020 4765 745f 4368 Get_Ch\n-0000af80: 6172 2028 6675 6e63 7469 6f6e 292e 2020 ar (function). \n-0000af90: 286c 696e 6520 3233 290a 2a20 436f 6e6e (line 23).* Conn\n-0000afa0: 6563 7469 6f6e 5f43 6c6f 7365 6420 3c32 ection_Closed <2\n-0000afb0: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n-0000afc0: 2020 2047 6574 5f4c 696e 6520 2866 756e Get_Line (fun\n-0000afd0: 6374 696f 6e29 2e20 2028 6c69 6e65 2033 ction). (line 3\n-0000afe0: 3229 0a2a 2043 6f6e 6e65 6374 696f 6e5f 2).* Connection_\n-0000aff0: 436c 6f73 6564 203c 333e 3a20 2020 2020 Closed <3>: \n-0000b000: 2020 2020 2020 2020 2020 2020 4765 745f Get_\n-0000b010: 4c69 6e65 2028 7072 6f63 6564 7572 6529 Line (procedure)\n-0000b020: 2e20 286c 696e 6520 3237 290a 2a20 436f . (line 27).* Co\n-0000b030: 6e6e 6563 7469 6f6e 5f43 6c6f 7365 6420 nnection_Closed \n-0000b040: 3c34 3e3a 2020 2020 2020 2020 2020 2020 <4>: \n-0000b050: 2020 2020 204e 6577 5f4c 696e 6520 2870 New_Line (p\n-0000b060: 726f 6365 6475 7265 292e 2028 6c69 6e65 rocedure). (line\n-0000b070: 2032 3029 0a2a 2043 6f6e 6e65 6374 696f 20).* Connectio\n-0000b080: 6e5f 436c 6f73 6564 203c 353e 3a20 2020 n_Closed <5>: \n-0000b090: 2020 2020 2020 2020 2020 2020 2020 5075 Pu\n-0000b0a0: 7420 2870 726f 6365 6475 7265 292e 2020 t (procedure). \n-0000b0b0: 2020 2020 286c 696e 6520 3231 290a 2a20 (line 21).* \n-0000b0c0: 436f 6e6e 6563 7469 6f6e 5f43 6c6f 7365 Connection_Close\n-0000b0d0: 6420 3c36 3e3a 2020 2020 2020 2020 2020 d <6>: \n-0000b0e0: 2020 2020 2020 2050 7574 5f4c 696e 6520 Put_Line \n-0000b0f0: 2870 726f 6365 6475 7265 292e 2028 6c69 (procedure). (li\n-0000b100: 6e65 2032 3129 0a2a 2043 6f6e 6e65 6374 ne 21).* Connect\n-0000b110: 696f 6e5f 436c 6f73 6564 203c 373e 3a20 ion_Closed <7>: \n-0000b120: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b130: 5265 6365 6976 6520 2866 756e 6374 696f Receive (functio\n-0000b140: 6e29 2e20 2020 286c 696e 6520 3330 290a n). (line 30).\n-0000b150: 2a20 436f 6e6e 6563 7469 6f6e 5f43 6c6f * Connection_Clo\n-0000b160: 7365 6420 3c38 3e3a 2020 2020 2020 2020 sed <8>: \n-0000b170: 2020 2020 2020 2020 2052 6563 6569 7665 Receive\n-0000b180: 2028 7072 6f63 6564 7572 6529 2e20 2028 (procedure). (\n-0000b190: 6c69 6e65 2032 3529 0a2a 2043 6f6e 6e65 line 25).* Conne\n-0000b1a0: 6374 696f 6e5f 436c 6f73 6564 203c 393e ction_Closed <9>\n-0000b1b0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n-0000b1c0: 2020 5265 6365 6976 655f 536f 6d65 2028 Receive_Some (\n-0000b1d0: 7072 6f63 6564 7572 6529 2e0a 2020 2020 procedure).. \n-0000b1e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b1f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b200: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b210: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n-0000b220: 2032 3729 0a2a 2043 6f6e 6e65 6374 696f 27).* Connectio\n-0000b230: 6e5f 436c 6f73 6564 203c 3130 3e3a 2020 n_Closed <10>: \n-0000b240: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n-0000b250: 6e64 2028 7072 6f63 6564 7572 6529 2e20 nd (procedure). \n-0000b260: 2020 2020 286c 696e 6520 3231 290a 2a20 (line 21).* \n-0000b270: 436f 6e6e 6563 7469 6f6e 5f52 6566 7573 Connection_Refus\n-0000b280: 6564 3a20 2020 2020 2020 2020 2020 2020 ed: \n-0000b290: 2020 2020 2020 2043 6f6e 6e65 6374 2028 Connect (\n-0000b2a0: 7072 6f63 6564 7572 6529 2e20 2028 6c69 procedure). (li\n-0000b2b0: 6e65 2032 3529 0a2a 2043 6f6e 7472 6962 ne 25).* Contrib\n-0000b2c0: 7574 696e 673a 2020 2020 2020 2020 2020 uting: \n-0000b2d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b2e0: 436f 6e74 7269 6275 746f 7273 2e20 2020 Contributors. \n-0000b2f0: 2020 2020 2020 286c 696e 6520 2036 290a (line 6).\n-0000b300: 2a20 436f 6e74 7269 6275 7469 6e67 203c * Contributing <\n-0000b310: 313e 3a20 2020 2020 2020 2020 2020 2020 1>: \n-0000b320: 2020 2020 2020 2020 2052 6573 6f75 7263 Resourc\n-0000b330: 6573 206f 6e20 7468 6520 496e 7465 726e es on the Intern\n-0000b340: 6574 2e0a 2020 2020 2020 2020 2020 2020 et.. \n-0000b350: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b360: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b370: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b380: 2020 2028 6c69 6e65 2020 3629 0a2a 2043 (line 6).* C\n-0000b390: 523a 2020 2020 2020 2020 2020 2020 2020 R: \n-0000b3a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b3b0: 2020 2020 2020 4765 745f 4c69 6e65 2028 Get_Line (\n-0000b3c0: 6675 6e63 7469 6f6e 292e 2020 286c 696e function). (lin\n-0000b3d0: 6520 3231 290a 2a20 4352 203c 313e 3a20 e 21).* CR <1>: \n-0000b3e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b3f0: 2020 2020 2020 2020 2020 2020 2020 2047 G\n-0000b400: 6574 5f4c 696e 6520 2870 726f 6365 6475 et_Line (procedu\n-0000b410: 7265 292e 2028 6c69 6e65 2031 3829 0a2a re). (line 18).*\n-0000b420: 2043 5220 3c32 3e3a 2020 2020 2020 2020 CR <2>: \n-0000b430: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b440: 2020 2020 2020 2020 4e65 775f 4c69 6e65 New_Line\n-0000b450: 2028 7072 6f63 6564 7572 6529 2e20 286c (procedure). (l\n-0000b460: 696e 6520 3137 290a 2a20 4372 6561 7465 ine 17).* Create\n-0000b470: 5f4d 756c 7469 6361 7374 5f53 6f63 6b65 _Multicast_Socke\n-0000b480: 743a 2020 2020 2020 2020 2020 2020 2020 t: \n-0000b490: 2053 6574 7469 6e67 2075 7020 6d75 6c74 Setting up mult\n-0000b4a0: 6963 6173 7420 736f 636b 6574 732e 0a20 icast sockets.. \n-0000b4b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b4c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b4d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b4e0: 2020 2020 2020 2020 2020 2020 2020 286c (l\n-0000b4f0: 696e 6520 3136 290a 2a20 4372 6561 7465 ine 16).* Create\n-0000b500: 5f4d 756c 7469 6361 7374 5f53 6f63 6b65 _Multicast_Socke\n-0000b510: 7420 3c31 3e3a 2020 2020 2020 2020 2020 t <1>: \n-0000b520: 2043 7265 6174 655f 4d75 6c74 6963 6173 Create_Multicas\n-0000b530: 745f 536f 636b 6574 2028 6675 6e63 7469 t_Socket (functi\n-0000b540: 6f6e 292e 0a20 2020 2020 2020 2020 2020 on).. \n-0000b550: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b560: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b570: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b580: 2020 2020 286c 696e 6520 2039 290a 2a20 (line 9).* \n-0000b590: 4372 6561 7465 5f4d 756c 7469 6361 7374 Create_Multicast\n-0000b5a0: 5f53 6f63 6b65 7420 3c32 3e3a 2020 2020 _Socket <2>: \n-0000b5b0: 2020 2020 2020 2043 7265 6174 655f 4d75 Create_Mu\n-0000b5c0: 6c74 6963 6173 745f 536f 636b 6574 2028 lticast_Socket (\n-0000b5d0: 6675 6e63 7469 6f6e 292e 0a20 2020 2020 function).. \n-0000b5e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b5f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b600: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b610: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n-0000b620: 3633 290a 2a20 4372 6561 7469 6e67 2061 63).* Creating a\n-0000b630: 206d 756c 7469 6361 7374 2073 6f63 6b65 multicast socke\n-0000b640: 743a 2020 2020 2020 2020 2020 2053 6574 t: Set\n-0000b650: 7469 6e67 2075 7020 6d75 6c74 6963 6173 ting up multicas\n-0000b660: 7420 736f 636b 6574 732e 0a20 2020 2020 t sockets.. \n-0000b670: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b680: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b690: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b6a0: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n-0000b6b0: 2036 290a 2a20 4372 6561 7469 6e67 2061 6).* Creating a\n-0000b6c0: 206d 756c 7469 6361 7374 2073 6f63 6b65 multicast socke\n-0000b6d0: 7420 3c31 3e3a 2020 2020 2020 2043 7265 t <1>: Cre\n-0000b6e0: 6174 655f 4d75 6c74 6963 6173 745f 536f ate_Multicast_So\n-0000b6f0: 636b 6574 2028 6675 6e63 7469 6f6e 292e cket (function).\n-0000b700: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-0000b710: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b720: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b730: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b740: 286c 696e 6520 2036 290a 2a20 4372 6561 (line 6).* Crea\n-0000b750: 7469 6e67 2061 206d 756c 7469 6361 7374 ting a multicast\n-0000b760: 2073 6f63 6b65 7420 3c32 3e3a 2020 2020 socket <2>: \n-0000b770: 2020 2043 7265 6174 655f 4d75 6c74 6963 Create_Multic\n-0000b780: 6173 745f 536f 636b 6574 2028 6675 6e63 ast_Socket (func\n-0000b790: 7469 6f6e 292e 0a20 2020 2020 2020 2020 tion).. \n-0000b7a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b7b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b7c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b7d0: 2020 2020 2020 286c 696e 6520 3630 290a (line 60).\n-0000b7e0: 2a20 4372 6561 7469 6e67 2061 2073 6572 * Creating a ser\n-0000b7f0: 7665 723a 2020 2020 2020 2020 2020 2020 ver: \n-0000b800: 2020 2020 2020 2020 2042 696e 6420 2870 Bind (p\n-0000b810: 726f 6365 6475 7265 292e 2020 2020 2028 rocedure). (\n-0000b820: 6c69 6e65 2020 3629 0a2a 2043 7265 6174 line 6).* Creat\n-0000b830: 696e 6720 6120 736f 636b 6574 3a20 2020 ing a socket: \n-0000b840: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b850: 2020 5365 7474 696e 6720 7570 2075 6e69 Setting up uni\n-0000b860: 6361 7374 2073 6f63 6b65 7473 2e0a 2020 cast sockets.. \n-0000b870: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b880: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b890: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b8a0: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n-0000b8b0: 6e65 2020 3629 0a2a 2043 7265 6174 696e ne 6).* Creatin\n-0000b8c0: 6720 6120 736f 636b 6574 203c 313e 3a20 g a socket <1>: \n-0000b8d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b8e0: 536f 636b 6574 2028 7072 6f63 6564 7572 Socket (procedur\n-0000b8f0: 6529 2e20 2020 286c 696e 6520 2036 290a e). (line 6).\n-0000b900: 2a20 4372 6561 7469 6e67 2061 2073 6f63 * Creating a soc\n-0000b910: 6b65 7420 3c32 3e3a 2020 2020 2020 2020 ket <2>: \n-0000b920: 2020 2020 2020 2020 2043 7265 6174 655f Create_\n-0000b930: 4d75 6c74 6963 6173 745f 536f 636b 6574 Multicast_Socket\n-0000b940: 2028 6675 6e63 7469 6f6e 292e 0a20 2020 (function).. \n-0000b950: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b960: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b970: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000b980: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n-0000b990: 6520 2036 290a 2a20 4372 6561 7469 6e67 e 6).* Creating\n-0000b9a0: 2061 2073 6f63 6b65 7420 3c33 3e3a 2020 a socket <3>: \n-0000b9b0: 2020 2020 2020 2020 2020 2020 2020 2043 C\n-0000b9c0: 7265 6174 655f 4d75 6c74 6963 6173 745f reate_Multicast_\n-0000b9d0: 536f 636b 6574 2028 6675 6e63 7469 6f6e Socket (function\n-0000b9e0: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n-0000b9f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ba00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ba10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ba20: 2020 286c 696e 6520 3630 290a 2a20 4372 (line 60).* Cr\n-0000ba30: 6561 7469 6e67 2061 2054 4350 2073 6f63 eating a TCP soc\n-0000ba40: 6b65 743a 2020 2020 2020 2020 2020 2020 ket: \n-0000ba50: 2020 2020 2053 6574 7469 6e67 2075 7020 Setting up \n-0000ba60: 756e 6963 6173 7420 736f 636b 6574 732e unicast sockets.\n-0000ba70: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-0000ba80: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ba90: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000baa0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bab0: 286c 696e 6520 2036 290a 2a20 4372 6561 (line 6).* Crea\n-0000bac0: 7469 6e67 2061 2055 4450 2073 6f63 6b65 ting a UDP socke\n-0000bad0: 743a 2020 2020 2020 2020 2020 2020 2020 t: \n-0000bae0: 2020 2053 6574 7469 6e67 2075 7020 756e Setting up un\n-0000baf0: 6963 6173 7420 736f 636b 6574 732e 0a20 icast sockets.. \n-0000bb00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bb10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bb20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bb30: 2020 2020 2020 2020 2020 2020 2020 286c (l\n-0000bb40: 696e 6520 2036 290a 2a20 4372 6561 7469 ine 6).* Creati\n-0000bb50: 6e67 2061 2075 6e69 6361 7374 2073 6f63 ng a unicast soc\n-0000bb60: 6b65 743a 2020 2020 2020 2020 2020 2020 ket: \n-0000bb70: 2053 6574 7469 6e67 2075 7020 756e 6963 Setting up unic\n-0000bb80: 6173 7420 736f 636b 6574 732e 0a20 2020 ast sockets.. \n-0000bb90: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bba0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bbb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bbc0: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n-0000bbd0: 6520 2036 290a 2a20 4573 7461 626c 6973 e 6).* Establis\n-0000bbe0: 6869 6e67 2061 206c 6973 7465 6e20 7175 hing a listen qu\n-0000bbf0: 6575 653a 2020 2020 2020 2020 2020 204c eue: L\n-0000bc00: 6973 7465 6e20 2870 726f 6365 6475 7265 isten (procedure\n-0000bc10: 292e 2020 2028 6c69 6e65 2020 3629 0a2a ). (line 6).*\n-0000bc20: 2046 696e 6469 6e67 2041 6461 536f 636b Finding AdaSock\n-0000bc30: 6574 7320 6f6e 2074 6865 2049 6e74 6572 ets on the Inter\n-0000bc40: 6e65 743a 2020 2020 5265 736f 7572 6365 net: Resource\n-0000bc50: 7320 6f6e 2074 6865 2049 6e74 6572 6e65 s on the Interne\n-0000bc60: 742e 0a20 2020 2020 2020 2020 2020 2020 t.. \n-0000bc70: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bc80: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bc90: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bca0: 2020 286c 696e 6520 2036 290a 2a20 4765 (line 6).* Ge\n-0000bcb0: 743a 2020 2020 2020 2020 2020 2020 2020 t: \n-0000bcc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bcd0: 2020 2020 2047 6574 2028 6675 6e63 7469 Get (functi\n-0000bce0: 6f6e 292e 2020 2020 2020 2028 6c69 6e65 on). (line\n-0000bcf0: 2020 3929 0a2a 2047 6574 5f43 6861 723a 9).* Get_Char:\n-0000bd00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bd10: 2020 2020 2020 2020 2020 2020 2020 4765 Ge\n-0000bd20: 745f 4368 6172 2028 6675 6e63 7469 6f6e t_Char (function\n-0000bd30: 292e 2020 286c 696e 6520 2039 290a 2a20 ). (line 9).* \n-0000bd40: 4765 745f 4c69 6e65 3a20 2020 2020 2020 Get_Line: \n-0000bd50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bd60: 2020 2020 2020 2047 6574 5f4c 696e 6520 Get_Line \n-0000bd70: 2866 756e 6374 696f 6e29 2e20 2028 6c69 (function). (li\n-0000bd80: 6e65 2020 3929 0a2a 2047 6574 5f4c 696e ne 9).* Get_Lin\n-0000bd90: 6520 3c31 3e3a 2020 2020 2020 2020 2020 e <1>: \n-0000bda0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bdb0: 4765 745f 4c69 6e65 2028 7072 6f63 6564 Get_Line (proced\n-0000bdc0: 7572 6529 2e20 286c 696e 6520 2039 290a ure). (line 9).\n-0000bdd0: 2a20 4765 745f 5265 6365 6976 655f 5175 * Get_Receive_Qu\n-0000bde0: 6575 655f 5369 7a65 3a20 2020 2020 2020 eue_Size: \n-0000bdf0: 2020 2020 2020 2020 2047 6574 5f52 6563 Get_Rec\n-0000be00: 6569 7665 5f51 7565 7565 5f53 697a 6520 eive_Queue_Size \n-0000be10: 2866 756e 6374 696f 6e29 2e0a 2020 2020 (function).. \n-0000be20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000be30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000be40: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000be50: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n-0000be60: 2020 3929 0a2a 2047 6574 5f53 656e 645f 9).* Get_Send_\n-0000be70: 5175 6575 655f 5369 7a65 3a20 2020 2020 Queue_Size: \n-0000be80: 2020 2020 2020 2020 2020 2020 2020 4765 Ge\n-0000be90: 745f 5365 6e64 5f51 7565 7565 5f53 697a t_Send_Queue_Siz\n-0000bea0: 6520 2866 756e 6374 696f 6e29 2e0a 2020 e (function).. \n-0000beb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bec0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bed0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bee0: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n-0000bef0: 6e65 2020 3929 0a2a 2047 6574 736f 636b ne 9).* Getsock\n-0000bf00: 6f70 743a 2020 2020 2020 2020 2020 2020 opt: \n-0000bf10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bf20: 4765 7473 6f63 6b6f 7074 2028 7072 6f63 Getsockopt (proc\n-0000bf30: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n-0000bf40: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bf50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bf60: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bf70: 2020 2020 2020 2028 6c69 6e65 2020 3929 (line 9)\n-0000bf80: 0a2a 2047 726f 7570 2063 6f6d 6d75 6e69 .* Group communi\n-0000bf90: 6361 7469 6f6e 3a20 2020 2020 2020 2020 cation: \n-0000bfa0: 2020 2020 2020 2020 2020 5365 7474 696e Settin\n-0000bfb0: 6720 7570 206d 756c 7469 6361 7374 2073 g up multicast s\n-0000bfc0: 6f63 6b65 7473 2e0a 2020 2020 2020 2020 ockets.. \n-0000bfd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bfe0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000bff0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c000: 2020 2020 2020 2028 6c69 6e65 2020 3629 (line 6)\n-0000c010: 0a2a 2048 616e 646c 696e 6720 6120 6e65 .* Handling a ne\n-0000c020: 7720 636f 6e6e 6563 7469 6f6e 3a20 2020 w connection: \n-0000c030: 2020 2020 2020 2020 2020 4163 6365 7074 Accept\n-0000c040: 5f53 6f63 6b65 7420 2870 726f 6365 6475 _Socket (procedu\n-0000c050: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n-0000c060: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c070: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c080: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c090: 2020 2020 286c 696e 6520 2036 290a 2a20 (line 6).* \n-0000c0a0: 496e 7374 616c 6c69 6e67 2041 6461 536f Installing AdaSo\n-0000c0b0: 636b 6574 733a 2020 2020 2020 2020 2020 ckets: \n-0000c0c0: 2020 2020 2020 2049 6e73 7461 6c6c 696e Installin\n-0000c0d0: 6720 4164 6153 6f63 6b65 7473 2e0a 2020 g AdaSockets.. \n-0000c0e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c0f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c100: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c110: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n-0000c120: 6e65 2020 3629 0a2a 2049 505f 4144 445f ne 6).* IP_ADD_\n-0000c130: 4d45 4d42 4552 5348 4950 3a20 2020 2020 MEMBERSHIP: \n-0000c140: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c150: 4765 7473 6f63 6b6f 7074 2028 7072 6f63 Getsockopt (proc\n-0000c160: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n-0000c170: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c180: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c190: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c1a0: 2020 2020 2020 2028 6c69 6e65 2032 3029 (line 20)\n-0000c1b0: 0a2a 2049 505f 4144 445f 4d45 4d42 4552 .* IP_ADD_MEMBER\n-0000c1c0: 5348 4950 203c 313e 3a20 2020 2020 2020 SHIP <1>: \n-0000c1d0: 2020 2020 2020 2020 2020 5365 7473 6f63 Setsoc\n-0000c1e0: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n-0000c1f0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n-0000c200: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c210: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c220: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c230: 2028 6c69 6e65 2032 3029 0a2a 2049 505f (line 20).* IP_\n-0000c240: 4452 4f50 5f4d 454d 4245 5253 4849 503a DROP_MEMBERSHIP:\n-0000c250: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c260: 2020 2020 4765 7473 6f63 6b6f 7074 2028 Getsockopt (\n-0000c270: 7072 6f63 6564 7572 6529 2e0a 2020 2020 procedure).. \n-0000c280: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c290: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c2a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c2b0: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n-0000c2c0: 2032 3029 0a2a 2049 505f 4452 4f50 5f4d 20).* IP_DROP_M\n-0000c2d0: 454d 4245 5253 4849 5020 3c31 3e3a 2020 EMBERSHIP <1>: \n-0000c2e0: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n-0000c2f0: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n-0000c300: 7572 6529 2e0a 2020 2020 2020 2020 2020 ure).. \n-0000c310: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c320: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c330: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c340: 2020 2020 2028 6c69 6e65 2032 3029 0a2a (line 20).*\n-0000c350: 2049 505f 4d55 4c54 4943 4153 545f 4c4f IP_MULTICAST_LO\n-0000c360: 4f50 3a20 2020 2020 2020 2020 2020 2020 OP: \n-0000c370: 2020 2020 2020 2020 4765 7473 6f63 6b6f Getsocko\n-0000c380: 7074 2028 7072 6f63 6564 7572 6529 2e0a pt (procedure)..\n-0000c390: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c3a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c3b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c3c0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n-0000c3d0: 6c69 6e65 2032 3029 0a2a 2049 505f 4d55 line 20).* IP_MU\n-0000c3e0: 4c54 4943 4153 545f 4c4f 4f50 203c 313e LTICAST_LOOP <1>\n-0000c3f0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n-0000c400: 2020 5365 7473 6f63 6b6f 7074 2028 7072 Setsockopt (pr\n-0000c410: 6f63 6564 7572 6529 2e0a 2020 2020 2020 ocedure).. \n-0000c420: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c430: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c440: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c450: 2020 2020 2020 2020 2028 6c69 6e65 2032 (line 2\n-0000c460: 3029 0a2a 2049 505f 4d55 4c54 4943 4153 0).* IP_MULTICAS\n-0000c470: 545f 5454 4c3a 2020 2020 2020 2020 2020 T_TTL: \n-0000c480: 2020 2020 2020 2020 2020 2020 4765 7473 Gets\n-0000c490: 6f63 6b6f 7074 2028 7072 6f63 6564 7572 ockopt (procedur\n-0000c4a0: 6529 2e0a 2020 2020 2020 2020 2020 2020 e).. \n-0000c4b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c4c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c4d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c4e0: 2020 2028 6c69 6e65 2032 3029 0a2a 2049 (line 20).* I\n-0000c4f0: 505f 4d55 4c54 4943 4153 545f 5454 4c20 P_MULTICAST_TTL \n-0000c500: 3c31 3e3a 2020 2020 2020 2020 2020 2020 <1>: \n-0000c510: 2020 2020 2020 5365 7473 6f63 6b6f 7074 Setsockopt\n-0000c520: 2028 7072 6f63 6564 7572 6529 2e0a 2020 (procedure).. \n-0000c530: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c540: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c550: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c560: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n-0000c570: 6e65 2032 3029 0a2a 2049 5050 524f 544f ne 20).* IPPROTO\n-0000c580: 5f49 503a 2020 2020 2020 2020 2020 2020 _IP: \n-0000c590: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c5a0: 4765 7473 6f63 6b6f 7074 2028 7072 6f63 Getsockopt (proc\n-0000c5b0: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n-0000c5c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c5d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c5e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c5f0: 2020 2020 2020 2028 6c69 6e65 2032 3029 (line 20)\n-0000c600: 0a2a 2049 5050 524f 544f 5f49 5020 3c31 .* IPPROTO_IP <1\n-0000c610: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n-0000c620: 2020 2020 2020 2020 2020 5365 7473 6f63 Setsoc\n-0000c630: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n-0000c640: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n-0000c650: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c660: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c670: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c680: 2028 6c69 6e65 2032 3029 0a2a 204c 463a (line 20).* LF:\n-0000c690: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c6a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c6b0: 2020 2020 4765 745f 4c69 6e65 2028 6675 Get_Line (fu\n-0000c6c0: 6e63 7469 6f6e 292e 2020 286c 696e 6520 nction). (line \n-0000c6d0: 3231 290a 2a20 4c46 203c 313e 3a20 2020 21).* LF <1>: \n-0000c6e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c6f0: 2020 2020 2020 2020 2020 2020 2047 6574 Get\n-0000c700: 5f4c 696e 6520 2870 726f 6365 6475 7265 _Line (procedure\n-0000c710: 292e 2028 6c69 6e65 2031 3829 0a2a 204c ). (line 18).* L\n-0000c720: 4620 3c32 3e3a 2020 2020 2020 2020 2020 F <2>: \n-0000c730: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c740: 2020 2020 2020 4e65 775f 4c69 6e65 2028 New_Line (\n-0000c750: 7072 6f63 6564 7572 6529 2e20 286c 696e procedure). (lin\n-0000c760: 6520 3137 290a 2a20 4c69 7374 656e 3a20 e 17).* Listen: \n-0000c770: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c780: 2020 2020 2020 2020 2020 2020 2020 204c L\n-0000c790: 6973 7465 6e20 2870 726f 6365 6475 7265 isten (procedure\n-0000c7a0: 292e 2020 2028 6c69 6e65 2020 3929 0a2a ). (line 9).*\n-0000c7b0: 204c 6973 7465 6e20 7175 6575 653a 2020 Listen queue: \n-0000c7c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c7d0: 2020 2020 2020 2020 4c69 7374 656e 2028 Listen (\n-0000c7e0: 7072 6f63 6564 7572 6529 2e20 2020 286c procedure). (l\n-0000c7f0: 696e 6520 2036 290a 2a20 4d61 6e69 7075 ine 6).* Manipu\n-0000c800: 6c61 7469 6e67 2073 6f63 6b65 7420 6f70 lating socket op\n-0000c810: 7469 6f6e 733a 2020 2020 2020 2020 2020 tions: \n-0000c820: 2047 6574 736f 636b 6f70 7420 2870 726f Getsockopt (pro\n-0000c830: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n-0000c840: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c850: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c860: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c870: 2020 2020 2020 2020 286c 696e 6520 2036 (line 6\n-0000c880: 290a 2a20 4d61 6e69 7075 6c61 7469 6e67 ).* Manipulating\n-0000c890: 2073 6f63 6b65 7420 6f70 7469 6f6e 7320 socket options \n-0000c8a0: 3c31 3e3a 2020 2020 2020 2053 6574 736f <1>: Setso\n-0000c8b0: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n-0000c8c0: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n-0000c8d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c8e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c8f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c900: 2020 286c 696e 6520 2036 290a 2a20 4d62 (line 6).* Mb\n-0000c910: 6f6e 653a 2020 2020 2020 2020 2020 2020 one: \n-0000c920: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c930: 2020 2020 2053 6574 7469 6e67 2075 7020 Setting up \n-0000c940: 6d75 6c74 6963 6173 7420 736f 636b 6574 multicast socket\n-0000c950: 732e 0a20 2020 2020 2020 2020 2020 2020 s.. \n-0000c960: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c970: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c980: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c990: 2020 286c 696e 6520 2036 290a 2a20 4d75 (line 6).* Mu\n-0000c9a0: 6c74 6963 6173 7420 736f 636b 6574 733a lticast sockets:\n-0000c9b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000c9c0: 2020 2020 2053 6574 7469 6e67 2075 7020 Setting up \n-0000c9d0: 6d75 6c74 6963 6173 7420 736f 636b 6574 multicast socket\n-0000c9e0: 732e 0a20 2020 2020 2020 2020 2020 2020 s.. \n-0000c9f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ca00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ca10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ca20: 2020 286c 696e 6520 2036 290a 2a20 4d75 (line 6).* Mu\n-0000ca30: 6c74 6963 6173 745f 536f 636b 6574 5f46 lticast_Socket_F\n-0000ca40: 443a 2020 2020 2020 2020 2020 2020 2020 D: \n-0000ca50: 2020 2020 2053 6574 7469 6e67 2075 7020 Setting up \n-0000ca60: 6d75 6c74 6963 6173 7420 736f 636b 6574 multicast socket\n-0000ca70: 732e 0a20 2020 2020 2020 2020 2020 2020 s.. \n-0000ca80: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ca90: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000caa0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cab0: 2020 286c 696e 6520 3136 290a 2a20 4d75 (line 16).* Mu\n-0000cac0: 6c74 6963 6173 745f 536f 636b 6574 5f46 lticast_Socket_F\n-0000cad0: 4420 3c31 3e3a 2020 2020 2020 2020 2020 D <1>: \n-0000cae0: 2020 2020 2053 6f63 6b65 7473 2e4d 756c Sockets.Mul\n-0000caf0: 7469 6361 7374 2070 6163 6b61 6765 2e0a ticast package..\n-0000cb00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cb10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cb20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cb30: 2020 2020 2020 2020 2020 2020 2020 2028 (\n-0000cb40: 6c69 6e65 2020 3829 0a2a 204e 6577 5f4c line 8).* New_L\n-0000cb50: 696e 653a 2020 2020 2020 2020 2020 2020 ine: \n+00002f20: 4c45 0a0a 0a53 4545 2041 4c53 4f0a 2020 LE...SEE ALSO. \n+00002f30: 2020 202a 6e6f 7465 2042 696e 6420 2870 *note Bind (p\n+00002f40: 726f 6365 6475 7265 293a 3a2c 0a20 2020 rocedure)::,. \n+00002f50: 2020 2a6e 6f74 6520 4c69 7374 656e 2028 *note Listen (\n+00002f60: 7072 6f63 6564 7572 6529 3a3a 2c0a 2020 procedure)::,. \n+00002f70: 2020 202a 6e6f 7465 2053 6875 7464 6f77 *note Shutdow\n+00002f80: 6e20 2870 726f 6365 6475 7265 293a 3a2c n (procedure)::,\n+00002f90: 0a20 2020 2020 2a6e 6f74 6520 536f 636b . *note Sock\n+00002fa0: 6574 2028 7072 6f63 6564 7572 6529 3a3a et (procedure)::\n+00002fb0: 2e0a 0a2a 204d 656e 753a 0a0a 2a20 4269 ...* Menu:..* Bi\n+00002fc0: 6e64 2028 7072 6f63 6564 7572 6529 3a3a nd (procedure)::\n+00002fd0: 0a2a 2043 6f6e 6e65 6374 2028 7072 6f63 .* Connect (proc\n+00002fe0: 6564 7572 6529 3a3a 0a2a 2047 6574 2028 edure)::.* Get (\n+00002ff0: 6675 6e63 7469 6f6e 293a 3a0a 2a20 4765 function)::.* Ge\n+00003000: 745f 4368 6172 2028 6675 6e63 7469 6f6e t_Char (function\n+00003010: 293a 3a0a 2a20 4765 745f 4c69 6e65 2028 )::.* Get_Line (\n+00003020: 6675 6e63 7469 6f6e 293a 3a0a 2a20 4765 function)::.* Ge\n+00003030: 745f 4c69 6e65 2028 7072 6f63 6564 7572 t_Line (procedur\n+00003040: 6529 3a3a 0a2a 2047 6574 5f52 6563 6569 e)::.* Get_Recei\n+00003050: 7665 5f51 7565 7565 5f53 697a 6520 2866 ve_Queue_Size (f\n+00003060: 756e 6374 696f 6e29 3a3a 0a2a 2047 6574 unction)::.* Get\n+00003070: 5f53 656e 645f 5175 6575 655f 5369 7a65 _Send_Queue_Size\n+00003080: 2028 6675 6e63 7469 6f6e 293a 3a0a 2a20 (function)::.* \n+00003090: 4765 7473 6f63 6b6f 7074 2028 7072 6f63 Getsockopt (proc\n+000030a0: 6564 7572 6529 3a3a 0a2a 204c 6973 7465 edure)::.* Liste\n+000030b0: 6e20 2870 726f 6365 6475 7265 293a 3a0a n (procedure)::.\n+000030c0: 2a20 4e65 775f 4c69 6e65 2028 7072 6f63 * New_Line (proc\n+000030d0: 6564 7572 6529 3a3a 0a2a 2050 7574 2028 edure)::.* Put (\n+000030e0: 7072 6f63 6564 7572 6529 3a3a 0a2a 2050 procedure)::.* P\n+000030f0: 7574 5f4c 696e 6520 2870 726f 6365 6475 ut_Line (procedu\n+00003100: 7265 293a 3a0a 2a20 5265 6365 6976 6520 re)::.* Receive \n+00003110: 2866 756e 6374 696f 6e29 3a3a 0a2a 2052 (function)::.* R\n+00003120: 6563 6569 7665 2028 7072 6f63 6564 7572 eceive (procedur\n+00003130: 6529 3a3a 0a2a 2052 6563 6569 7665 5f53 e)::.* Receive_S\n+00003140: 6f6d 6520 2870 726f 6365 6475 7265 293a ome (procedure):\n+00003150: 3a0a 2a20 5365 6e64 2028 7072 6f63 6564 :.* Send (proced\n+00003160: 7572 6529 3a3a 0a2a 2053 6574 5f42 7566 ure)::.* Set_Buf\n+00003170: 6665 7220 2870 726f 6365 6475 7265 293a fer (procedure):\n+00003180: 3a0a 2a20 5365 7473 6f63 6b6f 7074 2028 :.* Setsockopt (\n+00003190: 7072 6f63 6564 7572 6529 3a3a 0a2a 2053 procedure)::.* S\n+000031a0: 6875 7464 6f77 6e20 2870 726f 6365 6475 hutdown (procedu\n+000031b0: 7265 293a 3a0a 2a20 536f 636b 6574 2028 re)::.* Socket (\n+000031c0: 7072 6f63 6564 7572 6529 3a3a 0a2a 2055 procedure)::.* U\n+000031d0: 6e73 6574 5f42 7566 6665 7220 2870 726f nset_Buffer (pro\n+000031e0: 6365 6475 7265 293a 3a0a 0a1f 0a46 696c cedure)::....Fil\n+000031f0: 653a 2061 6461 736f 636b 6574 732e 696e e: adasockets.in\n+00003200: 666f 2c20 204e 6f64 653a 2042 696e 6420 fo, Node: Bind \n+00003210: 2870 726f 6365 6475 7265 292c 2020 4e65 (procedure), Ne\n+00003220: 7874 3a20 436f 6e6e 6563 7420 2870 726f xt: Connect (pro\n+00003230: 6365 6475 7265 292c 2020 5072 6576 3a20 cedure), Prev: \n+00003240: 4163 6365 7074 5f53 6f63 6b65 7420 2870 Accept_Socket (p\n+00003250: 726f 6365 6475 7265 292c 2020 5570 3a20 rocedure), Up: \n+00003260: 4163 6365 7074 5f53 6f63 6b65 7420 2870 Accept_Socket (p\n+00003270: 726f 6365 6475 7265 290a 0a42 696e 6420 rocedure)..Bind \n+00003280: 2870 726f 6365 6475 7265 290a 2d2d 2d2d (procedure).----\n+00003290: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 5055 ------------..PU\n+000032a0: 5250 4f53 450a 2020 2020 2041 7373 6f63 RPOSE. Assoc\n+000032b0: 6961 7465 2061 206c 6f63 616c 2070 6f72 iate a local por\n+000032c0: 7420 746f 2061 2073 6f63 6b65 740a 5052 t to a socket.PR\n+000032d0: 4f54 4f54 5950 450a 2020 2020 2020 2d2d OTOTYPE. --\n+000032e0: 2053 6f63 6b65 7473 2e42 696e 643a 2070 Sockets.Bind: p\n+000032f0: 726f 6365 6475 7265 2042 696e 6420 2853 rocedure Bind (S\n+00003300: 4f43 4b45 5420 3a20 536f 636b 6574 5f46 OCKET : Socket_F\n+00003310: 443b 0a20 2020 2020 2020 2020 2020 2020 D;. \n+00003320: 2020 504f 5254 203a 204e 6174 7572 616c PORT : Natural\n+00003330: 3b20 484f 5354 203a 2053 7472 696e 6720 ; HOST : String \n+00003340: 3a3d 2022 2229 3b0a 0a50 4152 414d 4554 := \"\");..PARAMET\n+00003350: 4552 530a 2020 2020 2053 4f43 4b45 5420 ERS. SOCKET \n+00003360: 2020 2020 696e 2020 2020 2020 2020 2049 in I\n+00003370: 6e69 7469 616c 697a 6564 2073 6f63 6b65 nitialized socke\n+00003380: 7420 6f62 6a65 6374 0a20 2020 2020 504f t object. PO\n+00003390: 5254 2020 2020 2020 2069 6e20 2020 2020 RT in \n+000033a0: 2020 2020 4c6f 6361 6c20 706f 7274 2074 Local port t\n+000033b0: 6f20 6269 6e64 2074 6f0a 2020 2020 2048 o bind to. H\n+000033c0: 4f53 5420 2020 2020 2020 696e 2020 2020 OST in \n+000033d0: 2020 2020 204c 6f63 616c 2069 6e74 6572 Local inter\n+000033e0: 6661 6365 2074 6f20 6269 6e64 2074 6f0a face to bind to.\n+000033f0: 0a44 4553 4352 4950 5449 4f4e 0a20 2020 .DESCRIPTION. \n+00003400: 2020 5468 6973 2070 726f 6365 6475 7265 This procedure\n+00003410: 2072 6571 7565 7374 7320 6120 6c6f 6361 requests a loca\n+00003420: 6c20 706f 7274 2066 726f 6d20 7468 6520 l port from the \n+00003430: 6f70 6572 6174 696e 6720 7379 7374 656d operating system\n+00003440: 2e20 2049 660a 2020 2020 2030 2069 7320 . If. 0 is \n+00003450: 6769 7665 6e20 696e 2050 4f52 542c 2074 given in PORT, t\n+00003460: 6865 2073 7973 7465 6d20 7769 6c6c 2061 he system will a\n+00003470: 7373 6967 6e20 6120 6672 6565 2070 6f72 ssign a free por\n+00003480: 7420 7768 6f73 6520 6e75 6d62 6572 0a20 t whose number. \n+00003490: 2020 2020 6361 6e20 6c61 7465 7220 6265 can later be\n+000034a0: 2072 6574 7269 6576 6564 2075 7369 6e67 retrieved using\n+000034b0: 202a 6e6f 7465 2047 6574 5f53 6f63 6b5f *note Get_Sock_\n+000034c0: 506f 7274 2028 6675 6e63 7469 6f6e 293a Port (function):\n+000034d0: 3a2e 0a20 2020 2020 416c 736f 2c20 6d6f :.. Also, mo\n+000034e0: 7374 206f 7065 7261 7469 6e67 2073 7973 st operating sys\n+000034f0: 7465 6d73 2072 6571 7569 7265 2073 7065 tems require spe\n+00003500: 6369 616c 2070 7269 7669 6c65 6765 7320 cial privileges \n+00003510: 6966 2079 6f75 2077 616e 740a 2020 2020 if you want. \n+00003520: 2074 6f20 6269 6e64 2074 6f20 706f 7274 to bind to port\n+00003530: 7320 6265 6c6f 7720 3130 3234 2e0a 0a20 s below 1024... \n+00003540: 2020 2020 4966 2048 4f53 5420 6973 206e If HOST is n\n+00003550: 6f74 2074 6865 2065 6d70 7479 2073 7472 ot the empty str\n+00003560: 696e 672c 2069 7420 6d75 7374 2063 6f6e ing, it must con\n+00003570: 7461 696e 2074 6865 2049 5020 6164 6472 tain the IP addr\n+00003580: 6573 7320 6f66 0a20 2020 2020 6120 6c6f ess of. a lo\n+00003590: 6361 6c20 696e 7465 7266 6163 6520 746f cal interface to\n+000035a0: 2062 696e 6420 746f 2c20 6f72 2061 206e bind to, or a n\n+000035b0: 616d 6520 7768 6963 6820 7265 736f 6c76 ame which resolv\n+000035c0: 6573 2069 6e74 6f20 7375 6368 2061 6e0a es into such an.\n+000035d0: 2020 2020 2061 6464 7265 7373 2e20 2049 address. I\n+000035e0: 6620 616e 2065 6d70 7479 2073 7472 696e f an empty strin\n+000035f0: 6720 6973 2067 6976 656e 2028 7468 6520 g is given (the \n+00003600: 6465 6661 756c 7429 2c20 7468 6520 736f default), the so\n+00003610: 636b 6574 0a20 2020 2020 7769 6c6c 2062 cket. will b\n+00003620: 6520 626f 756e 6420 746f 2061 6c6c 2074 e bound to all t\n+00003630: 6865 2061 7661 696c 6162 6c65 2069 6e74 he available int\n+00003640: 6572 6661 6365 732e 0a0a 4558 4345 5054 erfaces...EXCEPT\n+00003650: 494f 4e53 0a20 2020 2020 e280 9853 6f63 IONS. ...Soc\n+00003660: 6b65 745f 4572 726f 72e2 8099 2020 2020 ket_Error... \n+00003670: 2052 6571 7565 7374 6564 2070 6f72 7420 Requested port \n+00003680: 6f72 2069 6e74 6572 6661 6365 206e 6f74 or interface not\n+00003690: 2061 7661 696c 6162 6c65 0a0a 5345 4520 available..SEE \n+000036a0: 414c 534f 0a20 2020 2020 2a6e 6f74 6520 ALSO. *note \n+000036b0: 4c69 7374 656e 2028 7072 6f63 6564 7572 Listen (procedur\n+000036c0: 6529 3a3a 2c0a 2020 2020 202a 6e6f 7465 e)::,. *note\n+000036d0: 2053 6f63 6b65 7420 2870 726f 6365 6475 Socket (procedu\n+000036e0: 7265 293a 3a2e 0a0a 1f0a 4669 6c65 3a20 re)::.....File: \n+000036f0: 6164 6173 6f63 6b65 7473 2e69 6e66 6f2c adasockets.info,\n+00003700: 2020 4e6f 6465 3a20 436f 6e6e 6563 7420 Node: Connect \n+00003710: 2870 726f 6365 6475 7265 292c 2020 4e65 (procedure), Ne\n+00003720: 7874 3a20 4765 7420 2866 756e 6374 696f xt: Get (functio\n+00003730: 6e29 2c20 2050 7265 763a 2042 696e 6420 n), Prev: Bind \n+00003740: 2870 726f 6365 6475 7265 292c 2020 5570 (procedure), Up\n+00003750: 3a20 4163 6365 7074 5f53 6f63 6b65 7420 : Accept_Socket \n+00003760: 2870 726f 6365 6475 7265 290a 0a43 6f6e (procedure)..Con\n+00003770: 6e65 6374 2028 7072 6f63 6564 7572 6529 nect (procedure)\n+00003780: 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d .---------------\n+00003790: 2d2d 2d2d 0a0a 5055 5250 4f53 450a 2020 ----..PURPOSE. \n+000037a0: 2020 2043 6f6e 6e65 6374 2061 2073 6f63 Connect a soc\n+000037b0: 6b65 7420 6f6e 2061 2067 6976 656e 2068 ket on a given h\n+000037c0: 6f73 742f 706f 7274 0a50 524f 544f 5459 ost/port.PROTOTY\n+000037d0: 5045 0a20 2020 2020 202d 2d20 536f 636b PE. -- Sock\n+000037e0: 6574 732e 436f 6e6e 6563 743a 2070 726f ets.Connect: pro\n+000037f0: 6365 6475 7265 2043 6f6e 6e65 6374 2028 cedure Connect (\n+00003800: 534f 434b 4554 203a 2053 6f63 6b65 745f SOCKET : Socket_\n+00003810: 4644 3b0a 2020 2020 2020 2020 2020 2020 FD;. \n+00003820: 2020 2048 4f53 5420 3a20 5374 7269 6e67 HOST : String\n+00003830: 3b20 504f 5254 203a 2050 6f73 6974 6976 ; PORT : Positiv\n+00003840: 6529 3b0a 0a50 4152 414d 4554 4552 530a e);..PARAMETERS.\n+00003850: 2020 2020 2053 4f43 4b45 5420 2020 2020 SOCKET \n+00003860: 696e 2020 2020 2020 2020 2049 6e69 7469 in Initi\n+00003870: 616c 697a 6564 2073 6f63 6b65 7420 6f62 alized socket ob\n+00003880: 6a65 6374 0a20 2020 2020 484f 5354 2020 ject. HOST \n+00003890: 2020 2020 2069 6e20 2020 2020 2020 2020 in \n+000038a0: 486f 7374 2074 6f20 636f 6e6e 6563 7420 Host to connect \n+000038b0: 746f 0a20 2020 2020 504f 5254 2020 2020 to. PORT \n+000038c0: 2020 2069 6e20 2020 2020 2020 2020 506f in Po\n+000038d0: 7274 2074 6f20 636f 6e6e 6563 7420 746f rt to connect to\n+000038e0: 0a0a 4445 5343 5249 5054 494f 4e0a 2020 ..DESCRIPTION. \n+000038f0: 2020 2054 6869 7320 7072 6f63 6564 7572 This procedur\n+00003900: 6520 636f 6e6e 6563 7473 2061 6e20 696e e connects an in\n+00003910: 6974 6961 6c69 7a65 6420 736f 636b 6574 itialized socket\n+00003920: 2074 6f20 6120 6769 7665 6e20 686f 7374 to a given host\n+00003930: 206f 6e20 610a 2020 2020 2067 6976 656e on a. given\n+00003940: 2070 6f72 742e 2020 496e 2074 6865 2063 port. In the c\n+00003950: 6173 6520 6f66 2061 2054 4350 2073 6f63 ase of a TCP soc\n+00003960: 6b65 742c 2061 2072 6561 6c20 636f 6e6e ket, a real conn\n+00003970: 6563 7469 6f6e 2069 730a 2020 2020 2061 ection is. a\n+00003980: 7474 656d 7074 6564 2e20 2049 6e20 7468 ttempted. In th\n+00003990: 6520 6361 7365 206f 6620 6120 5544 5020 e case of a UDP \n+000039a0: 736f 636b 6574 2c20 6e6f 2063 6f6e 6e65 socket, no conne\n+000039b0: 6374 696f 6e20 7461 6b65 7320 706c 6163 ction takes plac\n+000039c0: 650a 2020 2020 2062 7574 2074 6865 2065 e. but the e\n+000039d0: 6e64 706f 696e 7420 636f 6f72 6469 6e61 ndpoint coordina\n+000039e0: 7465 7320 6172 6520 7265 636f 7264 6564 tes are recorded\n+000039f0: 2e0a 0a45 5843 4550 5449 4f4e 530a 2020 ...EXCEPTIONS. \n+00003a00: 2020 20e2 8098 436f 6e6e 6563 7469 6f6e ...Connection\n+00003a10: 5f52 6566 7573 6564 e280 9954 6865 2063 _Refused...The c\n+00003a20: 6f6e 6e65 6374 696f 6e20 6861 7320 6265 onnection has be\n+00003a30: 656e 2072 6566 7573 6564 2062 7920 7468 en refused by th\n+00003a40: 650a 2020 2020 2020 2020 2020 2020 2020 e. \n+00003a50: 2020 2020 2020 2020 2020 7365 7276 6572 server\n+00003a60: 0a20 2020 2020 e280 9853 6f63 6b65 745f . ...Socket_\n+00003a70: 4572 726f 72e2 8099 2020 2020 2041 6e6f Error... Ano\n+00003a80: 7468 6572 2065 7272 6f72 206f 6363 7572 ther error occur\n+00003a90: 7265 6420 6475 7269 6e67 2074 6865 0a20 red during the. \n+00003aa0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00003ab0: 2020 2020 2020 2063 6f6e 6e65 6374 696f connectio\n+00003ac0: 6e0a 0a45 5841 4d50 4c45 0a20 2020 2020 n..EXAMPLE. \n+00003ad0: 2020 2020 2064 6563 6c61 7265 0a20 2020 declare. \n+00003ae0: 2020 2020 2020 2020 2020 536f 636b 203a Sock :\n+00003af0: 2053 6f63 6b65 745f 4644 3b0a 2020 2020 Socket_FD;. \n+00003b00: 2020 2020 2020 6265 6769 6e0a 2020 2020 begin. \n+00003b10: 2020 2020 2020 2020 202d 2d20 4372 6561 -- Crea\n+00003b20: 7465 2061 2054 4350 2073 6f63 6b65 740a te a TCP socket.\n+00003b30: 2020 2020 2020 2020 2020 2020 2053 6f63 Soc\n+00003b40: 6b65 7420 2853 6f63 6b2c 2050 465f 494e ket (Sock, PF_IN\n+00003b50: 4554 2c20 534f 434b 5f53 5452 4541 4d29 ET, SOCK_STREAM)\n+00003b60: 3b0a 2020 2020 2020 2020 2020 2020 202d ;. -\n+00003b70: 2d20 436f 6e6e 6563 7420 6974 2074 6f20 - Connect it to \n+00003b80: 7266 6331 3134 392e 6e65 7427 7320 6d61 rfc1149.net's ma\n+00003b90: 696c 2073 6572 7665 720a 2020 2020 2020 il server. \n+00003ba0: 2020 2020 2020 2043 6f6e 6e65 6374 2028 Connect (\n+00003bb0: 536f 636b 2c20 226d 6169 6c2e 7266 6331 Sock, \"mail.rfc1\n+00003bc0: 3134 392e 6e65 7422 2c20 3235 293b 0a20 149.net\", 25);. \n+00003bd0: 2020 2020 2020 2020 2020 2020 2d2d 2044 -- D\n+00003be0: 6f20 6120 6d61 696c 2074 7261 6e73 6163 o a mail transac\n+00003bf0: 7469 6f6e 2074 6865 6e20 636c 6f73 6520 tion then close \n+00003c00: 7468 6520 736f 636b 6574 0a20 2020 2020 the socket. \n+00003c10: 2020 2020 2020 2020 5b2e 2e2e 5d0a 2020 [...]. \n+00003c20: 2020 2020 2020 2020 656e 643b 0a0a 5345 end;..SE\n+00003c30: 4520 414c 534f 0a20 2020 2020 2a6e 6f74 E ALSO. *not\n+00003c40: 6520 536f 636b 6574 2028 7072 6f63 6564 e Socket (proced\n+00003c50: 7572 6529 3a3a 2e0a 0a1f 0a46 696c 653a ure)::.....File:\n+00003c60: 2061 6461 736f 636b 6574 732e 696e 666f adasockets.info\n+00003c70: 2c20 204e 6f64 653a 2047 6574 2028 6675 , Node: Get (fu\n+00003c80: 6e63 7469 6f6e 292c 2020 4e65 7874 3a20 nction), Next: \n+00003c90: 4765 745f 4368 6172 2028 6675 6e63 7469 Get_Char (functi\n+00003ca0: 6f6e 292c 2020 5072 6576 3a20 436f 6e6e on), Prev: Conn\n+00003cb0: 6563 7420 2870 726f 6365 6475 7265 292c ect (procedure),\n+00003cc0: 2020 5570 3a20 4163 6365 7074 5f53 6f63 Up: Accept_Soc\n+00003cd0: 6b65 7420 2870 726f 6365 6475 7265 290a ket (procedure).\n+00003ce0: 0a47 6574 2028 6675 6e63 7469 6f6e 290a .Get (function).\n+00003cf0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a --------------..\n+00003d00: 5055 5250 4f53 450a 2020 2020 2047 6574 PURPOSE. Get\n+00003d10: 2061 2073 7472 696e 6720 6672 6f6d 2061 a string from a\n+00003d20: 2072 656d 6f74 6520 686f 7374 0a50 524f remote host.PRO\n+00003d30: 544f 5459 5045 0a20 2020 2020 202d 2d20 TOTYPE. -- \n+00003d40: 536f 636b 6574 732e 4765 743a 2066 756e Sockets.Get: fun\n+00003d50: 6374 696f 6e20 4765 7420 2853 4f43 4b45 ction Get (SOCKE\n+00003d60: 5420 3a20 536f 636b 6574 5f46 4427 436c T : Socket_FD'Cl\n+00003d70: 6173 7329 0a20 2020 2020 2020 2020 2020 ass). \n+00003d80: 2020 2020 7265 7475 726e 2053 7472 696e return Strin\n+00003d90: 673b 0a0a 5041 5241 4d45 5445 5253 0a20 g;..PARAMETERS. \n+00003da0: 2020 2020 534f 434b 4554 2020 2020 2069 SOCKET i\n+00003db0: 6e20 2020 2020 2020 2020 496e 6974 6961 n Initia\n+00003dc0: 6c69 7a65 6420 616e 6420 636f 6e6e 6563 lized and connec\n+00003dd0: 7465 6420 736f 636b 6574 206f 626a 6563 ted socket objec\n+00003de0: 740a 0a52 4554 5552 4e20 5641 4c55 450a t..RETURN VALUE.\n+00003df0: 2020 2020 2053 6f6d 6520 6368 6172 6163 Some charac\n+00003e00: 7465 7273 2074 6861 7420 6861 7665 2062 ters that have b\n+00003e10: 6565 6e20 7265 6365 6976 6564 0a0a 4445 een received..DE\n+00003e20: 5343 5249 5054 494f 4e0a 2020 2020 2054 SCRIPTION. T\n+00003e30: 6869 7320 6675 6e63 7469 6f6e 2072 6563 his function rec\n+00003e40: 6569 7665 7320 736f 6d65 2063 6861 7261 eives some chara\n+00003e50: 6374 6572 7320 6672 6f6d 2061 2072 656d cters from a rem\n+00003e60: 6f74 6520 686f 7374 2e20 2041 7320 736f ote host. As so\n+00003e70: 6f6e 0a20 2020 2020 7468 6174 2061 7420 on. that at \n+00003e80: 6c65 6173 7420 6f6e 6520 6368 6172 6163 least one charac\n+00003e90: 7465 7220 6973 2061 7661 696c 6162 6c65 ter is available\n+00003ea0: 2c20 7468 6520 6375 7272 656e 7420 7265 , the current re\n+00003eb0: 6365 7074 696f 6e0a 2020 2020 2062 7566 ception. buf\n+00003ec0: 6665 7220 6973 2072 6574 7572 6e65 642e fer is returned.\n+00003ed0: 0a0a 2020 2020 2054 6865 7265 2069 7320 .. There is \n+00003ee0: 7573 7561 6c6c 7920 6c69 7474 6c65 2067 usually little g\n+00003ef0: 6169 6e20 696e 2075 7369 6e67 2074 6869 ain in using thi\n+00003f00: 7320 6675 6e63 7469 6f6e 2077 686f 7365 s function whose\n+00003f10: 2062 6568 6176 696f 7572 0a20 2020 2020 behaviour. \n+00003f20: 6973 2063 6f6d 7061 7261 626c 6520 746f is comparable to\n+00003f30: 2074 6865 206f 6e65 206f 6620 2a6e 6f74 the one of *not\n+00003f40: 6520 5265 6365 6976 6520 2866 756e 6374 e Receive (funct\n+00003f50: 696f 6e29 3a3a 2e20 204f 7468 6572 0a20 ion)::. Other. \n+00003f60: 2020 2020 6675 6e63 7469 6f6e 7320 7375 functions su\n+00003f70: 6368 2061 7320 2a6e 6f74 6520 4765 745f ch as *note Get_\n+00003f80: 4368 6172 2028 6675 6e63 7469 6f6e 293a Char (function):\n+00003f90: 3a2c 206f 7220 2a6e 6f74 6520 4765 745f :, or *note Get_\n+00003fa0: 4c69 6e65 0a20 2020 2020 2866 756e 6374 Line. (funct\n+00003fb0: 696f 6e29 3a3a 2c20 616c 6c6f 7720 6d6f ion)::, allow mo\n+00003fc0: 7265 2073 7472 7563 7475 7265 6420 7072 re structured pr\n+00003fd0: 6f67 7261 6d6d 696e 672e 0a0a 2020 2020 ogramming... \n+00003fe0: 2048 6f77 6576 6572 2c20 7468 6973 2066 However, this f\n+00003ff0: 756e 6374 696f 6e20 6d61 7920 6265 2075 unction may be u\n+00004000: 7365 6420 746f 2061 766f 6964 206c 6f6f sed to avoid loo\n+00004010: 7369 6e67 2063 6861 7261 6374 6572 7320 sing characters \n+00004020: 7768 656e 0a20 2020 2020 6361 6c6c 696e when. callin\n+00004030: 6720 2a6e 6f74 6520 556e 7365 745f 4275 g *note Unset_Bu\n+00004040: 6666 6572 2028 7072 6f63 6564 7572 6529 ffer (procedure)\n+00004050: 3a3a 2c20 6966 2c20 666f 7220 736f 6d65 ::, if, for some\n+00004060: 2072 6561 736f 6e2c 2074 6865 0a20 2020 reason, the. \n+00004070: 2020 7265 6d6f 7465 2068 6f73 7420 6d61 remote host ma\n+00004080: 7920 6861 7665 2073 656e 7420 736f 6d65 y have sent some\n+00004090: 2e0a 0a45 5843 4550 5449 4f4e 530a 2020 ...EXCEPTIONS. \n+000040a0: 2020 20e2 8098 436f 6e6e 6563 7469 6f6e ...Connection\n+000040b0: 5f43 6c6f 7365 64e2 8099 5065 6572 2068 _Closed...Peer h\n+000040c0: 6173 2063 6c6f 7365 6420 7468 6520 636f as closed the co\n+000040d0: 6e6e 6563 7469 6f6e 2062 6566 6f72 650a nnection before.\n+000040e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000040f0: 2020 2020 2020 2020 7365 6e64 696e 6720 sending \n+00004100: 616e 7920 6461 7461 0a0a 1f0a 4669 6c65 any data....File\n+00004110: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n+00004120: 6f2c 2020 4e6f 6465 3a20 4765 745f 4368 o, Node: Get_Ch\n+00004130: 6172 2028 6675 6e63 7469 6f6e 292c 2020 ar (function), \n+00004140: 4e65 7874 3a20 4765 745f 4c69 6e65 2028 Next: Get_Line (\n+00004150: 6675 6e63 7469 6f6e 292c 2020 5072 6576 function), Prev\n+00004160: 3a20 4765 7420 2866 756e 6374 696f 6e29 : Get (function)\n+00004170: 2c20 2055 703a 2041 6363 6570 745f 536f , Up: Accept_So\n+00004180: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+00004190: 0a0a 4765 745f 4368 6172 2028 6675 6e63 ..Get_Char (func\n+000041a0: 7469 6f6e 290a 2d2d 2d2d 2d2d 2d2d 2d2d tion).----------\n+000041b0: 2d2d 2d2d 2d2d 2d2d 2d0a 0a50 5552 504f ---------..PURPO\n+000041c0: 5345 0a20 2020 2020 4765 7420 6120 6368 SE. Get a ch\n+000041d0: 6172 6163 7465 7220 6672 6f6d 2061 2072 aracter from a r\n+000041e0: 656d 6f74 6520 686f 7374 0a50 524f 544f emote host.PROTO\n+000041f0: 5459 5045 0a20 2020 2020 202d 2d20 536f TYPE. -- So\n+00004200: 636b 6574 732e 4765 745f 4368 6172 3a20 ckets.Get_Char: \n+00004210: 6675 6e63 7469 6f6e 2047 6574 5f43 6861 function Get_Cha\n+00004220: 7220 2853 4f43 4b45 5420 3a20 536f 636b r (SOCKET : Sock\n+00004230: 6574 5f46 4427 436c 6173 7329 0a20 2020 et_FD'Class). \n+00004240: 2020 2020 2020 2020 2020 2020 7265 7475 retu\n+00004250: 726e 2043 6861 7261 6374 6572 3b0a 0a50 rn Character;..P\n+00004260: 4152 414d 4554 4552 530a 2020 2020 2053 ARAMETERS. S\n+00004270: 4f43 4b45 5420 2020 2020 696e 2020 2020 OCKET in \n+00004280: 2020 2020 2049 6e69 7469 616c 697a 6564 Initialized\n+00004290: 2061 6e64 2063 6f6e 6e65 6374 6564 2073 and connected s\n+000042a0: 6f63 6b65 7420 6f62 6a65 6374 0a0a 5245 ocket object..RE\n+000042b0: 5455 524e 2056 414c 5545 0a20 2020 2020 TURN VALUE. \n+000042c0: 4f6e 6520 6368 6172 6163 7465 7220 7365 One character se\n+000042d0: 6e74 2062 7920 7468 6520 7265 6d6f 7465 nt by the remote\n+000042e0: 2068 6f73 740a 0a44 4553 4352 4950 5449 host..DESCRIPTI\n+000042f0: 4f4e 0a20 2020 2020 5468 6973 2066 756e ON. This fun\n+00004300: 6374 696f 6e20 7265 6365 6976 6573 2065 ction receives e\n+00004310: 7861 6374 6c79 206f 6e65 2063 6861 7261 xactly one chara\n+00004320: 6374 6572 2066 726f 6d20 7468 6520 7265 cter from the re\n+00004330: 6d6f 7465 2068 6f73 742e 0a0a 4558 4345 mote host...EXCE\n+00004340: 5054 494f 4e53 0a20 2020 2020 e280 9843 PTIONS. ...C\n+00004350: 6f6e 6e65 6374 696f 6e5f 436c 6f73 6564 onnection_Closed\n+00004360: e280 9950 6565 7220 6861 7320 636c 6f73 ...Peer has clos\n+00004370: 6564 2074 6865 2063 6f6e 6e65 6374 696f ed the connectio\n+00004380: 6e20 6265 666f 7265 0a20 2020 2020 2020 n before. \n+00004390: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000043a0: 2073 656e 6469 6e67 2074 6865 2063 6861 sending the cha\n+000043b0: 7261 6374 6572 0a0a 5345 4520 414c 534f racter..SEE ALSO\n+000043c0: 0a20 2020 2020 2a6e 6f74 6520 4765 7420 . *note Get \n+000043d0: 2866 756e 6374 696f 6e29 3a3a 2c0a 2020 (function)::,. \n+000043e0: 2020 202a 6e6f 7465 2047 6574 5f4c 696e *note Get_Lin\n+000043f0: 6520 2866 756e 6374 696f 6e29 3a3a 2c0a e (function)::,.\n+00004400: 2020 2020 202a 6e6f 7465 2047 6574 5f4c *note Get_L\n+00004410: 696e 6520 2870 726f 6365 6475 7265 293a ine (procedure):\n+00004420: 3a2c 0a20 2020 2020 2a6e 6f74 6520 5265 :,. *note Re\n+00004430: 6365 6976 6520 2870 726f 6365 6475 7265 ceive (procedure\n+00004440: 293a 3a2c 0a20 2020 2020 2a6e 6f74 6520 )::,. *note \n+00004450: 5365 745f 4275 6666 6572 2028 7072 6f63 Set_Buffer (proc\n+00004460: 6564 7572 6529 3a3a 2e0a 0a1f 0a46 696c edure)::.....Fil\n+00004470: 653a 2061 6461 736f 636b 6574 732e 696e e: adasockets.in\n+00004480: 666f 2c20 204e 6f64 653a 2047 6574 5f4c fo, Node: Get_L\n+00004490: 696e 6520 2866 756e 6374 696f 6e29 2c20 ine (function), \n+000044a0: 204e 6578 743a 2047 6574 5f4c 696e 6520 Next: Get_Line \n+000044b0: 2870 726f 6365 6475 7265 292c 2020 5072 (procedure), Pr\n+000044c0: 6576 3a20 4765 745f 4368 6172 2028 6675 ev: Get_Char (fu\n+000044d0: 6e63 7469 6f6e 292c 2020 5570 3a20 4163 nction), Up: Ac\n+000044e0: 6365 7074 5f53 6f63 6b65 7420 2870 726f cept_Socket (pro\n+000044f0: 6365 6475 7265 290a 0a47 6574 5f4c 696e cedure)..Get_Lin\n+00004500: 6520 2866 756e 6374 696f 6e29 0a2d 2d2d e (function).---\n+00004510: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+00004520: 0a0a 5055 5250 4f53 450a 2020 2020 2047 ..PURPOSE. G\n+00004530: 6574 2061 2077 686f 6c65 206c 696e 6520 et a whole line \n+00004540: 6672 6f6d 2061 2072 656d 6f74 6520 686f from a remote ho\n+00004550: 7374 0a50 524f 544f 5459 5045 0a20 2020 st.PROTOTYPE. \n+00004560: 2020 202d 2d20 536f 636b 6574 732e 4765 -- Sockets.Ge\n+00004570: 745f 4c69 6e65 3a20 6675 6e63 7469 6f6e t_Line: function\n+00004580: 2047 6574 5f4c 696e 6520 2853 4f43 4b45 Get_Line (SOCKE\n+00004590: 5420 3a20 536f 636b 6574 5f46 4427 436c T : Socket_FD'Cl\n+000045a0: 6173 733b 0a20 2020 2020 2020 2020 2020 ass;. \n+000045b0: 2020 2020 4d41 585f 4c45 4e47 5448 203a MAX_LENGTH :\n+000045c0: 2050 6f73 6974 6976 6520 3a3d 2032 3034 Positive := 204\n+000045d0: 3829 0a20 2020 2020 2020 2020 2020 2020 8). \n+000045e0: 2020 7265 7475 726e 2053 7472 696e 673b return String;\n+000045f0: 0a0a 5041 5241 4d45 5445 5253 0a20 2020 ..PARAMETERS. \n+00004600: 2020 534f 434b 4554 2020 2020 2069 6e20 SOCKET in \n+00004610: 2020 2020 2020 2020 496e 6974 6961 6c69 Initiali\n+00004620: 7a65 6420 616e 6420 636f 6e6e 6563 7465 zed and connecte\n+00004630: 6420 736f 636b 6574 206f 626a 6563 740a d socket object.\n+00004640: 2020 2020 204d 4158 5f4c 454e 4754 4820 MAX_LENGTH \n+00004650: 696e 2020 2020 2020 2020 204d 6178 696d in Maxim\n+00004660: 756d 2072 6574 7572 6e65 6420 6c69 6e65 um returned line\n+00004670: 206c 656e 6774 680a 0a52 4554 5552 4e20 length..RETURN \n+00004680: 5641 4c55 450a 2020 2020 2041 206c 696e VALUE. A lin\n+00004690: 6520 7769 7468 6f75 7420 7468 6520 4352 e without the CR\n+000046a0: 2061 6e64 204c 4620 7365 7061 7261 746f and LF separato\n+000046b0: 7273 0a0a 4445 5343 5249 5054 494f 4e0a rs..DESCRIPTION.\n+000046c0: 2020 2020 2054 6869 7320 6675 6e63 7469 This functi\n+000046d0: 6f6e 2072 6563 6569 7665 7320 6f6e 6520 on receives one \n+000046e0: 6c69 6e65 2066 726f 6d20 7468 6520 7265 line from the re\n+000046f0: 6d6f 7465 2068 6f73 742e 2020 4120 6c69 mote host. A li\n+00004700: 6e65 0a20 2020 2020 636f 6e73 6973 7473 ne. consists\n+00004710: 2069 6e74 6f20 7a65 726f 206f 7220 6d6f into zero or mo\n+00004720: 7265 2063 6861 7261 6374 6572 7320 666f re characters fo\n+00004730: 6c6c 6f77 6564 2062 7920 616e 206f 7074 llowed by an opt\n+00004740: 696f 6e61 6c20 4352 0a20 2020 2020 616e ional CR. an\n+00004750: 6420 6279 2061 204c 462e 2054 686f 7365 d by a LF. Those\n+00004760: 2074 6572 6d69 6e61 746f 7273 2061 7265 terminators are\n+00004770: 2073 7472 6970 7065 6420 6265 666f 7265 stripped before\n+00004780: 2074 6865 206c 696e 6520 6973 0a20 2020 the line is. \n+00004790: 2020 7265 7475 726e 6564 2e0a 0a20 2020 returned... \n+000047a0: 2020 5468 6973 2066 756e 6374 696f 6e20 This function \n+000047b0: 626c 6f63 6b73 2075 6e74 696c 206f 6e65 blocks until one\n+000047c0: 2066 756c 6c20 6c69 6e65 2068 6173 2062 full line has b\n+000047d0: 6565 6e20 7265 6365 6976 6564 2e20 2054 een received. T\n+000047e0: 6865 0a20 2020 2020 6c69 6e65 206c 656e he. line len\n+000047f0: 6774 6820 6973 206c 696d 6974 6564 2077 gth is limited w\n+00004800: 6974 6820 7468 6520 7661 6c75 6520 6f66 ith the value of\n+00004810: 2074 6865 204d 6178 5f4c 656e 6774 6820 the Max_Length \n+00004820: 6172 6775 6d65 6e74 2c0a 2020 2020 2074 argument,. t\n+00004830: 6f20 6176 6f69 6420 6578 6861 7573 7469 o avoid exhausti\n+00004840: 6f6e 206f 6620 7468 6520 7365 636f 6e64 on of the second\n+00004850: 6172 7920 7374 6163 6b2e 0a0a 4558 4345 ary stack...EXCE\n+00004860: 5054 494f 4e53 0a20 2020 2020 e280 9843 PTIONS. ...C\n+00004870: 6f6e 6e65 6374 696f 6e5f 436c 6f73 6564 onnection_Closed\n+00004880: e280 9950 6565 7220 6861 7320 636c 6f73 ...Peer has clos\n+00004890: 6564 2074 6865 2063 6f6e 6e65 6374 696f ed the connectio\n+000048a0: 6e20 6265 666f 7265 0a20 2020 2020 2020 n before. \n+000048b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000048c0: 2073 656e 6469 6e67 2061 2077 686f 6c65 sending a whole\n+000048d0: 206c 696e 650a 0a53 4545 2041 4c53 4f0a line..SEE ALSO.\n+000048e0: 2020 2020 202a 6e6f 7465 2047 6574 2028 *note Get (\n+000048f0: 6675 6e63 7469 6f6e 293a 3a2c 0a20 2020 function)::,. \n+00004900: 2020 2a6e 6f74 6520 4765 745f 4368 6172 *note Get_Char\n+00004910: 2028 6675 6e63 7469 6f6e 293a 3a2c 0a20 (function)::,. \n+00004920: 2020 2020 2a6e 6f74 6520 4765 745f 4c69 *note Get_Li\n+00004930: 6e65 2028 7072 6f63 6564 7572 6529 3a3a ne (procedure)::\n+00004940: 2c0a 2020 2020 202a 6e6f 7465 2052 6563 ,. *note Rec\n+00004950: 6569 7665 2028 7072 6f63 6564 7572 6529 eive (procedure)\n+00004960: 3a3a 2c0a 2020 2020 202a 6e6f 7465 2053 ::,. *note S\n+00004970: 6574 5f42 7566 6665 7220 2870 726f 6365 et_Buffer (proce\n+00004980: 6475 7265 293a 3a2e 0a0a 1f0a 4669 6c65 dure)::.....File\n+00004990: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n+000049a0: 6f2c 2020 4e6f 6465 3a20 4765 745f 4c69 o, Node: Get_Li\n+000049b0: 6e65 2028 7072 6f63 6564 7572 6529 2c20 ne (procedure), \n+000049c0: 204e 6578 743a 2047 6574 5f52 6563 6569 Next: Get_Recei\n+000049d0: 7665 5f51 7565 7565 5f53 697a 6520 2866 ve_Queue_Size (f\n+000049e0: 756e 6374 696f 6e29 2c20 2050 7265 763a unction), Prev:\n+000049f0: 2047 6574 5f4c 696e 6520 2866 756e 6374 Get_Line (funct\n+00004a00: 696f 6e29 2c20 2055 703a 2041 6363 6570 ion), Up: Accep\n+00004a10: 745f 536f 636b 6574 2028 7072 6f63 6564 t_Socket (proced\n+00004a20: 7572 6529 0a0a 4765 745f 4c69 6e65 2028 ure)..Get_Line (\n+00004a30: 7072 6f63 6564 7572 6529 0a2d 2d2d 2d2d procedure).-----\n+00004a40: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a ---------------.\n+00004a50: 0a50 5552 504f 5345 0a20 2020 2020 4765 .PURPOSE. Ge\n+00004a60: 7420 6120 7768 6f6c 6520 6c69 6e65 2066 t a whole line f\n+00004a70: 726f 6d20 6120 7265 6d6f 7465 2068 6f73 rom a remote hos\n+00004a80: 740a 5052 4f54 4f54 5950 450a 2020 2020 t.PROTOTYPE. \n+00004a90: 2020 2d2d 2053 6f63 6b65 7473 2e47 6574 -- Sockets.Get\n+00004aa0: 5f4c 696e 653a 2070 726f 6365 6475 7265 _Line: procedure\n+00004ab0: 2047 6574 5f4c 696e 6520 2853 4f43 4b45 Get_Line (SOCKE\n+00004ac0: 5420 3a20 536f 636b 6574 5f46 4427 436c T : Socket_FD'Cl\n+00004ad0: 6173 733b 0a20 2020 2020 2020 2020 2020 ass;. \n+00004ae0: 2020 2020 5354 5220 3a20 696e 206f 7574 STR : in out\n+00004af0: 2053 7472 696e 673b 204c 4153 5420 3a20 String; LAST : \n+00004b00: 6f75 7420 4e61 7475 7261 6c29 3b0a 0a50 out Natural);..P\n+00004b10: 4152 414d 4554 4552 530a 2020 2020 2053 ARAMETERS. S\n+00004b20: 4f43 4b45 5420 2020 2020 696e 2020 2020 OCKET in \n+00004b30: 2020 2020 2049 6e69 7469 616c 697a 6564 Initialized\n+00004b40: 2061 6e64 2063 6f6e 6e65 6374 6564 2073 and connected s\n+00004b50: 6f63 6b65 7420 6f62 6a65 6374 0a20 2020 ocket object. \n+00004b60: 2020 5354 5220 2020 2020 2020 2069 6e20 STR in \n+00004b70: 6f75 7420 2020 2020 5374 7269 6e67 2074 out String t\n+00004b80: 6f20 6669 6c6c 0a20 2020 2020 4c41 5354 o fill. LAST\n+00004b90: 2020 2020 2020 206f 7574 2020 2020 2020 out \n+00004ba0: 2020 4c61 7374 2069 6e64 6578 2075 7365 Last index use\n+00004bb0: 6420 696e 2074 6865 2073 7472 696e 670a d in the string.\n+00004bc0: 0a44 4553 4352 4950 5449 4f4e 0a20 2020 .DESCRIPTION. \n+00004bd0: 2020 5468 6973 2070 726f 6365 6475 7265 This procedure\n+00004be0: 2072 6563 6569 7665 7320 6f6e 6520 6c69 receives one li\n+00004bf0: 6e65 2066 726f 6d20 7468 6520 7265 6d6f ne from the remo\n+00004c00: 7465 2068 6f73 742e 2020 4120 6c69 6e65 te host. A line\n+00004c10: 0a20 2020 2020 636f 6e73 6973 7473 2069 . consists i\n+00004c20: 6e74 6f20 7a65 726f 206f 7220 6d6f 7265 nto zero or more\n+00004c30: 2063 6861 7261 6374 6572 7320 666f 6c6c characters foll\n+00004c40: 6f77 6564 2062 7920 616e 206f 7074 696f owed by an optio\n+00004c50: 6e61 6c20 4352 0a20 2020 2020 616e 6420 nal CR. and \n+00004c60: 6279 2061 204c 462e 2054 686f 7365 2074 by a LF. Those t\n+00004c70: 6572 6d69 6e61 746f 7273 2061 7265 2073 erminators are s\n+00004c80: 7472 6970 7065 6420 6265 666f 7265 2074 tripped before t\n+00004c90: 6865 206c 696e 6520 6973 0a20 2020 2020 he line is. \n+00004ca0: 7265 7475 726e 6564 2e0a 0a20 2020 2020 returned... \n+00004cb0: 5468 6973 2070 726f 6365 6475 7265 2062 This procedure b\n+00004cc0: 6c6f 636b 7320 756e 7469 6c20 6f6e 6520 locks until one \n+00004cd0: 6675 6c6c 206c 696e 6520 6861 7320 6265 full line has be\n+00004ce0: 656e 2072 6563 6569 7665 642e 0a0a 4558 en received...EX\n+00004cf0: 4345 5054 494f 4e53 0a20 2020 2020 e280 CEPTIONS. ..\n+00004d00: 9843 6f6e 6e65 6374 696f 6e5f 436c 6f73 .Connection_Clos\n+00004d10: 6564 e280 9950 6565 7220 6861 7320 636c ed...Peer has cl\n+00004d20: 6f73 6564 2074 6865 2063 6f6e 6e65 6374 osed the connect\n+00004d30: 696f 6e20 6265 666f 7265 0a20 2020 2020 ion before. \n+00004d40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00004d50: 2020 2073 656e 6469 6e67 2061 2077 686f sending a who\n+00004d60: 6c65 206c 696e 650a 0a53 4545 2041 4c53 le line..SEE ALS\n+00004d70: 4f0a 2020 2020 202a 6e6f 7465 2047 6574 O. *note Get\n+00004d80: 2028 6675 6e63 7469 6f6e 293a 3a2c 0a20 (function)::,. \n+00004d90: 2020 2020 2a6e 6f74 6520 4765 745f 4368 *note Get_Ch\n+00004da0: 6172 2028 6675 6e63 7469 6f6e 293a 3a2c ar (function)::,\n+00004db0: 0a20 2020 2020 2a6e 6f74 6520 4765 745f . *note Get_\n+00004dc0: 4c69 6e65 2028 6675 6e63 7469 6f6e 293a Line (function):\n+00004dd0: 3a2c 0a20 2020 2020 2a6e 6f74 6520 5265 :,. *note Re\n+00004de0: 6365 6976 6520 2870 726f 6365 6475 7265 ceive (procedure\n+00004df0: 293a 3a2c 0a20 2020 2020 2a6e 6f74 6520 )::,. *note \n+00004e00: 5365 745f 4275 6666 6572 2028 7072 6f63 Set_Buffer (proc\n+00004e10: 6564 7572 6529 3a3a 2e0a 0a1f 0a46 696c edure)::.....Fil\n+00004e20: 653a 2061 6461 736f 636b 6574 732e 696e e: adasockets.in\n+00004e30: 666f 2c20 204e 6f64 653a 2047 6574 5f52 fo, Node: Get_R\n+00004e40: 6563 6569 7665 5f51 7565 7565 5f53 697a eceive_Queue_Siz\n+00004e50: 6520 2866 756e 6374 696f 6e29 2c20 204e e (function), N\n+00004e60: 6578 743a 2047 6574 5f53 656e 645f 5175 ext: Get_Send_Qu\n+00004e70: 6575 655f 5369 7a65 2028 6675 6e63 7469 eue_Size (functi\n+00004e80: 6f6e 292c 2020 5072 6576 3a20 4765 745f on), Prev: Get_\n+00004e90: 4c69 6e65 2028 7072 6f63 6564 7572 6529 Line (procedure)\n+00004ea0: 2c20 2055 703a 2041 6363 6570 745f 536f , Up: Accept_So\n+00004eb0: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+00004ec0: 0a0a 4765 745f 5265 6365 6976 655f 5175 ..Get_Receive_Qu\n+00004ed0: 6575 655f 5369 7a65 2028 6675 6e63 7469 eue_Size (functi\n+00004ee0: 6f6e 290a 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d on).------------\n+00004ef0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+00004f00: 2d2d 2d2d 2d0a 0a50 5552 504f 5345 0a20 -----..PURPOSE. \n+00004f10: 2020 2020 5265 7475 726e 2074 6865 2073 Return the s\n+00004f20: 697a 6520 6f66 2074 6865 2075 6e72 6561 ize of the unrea\n+00004f30: 6420 6461 7461 2069 6e20 7468 6520 696e d data in the in\n+00004f40: 7075 7420 7175 6575 650a 5052 4f54 4f54 put queue.PROTOT\n+00004f50: 5950 450a 2020 2020 2020 2d2d 2053 6f63 YPE. -- Soc\n+00004f60: 6b65 7473 2e47 6574 5f52 6563 6569 7665 kets.Get_Receive\n+00004f70: 5f51 7565 7565 5f53 697a 653a 2066 756e _Queue_Size: fun\n+00004f80: 6374 696f 6e20 4765 745f 5265 6365 6976 ction Get_Receiv\n+00004f90: 655f 5175 6575 655f 5369 7a65 0a20 2020 e_Queue_Size. \n+00004fa0: 2020 2020 2020 2020 2020 2020 2853 4f43 (SOC\n+00004fb0: 4b45 5420 3a20 536f 636b 6574 5f46 4427 KET : Socket_FD'\n+00004fc0: 436c 6173 7329 0a20 2020 2020 2020 2020 Class). \n+00004fd0: 2020 2020 2020 7265 7475 726e 2049 6e74 return Int\n+00004fe0: 6567 6572 3b0a 0a50 4152 414d 4554 4552 eger;..PARAMETER\n+00004ff0: 530a 2020 2020 2053 4f43 4b45 5420 2020 S. SOCKET \n+00005000: 2020 696e 2020 2020 2020 2020 2049 6e69 in Ini\n+00005010: 7469 616c 697a 6564 2061 6e64 2063 6f6e tialized and con\n+00005020: 6e65 6374 6564 2073 6f63 6b65 7420 6f62 nected socket ob\n+00005030: 6a65 6374 0a0a 5245 5455 524e 2056 414c ject..RETURN VAL\n+00005040: 5545 0a20 2020 2020 5468 6520 6e6f 6e2d UE. The non-\n+00005050: 6e65 6761 7469 7665 2073 697a 6520 696e negative size in\n+00005060: 2062 7974 6573 206f 6620 7468 6520 696e bytes of the in\n+00005070: 7075 7420 7175 6575 650a 0a44 4553 4352 put queue..DESCR\n+00005080: 4950 5449 4f4e 0a20 2020 2020 5468 6973 IPTION. This\n+00005090: 2066 756e 6374 696f 6e20 6973 206f 6e6c function is onl\n+000050a0: 7920 6176 6169 6c61 626c 6520 6f6e 204c y available on L\n+000050b0: 696e 7578 2070 6c61 7466 6f72 6d73 2e20 inux platforms. \n+000050c0: 204f 6e20 6f74 6865 720a 2020 2020 206f On other. o\n+000050d0: 7065 7261 7469 6e67 2073 7973 7465 6d73 perating systems\n+000050e0: 2c20 6974 2077 696c 6c20 7265 7475 726e , it will return\n+000050f0: 202d 3220 746f 2069 6e64 6963 6174 6520 -2 to indicate \n+00005100: 7468 6174 2074 6865 206e 6563 6573 7361 that the necessa\n+00005110: 7279 0a20 2020 2020 6d65 6368 616e 6973 ry. mechanis\n+00005120: 6d73 2074 6f20 7265 7472 6965 7665 2074 ms to retrieve t\n+00005130: 6865 2069 6e66 6f72 6d61 7469 6f6e 2061 he information a\n+00005140: 7265 206e 6f74 2061 7661 696c 6162 6c65 re not available\n+00005150: 2e0a 0a53 4545 2041 4c53 4f0a 2020 2020 ...SEE ALSO. \n+00005160: 202a 6e6f 7465 2052 6563 6569 7665 2028 *note Receive (\n+00005170: 7072 6f63 6564 7572 6529 3a3a 2e0a 0a1f procedure)::....\n+00005180: 0a46 696c 653a 2061 6461 736f 636b 6574 .File: adasocket\n+00005190: 732e 696e 666f 2c20 204e 6f64 653a 2047 s.info, Node: G\n+000051a0: 6574 5f53 656e 645f 5175 6575 655f 5369 et_Send_Queue_Si\n+000051b0: 7a65 2028 6675 6e63 7469 6f6e 292c 2020 ze (function), \n+000051c0: 4e65 7874 3a20 4765 7473 6f63 6b6f 7074 Next: Getsockopt\n+000051d0: 2028 7072 6f63 6564 7572 6529 2c20 2050 (procedure), P\n+000051e0: 7265 763a 2047 6574 5f52 6563 6569 7665 rev: Get_Receive\n+000051f0: 5f51 7565 7565 5f53 697a 6520 2866 756e _Queue_Size (fun\n+00005200: 6374 696f 6e29 2c20 2055 703a 2041 6363 ction), Up: Acc\n+00005210: 6570 745f 536f 636b 6574 2028 7072 6f63 ept_Socket (proc\n+00005220: 6564 7572 6529 0a0a 4765 745f 5365 6e64 edure)..Get_Send\n+00005230: 5f51 7565 7565 5f53 697a 6520 2866 756e _Queue_Size (fun\n+00005240: 6374 696f 6e29 0a2d 2d2d 2d2d 2d2d 2d2d ction).---------\n+00005250: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+00005260: 2d2d 2d2d 2d0a 0a50 5552 504f 5345 0a20 -----..PURPOSE. \n+00005270: 2020 2020 5265 7475 726e 2074 6865 2073 Return the s\n+00005280: 697a 6520 6f66 2074 6865 2075 6e73 656e ize of the unsen\n+00005290: 7420 6461 7461 2069 6e20 7468 6520 6f75 t data in the ou\n+000052a0: 7470 7574 2071 7565 7565 0a50 524f 544f tput queue.PROTO\n+000052b0: 5459 5045 0a20 2020 2020 202d 2d20 536f TYPE. -- So\n+000052c0: 636b 6574 732e 4765 745f 5365 6e64 5f51 ckets.Get_Send_Q\n+000052d0: 7565 7565 5f53 697a 653a 2066 756e 6374 ueue_Size: funct\n+000052e0: 696f 6e20 4765 745f 5365 6e64 5f51 7565 ion Get_Send_Que\n+000052f0: 7565 5f53 697a 650a 2020 2020 2020 2020 ue_Size. \n+00005300: 2020 2020 2020 2028 534f 434b 4554 203a (SOCKET :\n+00005310: 2053 6f63 6b65 745f 4644 2743 6c61 7373 Socket_FD'Class\n+00005320: 290a 2020 2020 2020 2020 2020 2020 2020 ). \n+00005330: 2072 6574 7572 6e20 496e 7465 6765 723b return Integer;\n+00005340: 0a0a 5041 5241 4d45 5445 5253 0a20 2020 ..PARAMETERS. \n+00005350: 2020 534f 434b 4554 2020 2020 2069 6e20 SOCKET in \n+00005360: 2020 2020 2020 2020 496e 6974 6961 6c69 Initiali\n+00005370: 7a65 6420 616e 6420 636f 6e6e 6563 7465 zed and connecte\n+00005380: 6420 736f 636b 6574 206f 626a 6563 740a d socket object.\n+00005390: 0a52 4554 5552 4e20 5641 4c55 450a 2020 .RETURN VALUE. \n+000053a0: 2020 2054 6865 206e 6f6e 2d6e 6567 6174 The non-negat\n+000053b0: 6976 6520 7369 7a65 2069 6e20 6279 7465 ive size in byte\n+000053c0: 7320 6f66 2074 6865 206f 7574 7075 7420 s of the output \n+000053d0: 7175 6575 650a 0a44 4553 4352 4950 5449 queue..DESCRIPTI\n+000053e0: 4f4e 0a20 2020 2020 5468 6973 2066 756e ON. This fun\n+000053f0: 6374 696f 6e20 6973 206f 6e6c 7920 6176 ction is only av\n+00005400: 6169 6c61 626c 6520 6f6e 204c 696e 7578 ailable on Linux\n+00005410: 2070 6c61 7466 6f72 6d73 2e20 204f 6e20 platforms. On \n+00005420: 6f74 6865 720a 2020 2020 206f 7065 7261 other. opera\n+00005430: 7469 6e67 2073 7973 7465 6d73 2c20 6974 ting systems, it\n+00005440: 2077 696c 6c20 7265 7475 726e 202d 3220 will return -2 \n+00005450: 746f 2069 6e64 6963 6174 6520 7468 6174 to indicate that\n+00005460: 2074 6865 206e 6563 6573 7361 7279 0a20 the necessary. \n+00005470: 2020 2020 6d65 6368 616e 6973 6d73 2074 mechanisms t\n+00005480: 6f20 7265 7472 6965 7665 2074 6865 2069 o retrieve the i\n+00005490: 6e66 6f72 6d61 7469 6f6e 2061 7265 206e nformation are n\n+000054a0: 6f74 2061 7661 696c 6162 6c65 2e0a 0a53 ot available...S\n+000054b0: 4545 2041 4c53 4f0a 2020 2020 202a 6e6f EE ALSO. *no\n+000054c0: 7465 2053 656e 6420 2870 726f 6365 6475 te Send (procedu\n+000054d0: 7265 293a 3a2e 0a0a 1f0a 4669 6c65 3a20 re)::.....File: \n+000054e0: 6164 6173 6f63 6b65 7473 2e69 6e66 6f2c adasockets.info,\n+000054f0: 2020 4e6f 6465 3a20 4765 7473 6f63 6b6f Node: Getsocko\n+00005500: 7074 2028 7072 6f63 6564 7572 6529 2c20 pt (procedure), \n+00005510: 204e 6578 743a 204c 6973 7465 6e20 2870 Next: Listen (p\n+00005520: 726f 6365 6475 7265 292c 2020 5072 6576 rocedure), Prev\n+00005530: 3a20 4765 745f 5365 6e64 5f51 7565 7565 : Get_Send_Queue\n+00005540: 5f53 697a 6520 2866 756e 6374 696f 6e29 _Size (function)\n+00005550: 2c20 2055 703a 2041 6363 6570 745f 536f , Up: Accept_So\n+00005560: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+00005570: 0a0a 4765 7473 6f63 6b6f 7074 2028 7072 ..Getsockopt (pr\n+00005580: 6f63 6564 7572 6529 0a2d 2d2d 2d2d 2d2d ocedure).-------\n+00005590: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a ---------------.\n+000055a0: 0a50 5552 504f 5345 0a20 2020 2020 5265 .PURPOSE. Re\n+000055b0: 7472 6965 7665 2061 2073 6f63 6b65 7420 trieve a socket \n+000055c0: 6f70 7469 6f6e 0a50 524f 544f 5459 5045 option.PROTOTYPE\n+000055d0: 0a20 2020 2020 202d 2d20 536f 636b 6574 . -- Socket\n+000055e0: 732e 4765 7473 6f63 6b6f 7074 3a20 7072 s.Getsockopt: pr\n+000055f0: 6f63 6564 7572 6520 4765 7473 6f63 6b6f ocedure Getsocko\n+00005600: 7074 2028 534f 434b 4554 203a 2053 6f63 pt (SOCKET : Soc\n+00005610: 6b65 745f 4644 3b0a 2020 2020 2020 2020 ket_FD;. \n+00005620: 2020 2020 2020 204c 4556 454c 203a 2053 LEVEL : S\n+00005630: 6f63 6b65 745f 4c65 7665 6c20 3a3d 2053 ocket_Level := S\n+00005640: 4f4c 5f53 4f43 4b45 543b 0a20 2020 2020 OL_SOCKET;. \n+00005650: 2020 2020 2020 2020 2020 4f50 544e 414d OPTNAM\n+00005660: 4520 3a20 536f 636b 6574 5f4f 7074 696f E : Socket_Optio\n+00005670: 6e3b 204f 5054 5641 4c20 3a20 6f75 7420 n; OPTVAL : out \n+00005680: 496e 7465 6765 7229 3b0a 0a50 4152 414d Integer);..PARAM\n+00005690: 4554 4552 530a 2020 2020 2053 4f43 4b45 ETERS. SOCKE\n+000056a0: 5420 2020 2020 696e 2020 2020 2020 2020 T in \n+000056b0: 2049 6e69 7469 616c 697a 6564 2061 6e64 Initialized and\n+000056c0: 2062 6f75 6e64 2073 6f63 6b65 7420 6f62 bound socket ob\n+000056d0: 6a65 6374 0a20 2020 2020 4c45 5645 4c20 ject. LEVEL \n+000056e0: 2020 2020 2069 6e20 2020 2020 2020 2020 in \n+000056f0: 5072 6f74 6f63 6f6c 206c 6576 656c 0a20 Protocol level. \n+00005700: 2020 2020 4f50 544e 414d 4520 2020 2069 OPTNAME i\n+00005710: 6e20 2020 2020 2020 2020 4f70 7469 6f6e n Option\n+00005720: 206e 616d 650a 2020 2020 204f 5054 5641 name. OPTVA\n+00005730: 4c20 2020 2020 6f75 7420 2020 2020 2020 L out \n+00005740: 204f 7074 696f 6e20 7661 6c75 650a 0a44 Option value..D\n+00005750: 4553 4352 4950 5449 4f4e 0a20 2020 2020 ESCRIPTION. \n+00005760: 5468 6973 2070 726f 6365 6475 7265 2072 This procedure r\n+00005770: 6574 7269 6576 6573 206f 7074 696f 6e73 etrieves options\n+00005780: 2061 7070 6c69 6361 626c 6520 746f 2061 applicable to a\n+00005790: 2073 6f63 6b65 742e 2020 506c 6561 7365 socket. Please\n+000057a0: 0a20 2020 2020 7365 6520 796f 7572 206f . see your o\n+000057b0: 7065 7261 7469 6e67 2073 7973 7465 6d20 perating system \n+000057c0: 6d61 6e75 616c 2066 6f72 2075 7361 626c manual for usabl\n+000057d0: 6520 6c65 7665 6c73 2061 6e64 206f 7074 e levels and opt\n+000057e0: 696f 6e73 2e0a 0a20 2020 2020 5477 6f20 ions... Two \n+000057f0: 6c65 7665 6c73 2061 7265 2064 6566 696e levels are defin\n+00005800: 6564 3a20 e280 9853 4f4c 5f53 4f43 4b45 ed: ...SOL_SOCKE\n+00005810: 54e2 8099 2028 7468 6520 6465 6661 756c T... (the defaul\n+00005820: 7429 2061 6e64 0a20 2020 2020 e280 9849 t) and. ...I\n+00005830: 5050 524f 544f 5f49 50e2 8099 2e20 2054 PPROTO_IP.... T\n+00005840: 6865 206f 7074 696f 6e73 2061 7265 20e2 he options are .\n+00005850: 8098 534f 5f52 4555 5345 4144 4452 e280 ..SO_REUSEADDR..\n+00005860: 992c 20e2 8098 534f 5f52 4555 5345 504f ., ...SO_REUSEPO\n+00005870: 5254 e280 992c 0a20 2020 2020 e280 9849 RT...,. ...I\n+00005880: 505f 4d55 4c54 4943 4153 545f 5454 4ce2 P_MULTICAST_TTL.\n+00005890: 8099 2c20 e280 9849 505f 4144 445f 4d45 .., ...IP_ADD_ME\n+000058a0: 4d42 4552 5348 4950 e280 992c 20e2 8098 MBERSHIP..., ...\n+000058b0: 4950 5f44 524f 505f 4d45 4d42 4552 5348 IP_DROP_MEMBERSH\n+000058c0: 4950 e280 992c 0a20 2020 2020 e280 9849 IP...,. ...I\n+000058d0: 505f 4d55 4c54 4943 4153 545f 4c4f 4f50 P_MULTICAST_LOOP\n+000058e0: e280 992c 20e2 8098 534f 5f53 4e44 4255 ..., ...SO_SNDBU\n+000058f0: 46e2 8099 2061 6e64 20e2 8098 4950 5f52 F... and ...IP_R\n+00005900: 4356 4255 46e2 8099 2e0a 0a20 2020 2020 CVBUF...... \n+00005910: 4e6f 7465 2074 6861 7420 756e 6c69 6b65 Note that unlike\n+00005920: 2074 6865 6972 2043 206c 616e 6775 6167 their C languag\n+00005930: 6520 636f 756e 7465 7270 6172 742c 20e2 e counterpart, .\n+00005940: 8098 4765 7473 6f63 6b6f 7074 e280 9920 ..Getsockopt... \n+00005950: 616e 640a 2020 2020 20e2 8098 5365 7473 and. ...Sets\n+00005960: 6f63 6b6f 7074 e280 9920 646f 206e 6f74 ockopt... do not\n+00005970: 2072 6571 7569 7265 2061 6e20 6578 7472 require an extr\n+00005980: 6120 7061 7261 6d65 7465 7220 7265 7072 a parameter repr\n+00005990: 6573 656e 7469 6e67 2074 6865 0a20 2020 esenting the. \n+000059a0: 2020 6c65 6e67 7468 2069 6e20 6279 7465 length in byte\n+000059b0: 7320 6f66 2074 6865 206f 7074 696f 6e20 s of the option \n+000059c0: 7661 6c75 652e 2020 4164 6153 6f63 6b65 value. AdaSocke\n+000059d0: 7473 206e 6f77 7320 7468 6520 7269 6768 ts nows the righ\n+000059e0: 740a 2020 2020 2073 697a 6520 666f 7220 t. size for \n+000059f0: 6576 6572 7920 6f70 7469 6f6e 2e0a 0a53 every option...S\n+00005a00: 4545 2041 4c53 4f0a 2020 2020 202a 6e6f EE ALSO. *no\n+00005a10: 7465 2053 6574 736f 636b 6f70 7420 2870 te Setsockopt (p\n+00005a20: 726f 6365 6475 7265 293a 3a2e 0a0a 1f0a rocedure)::.....\n+00005a30: 4669 6c65 3a20 6164 6173 6f63 6b65 7473 File: adasockets\n+00005a40: 2e69 6e66 6f2c 2020 4e6f 6465 3a20 4c69 .info, Node: Li\n+00005a50: 7374 656e 2028 7072 6f63 6564 7572 6529 sten (procedure)\n+00005a60: 2c20 204e 6578 743a 204e 6577 5f4c 696e , Next: New_Lin\n+00005a70: 6520 2870 726f 6365 6475 7265 292c 2020 e (procedure), \n+00005a80: 5072 6576 3a20 4765 7473 6f63 6b6f 7074 Prev: Getsockopt\n+00005a90: 2028 7072 6f63 6564 7572 6529 2c20 2055 (procedure), U\n+00005aa0: 703a 2041 6363 6570 745f 536f 636b 6574 p: Accept_Socket\n+00005ab0: 2028 7072 6f63 6564 7572 6529 0a0a 4c69 (procedure)..Li\n+00005ac0: 7374 656e 2028 7072 6f63 6564 7572 6529 sten (procedure)\n+00005ad0: 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d .---------------\n+00005ae0: 2d2d 2d0a 0a50 5552 504f 5345 0a20 2020 ---..PURPOSE. \n+00005af0: 2020 4573 7461 626c 6973 6820 6120 6c69 Establish a li\n+00005b00: 7374 656e 2071 7565 7565 0a50 524f 544f sten queue.PROTO\n+00005b10: 5459 5045 0a20 2020 2020 202d 2d20 536f TYPE. -- So\n+00005b20: 636b 6574 732e 4c69 7374 656e 3a20 7072 ckets.Listen: pr\n+00005b30: 6f63 6564 7572 6520 4c69 7374 656e 2028 ocedure Listen (\n+00005b40: 534f 434b 4554 203a 2053 6f63 6b65 745f SOCKET : Socket_\n+00005b50: 4644 3b0a 2020 2020 2020 2020 2020 2020 FD;. \n+00005b60: 2020 2051 5545 5545 5f53 495a 4520 3a20 QUEUE_SIZE : \n+00005b70: 506f 7369 7469 7665 203a 3d20 3529 3b0a Positive := 5);.\n+00005b80: 0a50 4152 414d 4554 4552 530a 2020 2020 .PARAMETERS. \n+00005b90: 2053 4f43 4b45 5420 2020 2020 696e 2020 SOCKET in \n+00005ba0: 2020 2020 2020 2049 6e69 7469 616c 697a Initializ\n+00005bb0: 6564 2061 6e64 2062 6f75 6e64 2073 6f63 ed and bound soc\n+00005bc0: 6b65 7420 6f62 6a65 6374 0a20 2020 2020 ket object. \n+00005bd0: 5155 4555 455f 5349 5a45 2069 6e20 2020 QUEUE_SIZE in \n+00005be0: 2020 2020 2020 5265 7175 6573 7465 6420 Requested \n+00005bf0: 736c 6f74 7320 696e 2074 6865 206c 6973 slots in the lis\n+00005c00: 7465 6e20 7175 6575 650a 0a44 4553 4352 ten queue..DESCR\n+00005c10: 4950 5449 4f4e 0a20 2020 2020 5468 6973 IPTION. This\n+00005c20: 2070 726f 6365 6475 7265 2065 7374 6162 procedure estab\n+00005c30: 6c69 7368 6573 2061 206c 6973 7465 6e20 lishes a listen \n+00005c40: 7175 6575 6520 6166 7465 7220 6120 5443 queue after a TC\n+00005c50: 5020 736f 636b 6574 2061 730a 2020 2020 P socket as. \n+00005c60: 2062 6565 6e20 696e 6974 6961 6c69 7a65 been initialize\n+00005c70: 6420 616e 6420 626f 756e 642e 2020 4561 d and bound. Ea\n+00005c80: 6368 2073 6c6f 7420 696e 2074 6865 2071 ch slot in the q\n+00005c90: 7565 7565 2063 616e 2068 6f6c 6420 6f6e ueue can hold on\n+00005ca0: 650a 2020 2020 2069 6e63 6f6d 696e 6720 e. incoming \n+00005cb0: 636f 6e6e 6563 7469 6f6e 2074 6861 7420 connection that \n+00005cc0: 6861 7320 6e6f 7420 6265 656e 2061 6363 has not been acc\n+00005cd0: 6570 7465 6420 7965 742e 2020 4e6f 7465 epted yet. Note\n+00005ce0: 2074 6861 7420 6d6f 7374 0a20 2020 2020 that most. \n+00005cf0: 6f70 6572 6174 696e 6720 7379 7374 656d operating system\n+00005d00: 7320 6967 6e6f 7265 2071 7565 7565 2073 s ignore queue s\n+00005d10: 697a 6573 206c 6172 6765 7220 7468 616e izes larger than\n+00005d20: 2066 6976 652e 0a0a 5345 4520 414c 534f five...SEE ALSO\n+00005d30: 0a20 2020 2020 2a6e 6f74 6520 4163 6365 . *note Acce\n+00005d40: 7074 5f53 6f63 6b65 7420 2870 726f 6365 pt_Socket (proce\n+00005d50: 6475 7265 293a 3a2c 0a20 2020 2020 2a6e dure)::,. *n\n+00005d60: 6f74 6520 4269 6e64 2028 7072 6f63 6564 ote Bind (proced\n+00005d70: 7572 6529 3a3a 2c0a 2020 2020 202a 6e6f ure)::,. *no\n+00005d80: 7465 2053 6f63 6b65 7420 2870 726f 6365 te Socket (proce\n+00005d90: 6475 7265 293a 3a2e 0a0a 1f0a 4669 6c65 dure)::.....File\n+00005da0: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n+00005db0: 6f2c 2020 4e6f 6465 3a20 4e65 775f 4c69 o, Node: New_Li\n+00005dc0: 6e65 2028 7072 6f63 6564 7572 6529 2c20 ne (procedure), \n+00005dd0: 204e 6578 743a 2050 7574 2028 7072 6f63 Next: Put (proc\n+00005de0: 6564 7572 6529 2c20 2050 7265 763a 204c edure), Prev: L\n+00005df0: 6973 7465 6e20 2870 726f 6365 6475 7265 isten (procedure\n+00005e00: 292c 2020 5570 3a20 4163 6365 7074 5f53 ), Up: Accept_S\n+00005e10: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n+00005e20: 290a 0a4e 6577 5f4c 696e 6520 2870 726f )..New_Line (pro\n+00005e30: 6365 6475 7265 290a 2d2d 2d2d 2d2d 2d2d cedure).--------\n+00005e40: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 5055 ------------..PU\n+00005e50: 5250 4f53 450a 2020 2020 2053 656e 6420 RPOSE. Send \n+00005e60: 6120 4352 2f4c 4620 746f 2061 2072 656d a CR/LF to a rem\n+00005e70: 6f74 6520 686f 7374 0a50 524f 544f 5459 ote host.PROTOTY\n+00005e80: 5045 0a20 2020 2020 202d 2d20 536f 636b PE. -- Sock\n+00005e90: 6574 732e 4e65 775f 4c69 6e65 3a20 7072 ets.New_Line: pr\n+00005ea0: 6f63 6564 7572 6520 4e65 775f 4c69 6e65 ocedure New_Line\n+00005eb0: 2028 534f 434b 4554 203a 2053 6f63 6b65 (SOCKET : Socke\n+00005ec0: 745f 4644 2743 6c61 7373 3b0a 2020 2020 t_FD'Class;. \n+00005ed0: 2020 2020 2020 2020 2020 2043 4f55 4e54 COUNT\n+00005ee0: 203a 204e 6174 7572 616c 203a 3d20 3129 : Natural := 1)\n+00005ef0: 3b0a 0a50 4152 414d 4554 4552 530a 2020 ;..PARAMETERS. \n+00005f00: 2020 2053 4f43 4b45 5420 2020 2020 696e SOCKET in\n+00005f10: 2020 2020 2020 2020 2049 6e69 7469 616c Initial\n+00005f20: 697a 6564 2061 6e64 2063 6f6e 6e65 6374 ized and connect\n+00005f30: 6564 2073 6f63 6b65 7420 6f62 6a65 6374 ed socket object\n+00005f40: 0a20 2020 2020 434f 554e 5420 2020 2020 . COUNT \n+00005f50: 2069 6e20 2020 2020 2020 2020 4e75 6d62 in Numb\n+00005f60: 6572 206f 6620 4352 2f4c 4620 7365 7175 er of CR/LF sequ\n+00005f70: 656e 6365 7320 746f 2073 656e 640a 0a44 ences to send..D\n+00005f80: 4553 4352 4950 5449 4f4e 0a20 2020 2020 ESCRIPTION. \n+00005f90: 5468 6973 2070 726f 6365 6475 7265 2073 This procedure s\n+00005fa0: 656e 6473 206f 6e65 206f 7220 6d6f 7265 ends one or more\n+00005fb0: 2043 522f 4c46 2063 6f6d 6269 6e61 7469 CR/LF combinati\n+00005fc0: 6f6e 7320 746f 2074 6865 2070 6565 722e ons to the peer.\n+00005fd0: 0a0a 4558 4345 5054 494f 4e53 0a20 2020 ..EXCEPTIONS. \n+00005fe0: 2020 e280 9843 6f6e 6e65 6374 696f 6e5f ...Connection_\n+00005ff0: 436c 6f73 6564 e280 9950 6565 7220 6861 Closed...Peer ha\n+00006000: 7320 7072 656d 6174 7572 656c 7920 636c s prematurely cl\n+00006010: 6f73 6564 2074 6865 2063 6f6e 6e65 6374 osed the connect\n+00006020: 696f 6e0a 0a53 4545 2041 4c53 4f0a 2020 ion..SEE ALSO. \n+00006030: 2020 202a 6e6f 7465 2050 7574 2028 7072 *note Put (pr\n+00006040: 6f63 6564 7572 6529 3a3a 2c0a 2020 2020 ocedure)::,. \n+00006050: 202a 6e6f 7465 2050 7574 5f4c 696e 6520 *note Put_Line \n+00006060: 2870 726f 6365 6475 7265 293a 3a2e 0a0a (procedure)::...\n+00006070: 1f0a 4669 6c65 3a20 6164 6173 6f63 6b65 ..File: adasocke\n+00006080: 7473 2e69 6e66 6f2c 2020 4e6f 6465 3a20 ts.info, Node: \n+00006090: 5075 7420 2870 726f 6365 6475 7265 292c Put (procedure),\n+000060a0: 2020 4e65 7874 3a20 5075 745f 4c69 6e65 Next: Put_Line\n+000060b0: 2028 7072 6f63 6564 7572 6529 2c20 2050 (procedure), P\n+000060c0: 7265 763a 204e 6577 5f4c 696e 6520 2870 rev: New_Line (p\n+000060d0: 726f 6365 6475 7265 292c 2020 5570 3a20 rocedure), Up: \n+000060e0: 4163 6365 7074 5f53 6f63 6b65 7420 2870 Accept_Socket (p\n+000060f0: 726f 6365 6475 7265 290a 0a50 7574 2028 rocedure)..Put (\n+00006100: 7072 6f63 6564 7572 6529 0a2d 2d2d 2d2d procedure).-----\n+00006110: 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 5055 5250 ----------..PURP\n+00006120: 4f53 450a 2020 2020 2053 656e 6420 6120 OSE. Send a \n+00006130: 7374 7269 6e67 2074 6f20 6120 7265 6d6f string to a remo\n+00006140: 7465 2068 6f73 740a 5052 4f54 4f54 5950 te host.PROTOTYP\n+00006150: 450a 2020 2020 2020 2d2d 2053 6f63 6b65 E. -- Socke\n+00006160: 7473 2e50 7574 3a20 7072 6f63 6564 7572 ts.Put: procedur\n+00006170: 6520 5075 7420 2853 4f43 4b45 5420 3a20 e Put (SOCKET : \n+00006180: 536f 636b 6574 5f46 4427 436c 6173 733b Socket_FD'Class;\n+00006190: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+000061a0: 5354 5220 3a20 5374 7269 6e67 293b 0a0a STR : String);..\n+000061b0: 5041 5241 4d45 5445 5253 0a20 2020 2020 PARAMETERS. \n+000061c0: 534f 434b 4554 2020 2020 2069 6e20 2020 SOCKET in \n+000061d0: 2020 2020 2020 496e 6974 6961 6c69 7a65 Initialize\n+000061e0: 6420 616e 6420 636f 6e6e 6563 7465 6420 d and connected \n+000061f0: 736f 636b 6574 206f 626a 6563 740a 2020 socket object. \n+00006200: 2020 2053 5452 2020 2020 2020 2020 696e STR in\n+00006210: 2020 2020 2020 2020 2053 7472 696e 6720 String \n+00006220: 746f 2073 656e 640a 0a44 4553 4352 4950 to send..DESCRIP\n+00006230: 5449 4f4e 0a20 2020 2020 5468 6973 2070 TION. This p\n+00006240: 726f 6365 6475 7265 2073 656e 6473 2074 rocedure sends t\n+00006250: 6865 2063 6f6e 7465 6e74 206f 6620 5354 he content of ST\n+00006260: 5220 6f76 6572 2061 6e20 6f75 7467 6f69 R over an outgoi\n+00006270: 6e67 206f 720a 2020 2020 2069 6e63 6f6d ng or. incom\n+00006280: 696e 6720 736f 636b 6574 2e0a 0a45 5843 ing socket...EXC\n+00006290: 4550 5449 4f4e 530a 2020 2020 20e2 8098 EPTIONS. ...\n+000062a0: 436f 6e6e 6563 7469 6f6e 5f43 6c6f 7365 Connection_Close\n+000062b0: 64e2 8099 5065 6572 2068 6173 2070 7265 d...Peer has pre\n+000062c0: 6d61 7475 7265 6c79 2063 6c6f 7365 6420 maturely closed \n+000062d0: 7468 6520 636f 6e6e 6563 7469 6f6e 0a0a the connection..\n+000062e0: 5345 4520 414c 534f 0a20 2020 2020 2a6e SEE ALSO. *n\n+000062f0: 6f74 6520 4e65 775f 4c69 6e65 2028 7072 ote New_Line (pr\n+00006300: 6f63 6564 7572 6529 3a3a 2c0a 2020 2020 ocedure)::,. \n+00006310: 202a 6e6f 7465 2050 7574 5f4c 696e 6520 *note Put_Line \n+00006320: 2870 726f 6365 6475 7265 293a 3a2c 0a20 (procedure)::,. \n+00006330: 2020 2020 2a6e 6f74 6520 5365 6e64 2028 *note Send (\n+00006340: 7072 6f63 6564 7572 6529 3a3a 2e0a 0a1f procedure)::....\n+00006350: 0a46 696c 653a 2061 6461 736f 636b 6574 .File: adasocket\n+00006360: 732e 696e 666f 2c20 204e 6f64 653a 2050 s.info, Node: P\n+00006370: 7574 5f4c 696e 6520 2870 726f 6365 6475 ut_Line (procedu\n+00006380: 7265 292c 2020 4e65 7874 3a20 5265 6365 re), Next: Rece\n+00006390: 6976 6520 2866 756e 6374 696f 6e29 2c20 ive (function), \n+000063a0: 2050 7265 763a 2050 7574 2028 7072 6f63 Prev: Put (proc\n+000063b0: 6564 7572 6529 2c20 2055 703a 2041 6363 edure), Up: Acc\n+000063c0: 6570 745f 536f 636b 6574 2028 7072 6f63 ept_Socket (proc\n+000063d0: 6564 7572 6529 0a0a 5075 745f 4c69 6e65 edure)..Put_Line\n+000063e0: 2028 7072 6f63 6564 7572 6529 0a2d 2d2d (procedure).---\n+000063f0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+00006400: 2d0a 0a50 5552 504f 5345 0a20 2020 2020 -..PURPOSE. \n+00006410: 5365 6e64 2061 2043 522f 4c46 2074 6572 Send a CR/LF ter\n+00006420: 6d69 6e61 7465 6420 7374 7269 6e67 2074 minated string t\n+00006430: 6f20 6120 7265 6d6f 7465 2068 6f73 740a o a remote host.\n+00006440: 5052 4f54 4f54 5950 450a 2020 2020 2020 PROTOTYPE. \n+00006450: 2d2d 2053 6f63 6b65 7473 2e50 7574 5f4c -- Sockets.Put_L\n+00006460: 696e 653a 2070 726f 6365 6475 7265 2050 ine: procedure P\n+00006470: 7574 5f4c 696e 6520 2853 4f43 4b45 5420 ut_Line (SOCKET \n+00006480: 3a20 536f 636b 6574 5f46 4427 436c 6173 : Socket_FD'Clas\n+00006490: 733b 0a20 2020 2020 2020 2020 2020 2020 s;. \n+000064a0: 2020 5354 5220 3a20 5374 7269 6e67 293b STR : String);\n+000064b0: 0a0a 5041 5241 4d45 5445 5253 0a20 2020 ..PARAMETERS. \n+000064c0: 2020 534f 434b 4554 2020 2020 2069 6e20 SOCKET in \n+000064d0: 2020 2020 2020 2020 496e 6974 6961 6c69 Initiali\n+000064e0: 7a65 6420 616e 6420 636f 6e6e 6563 7465 zed and connecte\n+000064f0: 6420 736f 636b 6574 206f 626a 6563 740a d socket object.\n+00006500: 2020 2020 2053 5452 2020 2020 2020 2020 STR \n+00006510: 696e 2020 2020 2020 2020 2053 7472 696e in Strin\n+00006520: 6720 746f 2073 656e 640a 0a44 4553 4352 g to send..DESCR\n+00006530: 4950 5449 4f4e 0a20 2020 2020 5468 6973 IPTION. This\n+00006540: 2070 726f 6365 6475 7265 2073 656e 6473 procedure sends\n+00006550: 2074 6865 2063 6f6e 7465 6e74 206f 6620 the content of \n+00006560: 5354 5220 706c 7573 2061 2043 522f 4c46 STR plus a CR/LF\n+00006570: 2063 6f6d 6269 6e61 7469 6f6e 0a20 2020 combination. \n+00006580: 2020 6f76 6572 2061 6e20 6f75 7467 6f69 over an outgoi\n+00006590: 6e67 206f 7220 696e 636f 6d69 6e67 2073 ng or incoming s\n+000065a0: 6f63 6b65 742e 0a0a 4558 4345 5054 494f ocket...EXCEPTIO\n+000065b0: 4e53 0a20 2020 2020 e280 9843 6f6e 6e65 NS. ...Conne\n+000065c0: 6374 696f 6e5f 436c 6f73 6564 e280 9950 ction_Closed...P\n+000065d0: 6565 7220 6861 7320 7072 656d 6174 7572 eer has prematur\n+000065e0: 656c 7920 636c 6f73 6564 2074 6865 2063 ely closed the c\n+000065f0: 6f6e 6e65 6374 696f 6e0a 0a53 4545 2041 onnection..SEE A\n+00006600: 4c53 4f0a 2020 2020 202a 6e6f 7465 204e LSO. *note N\n+00006610: 6577 5f4c 696e 6520 2870 726f 6365 6475 ew_Line (procedu\n+00006620: 7265 293a 3a2c 0a20 2020 2020 2a6e 6f74 re)::,. *not\n+00006630: 6520 5075 7420 2870 726f 6365 6475 7265 e Put (procedure\n+00006640: 293a 3a2c 0a20 2020 2020 2a6e 6f74 6520 )::,. *note \n+00006650: 5365 6e64 2028 7072 6f63 6564 7572 6529 Send (procedure)\n+00006660: 3a3a 2e0a 0a1f 0a46 696c 653a 2061 6461 ::.....File: ada\n+00006670: 736f 636b 6574 732e 696e 666f 2c20 204e sockets.info, N\n+00006680: 6f64 653a 2052 6563 6569 7665 2028 6675 ode: Receive (fu\n+00006690: 6e63 7469 6f6e 292c 2020 4e65 7874 3a20 nction), Next: \n+000066a0: 5265 6365 6976 6520 2870 726f 6365 6475 Receive (procedu\n+000066b0: 7265 292c 2020 5072 6576 3a20 5075 745f re), Prev: Put_\n+000066c0: 4c69 6e65 2028 7072 6f63 6564 7572 6529 Line (procedure)\n+000066d0: 2c20 2055 703a 2041 6363 6570 745f 536f , Up: Accept_So\n+000066e0: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+000066f0: 0a0a 5265 6365 6976 6520 2866 756e 6374 ..Receive (funct\n+00006700: 696f 6e29 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d ion).-----------\n+00006710: 2d2d 2d2d 2d2d 2d0a 0a50 5552 504f 5345 -------..PURPOSE\n+00006720: 0a20 2020 2020 5265 6365 6976 6520 7261 . Receive ra\n+00006730: 7720 6461 7461 206f 7665 7220 6120 736f w data over a so\n+00006740: 636b 6574 0a50 524f 544f 5459 5045 0a20 cket.PROTOTYPE. \n+00006750: 2020 2020 202d 2d20 536f 636b 6574 732e -- Sockets.\n+00006760: 5265 6365 6976 653a 2066 756e 6374 696f Receive: functio\n+00006770: 6e20 5265 6365 6976 6520 2853 4f43 4b45 n Receive (SOCKE\n+00006780: 5420 3a20 536f 636b 6574 5f46 443b 0a20 T : Socket_FD;. \n+00006790: 2020 2020 2020 2020 2020 2020 2020 4d41 MA\n+000067a0: 5820 3a20 4164 612e 5374 7265 616d 732e X : Ada.Streams.\n+000067b0: 5374 7265 616d 5f45 6c65 6d65 6e74 5f43 Stream_Element_C\n+000067c0: 6f75 6e74 203a 3d20 3430 3936 290a 2020 ount := 4096). \n+000067d0: 2020 2020 2020 2020 2020 2020 2072 6574 ret\n+000067e0: 7572 6e20 4164 612e 5374 7265 616d 732e urn Ada.Streams.\n+000067f0: 5374 7265 616d 5f45 6c65 6d65 6e74 5f41 Stream_Element_A\n+00006800: 7272 6179 3b0a 0a50 4152 414d 4554 4552 rray;..PARAMETER\n+00006810: 530a 2020 2020 2053 4f43 4b45 5420 2020 S. SOCKET \n+00006820: 2020 696e 2020 2020 2020 2020 2049 6e69 in Ini\n+00006830: 7469 616c 697a 6564 2061 6e64 2062 6f75 tialized and bou\n+00006840: 6e64 206f 7220 636f 6e6e 6563 7465 640a nd or connected.\n+00006850: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00006860: 2020 2020 2020 2020 2020 2073 6f63 6b65 socke\n+00006870: 7420 6f62 6a65 6374 0a20 2020 2020 4d41 t object. MA\n+00006880: 5820 2020 2020 2020 2069 6e20 2020 2020 X in \n+00006890: 2020 2020 4d61 7869 6d75 6d20 6461 7461 Maximum data\n+000068a0: 206c 656e 6774 680a 0a52 4554 5552 4e20 length..RETURN \n+000068b0: 5641 4c55 450a 2020 2020 2052 6563 6569 VALUE. Recei\n+000068c0: 7665 6420 7261 7720 6461 7461 0a0a 4445 ved raw data..DE\n+000068d0: 5343 5249 5054 494f 4e0a 2020 2020 2054 SCRIPTION. T\n+000068e0: 6869 7320 7072 6f63 6564 7572 6520 7265 his procedure re\n+000068f0: 6365 6976 6573 2064 6174 6120 6672 6f6d ceives data from\n+00006900: 2061 2062 6f75 6e64 2055 4450 2073 6f63 a bound UDP soc\n+00006910: 6b65 7420 6f72 2061 2063 6f6e 6e65 6374 ket or a connect\n+00006920: 6564 0a20 2020 2020 5443 5020 736f 636b ed. TCP sock\n+00006930: 6574 2e20 204f 6e6c 7920 6f6e 6520 7379 et. Only one sy\n+00006940: 7374 656d 2063 616c 6c20 7769 6c6c 2062 stem call will b\n+00006950: 6520 7065 7266 6f72 6d65 643b 2074 6869 e performed; thi\n+00006960: 7320 6675 6e63 7469 6f6e 0a20 2020 2020 s function. \n+00006970: 7769 6c6c 2072 6574 7572 6e20 7768 6174 will return what\n+00006980: 6576 6572 2064 6174 6120 6861 7320 6172 ever data has ar\n+00006990: 7269 7665 642e 2020 4e6f 7465 2074 6861 rived. Note tha\n+000069a0: 7420 696e 2047 4e41 5420 7468 650a 2020 t in GNAT the. \n+000069b0: 2020 2073 6563 6f6e 6461 7279 2073 7461 secondary sta\n+000069c0: 636b 206d 6179 2062 6520 7573 6564 2074 ck may be used t\n+000069d0: 6f20 7374 6f72 6520 7468 6520 6461 7461 o store the data\n+000069e0: 2061 6e64 206d 6179 2072 6573 756c 7420 and may result \n+000069f0: 696e 0a20 2020 2020 7374 6163 6b20 7374 in. stack st\n+00006a00: 6f72 6167 6520 6578 6861 7573 7469 6f6e orage exhaustion\n+00006a10: 2e0a 0a45 5843 4550 5449 4f4e 530a 2020 ...EXCEPTIONS. \n+00006a20: 2020 20e2 8098 436f 6e6e 6563 7469 6f6e ...Connection\n+00006a30: 5f43 6c6f 7365 64e2 8099 5065 6572 2068 _Closed...Peer h\n+00006a40: 6173 2063 6c6f 7365 6420 7468 6520 636f as closed the co\n+00006a50: 6e6e 6563 7469 6f6e 2062 6566 6f72 650a nnection before.\n+00006a60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00006a70: 2020 2020 2020 2020 7365 6e64 696e 6720 sending \n+00006a80: 616e 7920 6461 7461 0a0a 5345 4520 414c any data..SEE AL\n+00006a90: 534f 0a20 2020 2020 2a6e 6f74 6520 5265 SO. *note Re\n+00006aa0: 6365 6976 6520 2870 726f 6365 6475 7265 ceive (procedure\n+00006ab0: 293a 3a2c 0a20 2020 2020 2a6e 6f74 6520 )::,. *note \n+00006ac0: 5265 6365 6976 655f 536f 6d65 2028 7072 Receive_Some (pr\n+00006ad0: 6f63 6564 7572 6529 3a3a 2c0a 2020 2020 ocedure)::,. \n+00006ae0: 202a 6e6f 7465 2047 6574 5f4c 696e 6520 *note Get_Line \n+00006af0: 2866 756e 6374 696f 6e29 3a3a 2c0a 2020 (function)::,. \n+00006b00: 2020 202a 6e6f 7465 2047 6574 5f4c 696e *note Get_Lin\n+00006b10: 6520 2870 726f 6365 6475 7265 293a 3a2e e (procedure)::.\n+00006b20: 0a0a 1f0a 4669 6c65 3a20 6164 6173 6f63 ....File: adasoc\n+00006b30: 6b65 7473 2e69 6e66 6f2c 2020 4e6f 6465 kets.info, Node\n+00006b40: 3a20 5265 6365 6976 6520 2870 726f 6365 : Receive (proce\n+00006b50: 6475 7265 292c 2020 4e65 7874 3a20 5265 dure), Next: Re\n+00006b60: 6365 6976 655f 536f 6d65 2028 7072 6f63 ceive_Some (proc\n+00006b70: 6564 7572 6529 2c20 2050 7265 763a 2052 edure), Prev: R\n+00006b80: 6563 6569 7665 2028 6675 6e63 7469 6f6e eceive (function\n+00006b90: 292c 2020 5570 3a20 4163 6365 7074 5f53 ), Up: Accept_S\n+00006ba0: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n+00006bb0: 290a 0a52 6563 6569 7665 2028 7072 6f63 )..Receive (proc\n+00006bc0: 6564 7572 6529 0a2d 2d2d 2d2d 2d2d 2d2d edure).---------\n+00006bd0: 2d2d 2d2d 2d2d 2d2d 2d2d 0a0a 5055 5250 ----------..PURP\n+00006be0: 4f53 450a 2020 2020 2052 6563 6569 7665 OSE. Receive\n+00006bf0: 2072 6177 2064 6174 6120 6f76 6572 2061 raw data over a\n+00006c00: 2073 6f63 6b65 740a 5052 4f54 4f54 5950 socket.PROTOTYP\n+00006c10: 450a 2020 2020 2020 2d2d 2053 6f63 6b65 E. -- Socke\n+00006c20: 7473 2e52 6563 6569 7665 3a20 7072 6f63 ts.Receive: proc\n+00006c30: 6564 7572 6520 5265 6365 6976 6520 2853 edure Receive (S\n+00006c40: 4f43 4b45 5420 3a20 536f 636b 6574 5f46 OCKET : Socket_F\n+00006c50: 4427 436c 6173 733b 0a20 2020 2020 2020 D'Class;. \n+00006c60: 2020 2020 2020 2020 4441 5441 203a 206f DATA : o\n+00006c70: 7574 2041 6461 2e53 7472 6561 6d73 2e53 ut Ada.Streams.S\n+00006c80: 7472 6561 6d5f 456c 656d 656e 745f 4172 tream_Element_Ar\n+00006c90: 7261 7929 3b0a 0a50 4152 414d 4554 4552 ray);..PARAMETER\n+00006ca0: 530a 2020 2020 2053 4f43 4b45 5420 2020 S. SOCKET \n+00006cb0: 2020 696e 2020 2020 2020 2020 2049 6e69 in Ini\n+00006cc0: 7469 616c 697a 6564 2061 6e64 2062 6f75 tialized and bou\n+00006cd0: 6e64 206f 7220 636f 6e6e 6563 7465 640a nd or connected.\n+00006ce0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00006cf0: 2020 2020 2020 2020 2020 2073 6f63 6b65 socke\n+00006d00: 7420 6f62 6a65 6374 0a20 2020 2020 4441 t object. DA\n+00006d10: 5441 2020 2020 2020 206f 7574 2020 2020 TA out \n+00006d20: 2020 2020 496e 636f 6d69 6e67 2064 6174 Incoming dat\n+00006d30: 6120 6275 6666 6572 0a0a 4445 5343 5249 a buffer..DESCRI\n+00006d40: 5054 494f 4e0a 2020 2020 2054 6869 7320 PTION. This \n+00006d50: 7072 6f63 6564 7572 6520 7265 6365 6976 procedure receiv\n+00006d60: 6573 2064 6174 6120 6672 6f6d 2061 2062 es data from a b\n+00006d70: 6f75 6e64 2055 4450 2073 6f63 6b65 7420 ound UDP socket \n+00006d80: 6f72 2061 2063 6f6e 6e65 6374 6564 0a20 or a connected. \n+00006d90: 2020 2020 5443 5020 736f 636b 6574 2e20 TCP socket. \n+00006da0: 2049 7420 7769 6c6c 2062 6c6f 636b 2075 It will block u\n+00006db0: 6e74 696c 2074 6865 2044 4154 4120 7265 ntil the DATA re\n+00006dc0: 6365 7074 696f 6e20 6275 6666 6572 2068 ception buffer h\n+00006dd0: 6173 2062 6565 6e0a 2020 2020 2074 6f74 as been. tot\n+00006de0: 616c 6c79 2066 696c 6c65 642e 0a0a 4558 ally filled...EX\n+00006df0: 4345 5054 494f 4e53 0a20 2020 2020 e280 CEPTIONS. ..\n+00006e00: 9843 6f6e 6e65 6374 696f 6e5f 436c 6f73 .Connection_Clos\n+00006e10: 6564 e280 9950 6565 7220 6861 7320 636c ed...Peer has cl\n+00006e20: 6f73 6564 2074 6865 2063 6f6e 6e65 6374 osed the connect\n+00006e30: 696f 6e20 6265 666f 7265 0a20 2020 2020 ion before. \n+00006e40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00006e50: 2020 20e2 8098 4461 7461 274c 656e 6774 ...Data'Lengt\n+00006e60: 68e2 8099 2062 7974 6573 0a20 2020 2020 h... bytes. \n+00006e70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00006e80: 2020 2077 6572 6520 7265 6365 6976 6564 were received\n+00006e90: 0a0a 5345 4520 414c 534f 0a20 2020 2020 ..SEE ALSO. \n+00006ea0: 2a6e 6f74 6520 4765 745f 4c69 6e65 2028 *note Get_Line (\n+00006eb0: 6675 6e63 7469 6f6e 293a 3a2c 0a20 2020 function)::,. \n+00006ec0: 2020 2a6e 6f74 6520 4765 745f 4c69 6e65 *note Get_Line\n+00006ed0: 2028 7072 6f63 6564 7572 6529 3a3a 2c0a (procedure)::,.\n+00006ee0: 2020 2020 202a 6e6f 7465 2052 6563 6569 *note Recei\n+00006ef0: 7665 2028 6675 6e63 7469 6f6e 293a 3a2c ve (function)::,\n+00006f00: 0a20 2020 2020 2a6e 6f74 6520 5265 6365 . *note Rece\n+00006f10: 6976 655f 536f 6d65 2028 7072 6f63 6564 ive_Some (proced\n+00006f20: 7572 6529 3a3a 2e0a 0a1f 0a46 696c 653a ure)::.....File:\n+00006f30: 2061 6461 736f 636b 6574 732e 696e 666f adasockets.info\n+00006f40: 2c20 204e 6f64 653a 2052 6563 6569 7665 , Node: Receive\n+00006f50: 5f53 6f6d 6520 2870 726f 6365 6475 7265 _Some (procedure\n+00006f60: 292c 2020 4e65 7874 3a20 5365 6e64 2028 ), Next: Send (\n+00006f70: 7072 6f63 6564 7572 6529 2c20 2050 7265 procedure), Pre\n+00006f80: 763a 2052 6563 6569 7665 2028 7072 6f63 v: Receive (proc\n+00006f90: 6564 7572 6529 2c20 2055 703a 2041 6363 edure), Up: Acc\n+00006fa0: 6570 745f 536f 636b 6574 2028 7072 6f63 ept_Socket (proc\n+00006fb0: 6564 7572 6529 0a0a 5265 6365 6976 655f edure)..Receive_\n+00006fc0: 536f 6d65 2028 7072 6f63 6564 7572 6529 Some (procedure)\n+00006fd0: 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d .---------------\n+00006fe0: 2d2d 2d2d 2d2d 2d2d 2d0a 0a50 5552 504f ---------..PURPO\n+00006ff0: 5345 0a20 2020 2020 5265 6365 6976 6520 SE. Receive \n+00007000: 7261 7720 6461 7461 206f 7665 7220 6120 raw data over a \n+00007010: 736f 636b 6574 0a50 524f 544f 5459 5045 socket.PROTOTYPE\n+00007020: 0a20 2020 2020 202d 2d20 536f 636b 6574 . -- Socket\n+00007030: 732e 5265 6365 6976 655f 536f 6d65 3a20 s.Receive_Some: \n+00007040: 7072 6f63 6564 7572 6520 5265 6365 6976 procedure Receiv\n+00007050: 655f 536f 6d65 0a20 2020 2020 2020 2020 e_Some. \n+00007060: 2020 2020 2020 2853 4f43 4b45 5420 3a20 (SOCKET : \n+00007070: 536f 636b 6574 5f46 4427 436c 6173 733b Socket_FD'Class;\n+00007080: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+00007090: 4441 5441 203a 206f 7574 2041 6461 2e53 DATA : out Ada.S\n+000070a0: 7472 6561 6d73 2e53 7472 6561 6d5f 456c treams.Stream_El\n+000070b0: 656d 656e 745f 4172 7261 793b 0a20 2020 ement_Array;. \n+000070c0: 2020 2020 2020 2020 2020 2020 4c41 5354 LAST\n+000070d0: 203a 206f 7574 2041 6461 2e53 7472 6561 : out Ada.Strea\n+000070e0: 6d73 2e53 7472 6561 6d5f 456c 656d 656e ms.Stream_Elemen\n+000070f0: 745f 4f66 6673 6574 293b 0a0a 5041 5241 t_Offset);..PARA\n+00007100: 4d45 5445 5253 0a20 2020 2020 534f 434b METERS. SOCK\n+00007110: 4554 2020 2020 2069 6e20 2020 2020 2020 ET in \n+00007120: 2020 496e 6974 6961 6c69 7a65 6420 616e Initialized an\n+00007130: 6420 626f 756e 6420 6f72 2063 6f6e 6e65 d bound or conne\n+00007140: 6374 6564 0a20 2020 2020 2020 2020 2020 cted. \n+00007150: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00007160: 736f 636b 6574 206f 626a 6563 740a 2020 socket object. \n+00007170: 2020 2044 4154 4120 2020 2020 2020 6f75 DATA ou\n+00007180: 7420 2020 2020 2020 2049 6e63 6f6d 696e t Incomin\n+00007190: 6720 6461 7461 2062 7566 6665 720a 2020 g data buffer. \n+000071a0: 2020 204c 4153 5420 2020 2020 2020 6f75 LAST ou\n+000071b0: 7420 2020 2020 2020 2049 6e64 6578 206f t Index o\n+000071c0: 6620 6c61 7374 2065 6c65 6d65 6e74 2070 f last element p\n+000071d0: 6c61 6365 6420 696e 746f 2044 4154 410a laced into DATA.\n+000071e0: 0a44 4553 4352 4950 5449 4f4e 0a20 2020 .DESCRIPTION. \n+000071f0: 2020 5468 6973 2070 726f 6365 6475 7265 This procedure\n+00007200: 2072 6563 6569 7665 7320 6461 7461 2066 receives data f\n+00007210: 726f 6d20 6120 626f 756e 6420 5544 5020 rom a bound UDP \n+00007220: 736f 636b 6574 206f 7220 6120 636f 6e6e socket or a conn\n+00007230: 6563 7465 640a 2020 2020 2054 4350 2073 ected. TCP s\n+00007240: 6f63 6b65 742e 2020 4173 2073 6f6f 6e20 ocket. As soon \n+00007250: 6173 2061 7420 6c65 6173 7420 6f6e 6520 as at least one \n+00007260: 6279 7465 2068 6173 2062 6565 6e20 7265 byte has been re\n+00007270: 6164 2c20 6974 2072 6574 7572 6e73 0a20 ad, it returns. \n+00007280: 2020 2020 7769 7468 204c 4153 5420 7365 with LAST se\n+00007290: 7420 746f 2074 6865 2069 6e64 6578 206f t to the index o\n+000072a0: 6620 7468 6520 6c61 7465 7374 2077 7269 f the latest wri\n+000072b0: 7474 656e 2065 6c65 6d65 6e74 206f 6620 tten element of \n+000072c0: 4441 5441 2e0a 0a45 5843 4550 5449 4f4e DATA...EXCEPTION\n+000072d0: 530a 2020 2020 20e2 8098 436f 6e6e 6563 S. ...Connec\n+000072e0: 7469 6f6e 5f43 6c6f 7365 64e2 8099 5065 tion_Closed...Pe\n+000072f0: 6572 2068 6173 2063 6c6f 7365 6420 7468 er has closed th\n+00007300: 6520 636f 6e6e 6563 7469 6f6e 2062 6566 e connection bef\n+00007310: 6f72 650a 2020 2020 2020 2020 2020 2020 ore. \n+00007320: 2020 2020 2020 2020 2020 2020 7365 6e64 send\n+00007330: 696e 6720 616e 7920 6461 7461 0a0a 5345 ing any data..SE\n+00007340: 4520 414c 534f 0a20 2020 2020 2a6e 6f74 E ALSO. *not\n+00007350: 6520 4765 745f 4c69 6e65 2028 6675 6e63 e Get_Line (func\n+00007360: 7469 6f6e 293a 3a2c 0a20 2020 2020 2a6e tion)::,. *n\n+00007370: 6f74 6520 4765 745f 4c69 6e65 2028 7072 ote Get_Line (pr\n+00007380: 6f63 6564 7572 6529 3a3a 2c0a 2020 2020 ocedure)::,. \n+00007390: 202a 6e6f 7465 2052 6563 6569 7665 2028 *note Receive (\n+000073a0: 6675 6e63 7469 6f6e 293a 3a2c 0a20 2020 function)::,. \n+000073b0: 2020 2a6e 6f74 6520 5265 6365 6976 6520 *note Receive \n+000073c0: 2870 726f 6365 6475 7265 293a 3a2e 0a0a (procedure)::...\n+000073d0: 1f0a 4669 6c65 3a20 6164 6173 6f63 6b65 ..File: adasocke\n+000073e0: 7473 2e69 6e66 6f2c 2020 4e6f 6465 3a20 ts.info, Node: \n+000073f0: 5365 6e64 2028 7072 6f63 6564 7572 6529 Send (procedure)\n+00007400: 2c20 204e 6578 743a 2053 6574 5f42 7566 , Next: Set_Buf\n+00007410: 6665 7220 2870 726f 6365 6475 7265 292c fer (procedure),\n+00007420: 2020 5072 6576 3a20 5265 6365 6976 655f Prev: Receive_\n+00007430: 536f 6d65 2028 7072 6f63 6564 7572 6529 Some (procedure)\n+00007440: 2c20 2055 703a 2041 6363 6570 745f 536f , Up: Accept_So\n+00007450: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+00007460: 0a0a 5365 6e64 2028 7072 6f63 6564 7572 ..Send (procedur\n+00007470: 6529 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d e).-------------\n+00007480: 2d2d 2d0a 0a50 5552 504f 5345 0a20 2020 ---..PURPOSE. \n+00007490: 2020 5365 6e64 2072 6177 2064 6174 6120 Send raw data \n+000074a0: 6f76 6572 2061 2073 6f63 6b65 740a 5052 over a socket.PR\n+000074b0: 4f54 4f54 5950 450a 2020 2020 2020 2d2d OTOTYPE. --\n+000074c0: 2053 6f63 6b65 7473 2e53 656e 643a 2070 Sockets.Send: p\n+000074d0: 726f 6365 6475 7265 2053 656e 6420 2853 rocedure Send (S\n+000074e0: 4f43 4b45 5420 3a20 536f 636b 6574 5f46 OCKET : Socket_F\n+000074f0: 443b 0a20 2020 2020 2020 2020 2020 2020 D;. \n+00007500: 2020 4441 5441 203a 206f 7574 2041 6461 DATA : out Ada\n+00007510: 2e53 7472 6561 6d73 2e53 7472 6561 6d5f .Streams.Stream_\n+00007520: 456c 656d 656e 745f 4172 7261 7929 3b0a Element_Array);.\n+00007530: 0a50 4152 414d 4554 4552 530a 2020 2020 .PARAMETERS. \n+00007540: 2053 4f43 4b45 5420 2020 2020 696e 2020 SOCKET in \n+00007550: 2020 2020 2020 2049 6e69 7469 616c 697a Initializ\n+00007560: 6564 2061 6e64 2063 6f6e 6e65 6374 6564 ed and connected\n+00007570: 2073 6f63 6b65 7420 6f62 6a65 6374 0a20 socket object. \n+00007580: 2020 2020 4441 5441 2020 2020 2020 206f DATA o\n+00007590: 7574 2020 2020 2020 2020 4461 7461 2074 ut Data t\n+000075a0: 6f20 6265 2073 656e 740a 0a44 4553 4352 o be sent..DESCR\n+000075b0: 4950 5449 4f4e 0a20 2020 2020 5468 6973 IPTION. This\n+000075c0: 2070 726f 6365 6475 7265 2073 656e 6473 procedure sends\n+000075d0: 2064 6174 6120 6f76 6572 2061 2063 6f6e data over a con\n+000075e0: 6e65 6374 6564 206f 7574 676f 696e 6720 nected outgoing \n+000075f0: 736f 636b 6574 206f 7220 6f76 6572 0a20 socket or over. \n+00007600: 2020 2020 616e 2069 6e63 6f6d 696e 6720 an incoming \n+00007610: 736f 636b 6574 2e0a 0a45 5843 4550 5449 socket...EXCEPTI\n+00007620: 4f4e 530a 2020 2020 20e2 8098 436f 6e6e ONS. ...Conn\n+00007630: 6563 7469 6f6e 5f43 6c6f 7365 64e2 8099 ection_Closed...\n+00007640: 5065 6572 2068 6173 2070 7265 6d61 7475 Peer has prematu\n+00007650: 7265 6c79 2063 6c6f 7365 6420 7468 6520 rely closed the \n+00007660: 636f 6e6e 6563 7469 6f6e 0a0a 5345 4520 connection..SEE \n+00007670: 414c 534f 0a20 2020 2020 2a6e 6f74 6520 ALSO. *note \n+00007680: 5075 7420 2870 726f 6365 6475 7265 293a Put (procedure):\n+00007690: 3a2c 0a20 2020 2020 2a6e 6f74 6520 5075 :,. *note Pu\n+000076a0: 745f 4c69 6e65 2028 7072 6f63 6564 7572 t_Line (procedur\n+000076b0: 6529 3a3a 2e0a 0a1f 0a46 696c 653a 2061 e)::.....File: a\n+000076c0: 6461 736f 636b 6574 732e 696e 666f 2c20 dasockets.info, \n+000076d0: 204e 6f64 653a 2053 6574 5f42 7566 6665 Node: Set_Buffe\n+000076e0: 7220 2870 726f 6365 6475 7265 292c 2020 r (procedure), \n+000076f0: 4e65 7874 3a20 5365 7473 6f63 6b6f 7074 Next: Setsockopt\n+00007700: 2028 7072 6f63 6564 7572 6529 2c20 2050 (procedure), P\n+00007710: 7265 763a 2053 656e 6420 2870 726f 6365 rev: Send (proce\n+00007720: 6475 7265 292c 2020 5570 3a20 4163 6365 dure), Up: Acce\n+00007730: 7074 5f53 6f63 6b65 7420 2870 726f 6365 pt_Socket (proce\n+00007740: 6475 7265 290a 0a53 6574 5f42 7566 6665 dure)..Set_Buffe\n+00007750: 7220 2870 726f 6365 6475 7265 290a 2d2d r (procedure).--\n+00007760: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+00007770: 2d2d 2d2d 0a0a 5055 5250 4f53 450a 2020 ----..PURPOSE. \n+00007780: 2020 2049 6e73 7461 6c6c 2061 206c 696e Install a lin\n+00007790: 652d 6f72 6965 6e74 6564 2062 7566 6665 e-oriented buffe\n+000077a0: 7220 6f66 2074 6865 2073 6f63 6b65 7420 r of the socket \n+000077b0: 6f62 6a65 6374 0a50 524f 544f 5459 5045 object.PROTOTYPE\n+000077c0: 0a20 2020 2020 202d 2d20 536f 636b 6574 . -- Socket\n+000077d0: 732e 5365 745f 4275 6666 6572 3a20 7072 s.Set_Buffer: pr\n+000077e0: 6f63 6564 7572 6520 5365 745f 4275 6666 ocedure Set_Buff\n+000077f0: 6572 0a20 2020 2020 2020 2020 2020 2020 er. \n+00007800: 2020 2853 4f43 4b45 5420 3a20 536f 636b (SOCKET : Sock\n+00007810: 6574 5f46 4427 436c 6173 733b 204c 454e et_FD'Class; LEN\n+00007820: 4754 4820 3a20 506f 7369 7469 7665 203a GTH : Positive :\n+00007830: 3d20 3135 3030 293b 0a0a 5041 5241 4d45 = 1500);..PARAME\n+00007840: 5445 5253 0a20 2020 2020 534f 434b 4554 TERS. SOCKET\n+00007850: 2020 2020 2069 6e20 2020 2020 2020 2020 in \n+00007860: 496e 6974 6961 6c69 7a65 6420 616e 6420 Initialized and \n+00007870: 636f 6e6e 6563 7465 6420 736f 636b 6574 connected socket\n+00007880: 206f 626a 6563 740a 2020 2020 204c 454e object. LEN\n+00007890: 4754 4820 2020 2020 696e 2020 2020 2020 GTH in \n+000078a0: 2020 2053 697a 6520 696e 2062 7974 6573 Size in bytes\n+000078b0: 206f 6620 7468 6520 6e65 776c 7920 696e of the newly in\n+000078c0: 7374 616c 6c65 640a 2020 2020 2020 2020 stalled. \n+000078d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000078e0: 2020 2062 7566 6665 720a 0a44 4553 4352 buffer..DESCR\n+000078f0: 4950 5449 4f4e 0a20 2020 2020 5468 6973 IPTION. This\n+00007900: 2070 726f 6365 6475 7265 2070 7574 7320 procedure puts \n+00007910: 7468 6520 736f 636b 6574 206f 626a 6563 the socket objec\n+00007920: 7420 696e 2062 7566 6665 7265 6420 6d6f t in buffered mo\n+00007930: 6465 2e20 2049 6620 7468 650a 2020 2020 de. If the. \n+00007940: 2073 6f63 6b65 7420 7761 7320 616c 7265 socket was alre\n+00007950: 6164 7920 6275 6666 6572 6564 2c20 7468 ady buffered, th\n+00007960: 6520 636f 6e74 656e 7420 6f66 2074 6865 e content of the\n+00007970: 2070 7265 7669 6f75 7320 6275 6666 6572 previous buffer\n+00007980: 0a20 2020 2020 7769 6c6c 2062 6520 6c6f . will be lo\n+00007990: 7374 2e20 2054 6865 2062 7566 6665 7265 st. The buffere\n+000079a0: 6420 6d6f 6465 206f 6e6c 7920 6166 6665 d mode only affe\n+000079b0: 6374 7320 6368 6172 6163 7465 722d 2061 cts character- a\n+000079c0: 6e64 0a20 2020 2020 6c69 6e65 2d6f 7269 nd. line-ori\n+000079d0: 656e 7465 6420 7265 6164 206f 7065 7261 ented read opera\n+000079e0: 7469 6f6e 2073 7563 6820 6173 202a 6e6f tion such as *no\n+000079f0: 7465 2047 6574 2028 6675 6e63 7469 6f6e te Get (function\n+00007a00: 293a 3a2c 202a 6e6f 7465 0a20 2020 2020 )::, *note. \n+00007a10: 4765 745f 4368 6172 2028 6675 6e63 7469 Get_Char (functi\n+00007a20: 6f6e 293a 3a2c 2061 6e64 202a 6e6f 7465 on)::, and *note\n+00007a30: 2047 6574 5f4c 696e 6520 2866 756e 6374 Get_Line (funct\n+00007a40: 696f 6e29 3a3a 2e20 204f 7468 6572 0a20 ion)::. Other. \n+00007a50: 2020 2020 7265 6365 7074 696f 6e20 7375 reception su\n+00007a60: 6270 726f 6772 616d 7320 7769 6c6c 206e bprograms will n\n+00007a70: 6f74 2066 756e 6374 696f 6e20 7072 6f70 ot function prop\n+00007a80: 6572 6c79 2069 6620 6275 6666 6572 6564 erly if buffered\n+00007a90: 206d 6f64 650a 2020 2020 2069 7320 7573 mode. is us\n+00007aa0: 6564 2061 7420 7468 6520 7361 6d65 2074 ed at the same t\n+00007ab0: 696d 652e 0a0a 2020 2020 2054 6865 2073 ime... The s\n+00007ac0: 697a 6520 6f66 2074 6865 2062 7566 6665 ize of the buffe\n+00007ad0: 7220 6861 7320 746f 2062 6520 6772 6561 r has to be grea\n+00007ae0: 7465 7220 7468 616e 2074 6865 2062 6967 ter than the big\n+00007af0: 6765 7374 2070 6f73 7369 626c 650a 2020 gest possible. \n+00007b00: 2020 2070 6163 6b65 7420 7365 6e74 2062 packet sent b\n+00007b10: 7920 7468 6520 7265 6d6f 7465 2068 6f73 y the remote hos\n+00007b20: 742c 206f 7468 6572 7769 7365 2064 6174 t, otherwise dat\n+00007b30: 6120 6c6f 7373 206d 6179 206f 6363 7572 a loss may occur\n+00007b40: 2e0a 0a53 4545 2041 4c53 4f0a 2020 2020 ...SEE ALSO. \n+00007b50: 202a 6e6f 7465 2055 6e73 6574 5f42 7566 *note Unset_Buf\n+00007b60: 6665 7220 2870 726f 6365 6475 7265 293a fer (procedure):\n+00007b70: 3a2e 0a0a 1f0a 4669 6c65 3a20 6164 6173 :.....File: adas\n+00007b80: 6f63 6b65 7473 2e69 6e66 6f2c 2020 4e6f ockets.info, No\n+00007b90: 6465 3a20 5365 7473 6f63 6b6f 7074 2028 de: Setsockopt (\n+00007ba0: 7072 6f63 6564 7572 6529 2c20 204e 6578 procedure), Nex\n+00007bb0: 743a 2053 6875 7464 6f77 6e20 2870 726f t: Shutdown (pro\n+00007bc0: 6365 6475 7265 292c 2020 5072 6576 3a20 cedure), Prev: \n+00007bd0: 5365 745f 4275 6666 6572 2028 7072 6f63 Set_Buffer (proc\n+00007be0: 6564 7572 6529 2c20 2055 703a 2041 6363 edure), Up: Acc\n+00007bf0: 6570 745f 536f 636b 6574 2028 7072 6f63 ept_Socket (proc\n+00007c00: 6564 7572 6529 0a0a 5365 7473 6f63 6b6f edure)..Setsocko\n+00007c10: 7074 2028 7072 6f63 6564 7572 6529 0a2d pt (procedure).-\n+00007c20: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+00007c30: 2d2d 2d2d 2d0a 0a50 5552 504f 5345 0a20 -----..PURPOSE. \n+00007c40: 2020 2020 5365 7420 6120 736f 636b 6574 Set a socket\n+00007c50: 206f 7074 696f 6e0a 5052 4f54 4f54 5950 option.PROTOTYP\n+00007c60: 450a 2020 2020 2020 2d2d 2053 6f63 6b65 E. -- Socke\n+00007c70: 7473 2e53 6574 736f 636b 6f70 743a 2070 ts.Setsockopt: p\n+00007c80: 726f 6365 6475 7265 2053 6574 736f 636b rocedure Setsock\n+00007c90: 6f70 7420 2853 4f43 4b45 5420 3a20 536f opt (SOCKET : So\n+00007ca0: 636b 6574 5f46 443b 0a20 2020 2020 2020 cket_FD;. \n+00007cb0: 2020 2020 2020 2020 4c45 5645 4c20 3a20 LEVEL : \n+00007cc0: 536f 636b 6574 5f4c 6576 656c 203a 3d20 Socket_Level := \n+00007cd0: 534f 4c5f 534f 434b 4554 3b0a 2020 2020 SOL_SOCKET;. \n+00007ce0: 2020 2020 2020 2020 2020 204f 5054 4e41 OPTNA\n+00007cf0: 4d45 203a 2053 6f63 6b65 745f 4f70 7469 ME : Socket_Opti\n+00007d00: 6f6e 3b20 4f50 5456 414c 203a 2049 6e74 on; OPTVAL : Int\n+00007d10: 6567 6572 293b 0a0a 5041 5241 4d45 5445 eger);..PARAMETE\n+00007d20: 5253 0a20 2020 2020 534f 434b 4554 2020 RS. SOCKET \n+00007d30: 2020 2069 6e20 2020 2020 2020 2020 496e in In\n+00007d40: 6974 6961 6c69 7a65 6420 616e 6420 626f itialized and bo\n+00007d50: 756e 6420 736f 636b 6574 206f 626a 6563 und socket objec\n+00007d60: 740a 2020 2020 204c 4556 454c 2020 2020 t. LEVEL \n+00007d70: 2020 696e 2020 2020 2020 2020 2050 726f in Pro\n+00007d80: 746f 636f 6c20 6c65 7665 6c0a 2020 2020 tocol level. \n+00007d90: 204f 5054 4e41 4d45 2020 2020 696e 2020 OPTNAME in \n+00007da0: 2020 2020 2020 204f 7074 696f 6e20 6e61 Option na\n+00007db0: 6d65 0a20 2020 2020 4f50 5456 414c 2020 me. OPTVAL \n+00007dc0: 2020 2069 6e20 2020 2020 2020 2020 4f70 in Op\n+00007dd0: 7469 6f6e 2076 616c 7565 0a0a 4445 5343 tion value..DESC\n+00007de0: 5249 5054 494f 4e0a 2020 2020 2054 6869 RIPTION. Thi\n+00007df0: 7320 7072 6f63 6564 7572 6520 7365 7473 s procedure sets\n+00007e00: 206f 7074 696f 6e73 2061 7070 6c69 6361 options applica\n+00007e10: 626c 6520 746f 2061 2073 6f63 6b65 742e ble to a socket.\n+00007e20: 2020 506c 6561 7365 2073 6565 0a20 2020 Please see. \n+00007e30: 2020 796f 7572 206f 7065 7261 7469 6e67 your operating\n+00007e40: 2073 7973 7465 6d20 6d61 6e75 616c 2066 system manual f\n+00007e50: 6f72 2075 7361 626c 6520 6c65 7665 6c73 or usable levels\n+00007e60: 2061 6e64 206f 7074 696f 6e73 2e0a 0a20 and options... \n+00007e70: 2020 2020 5477 6f20 6c65 7665 6c73 2061 Two levels a\n+00007e80: 7265 2064 6566 696e 6564 3a20 e280 9853 re defined: ...S\n+00007e90: 4f4c 5f53 4f43 4b45 54e2 8099 2028 7468 OL_SOCKET... (th\n+00007ea0: 6520 6465 6661 756c 7429 2061 6e64 0a20 e default) and. \n+00007eb0: 2020 2020 e280 9849 5050 524f 544f 5f49 ...IPPROTO_I\n+00007ec0: 50e2 8099 2e20 2054 6865 206f 7074 696f P.... The optio\n+00007ed0: 6e73 2061 7265 20e2 8098 534f 5f52 4555 ns are ...SO_REU\n+00007ee0: 5345 4144 4452 e280 992c 20e2 8098 534f SEADDR..., ...SO\n+00007ef0: 5f52 4555 5345 504f 5254 e280 992c 0a20 _REUSEPORT...,. \n+00007f00: 2020 2020 e280 9849 505f 4d55 4c54 4943 ...IP_MULTIC\n+00007f10: 4153 545f 5454 4ce2 8099 2c20 e280 9849 AST_TTL..., ...I\n+00007f20: 505f 4144 445f 4d45 4d42 4552 5348 4950 P_ADD_MEMBERSHIP\n+00007f30: e280 992c 20e2 8098 4950 5f44 524f 505f ..., ...IP_DROP_\n+00007f40: 4d45 4d42 4552 5348 4950 e280 992c 0a20 MEMBERSHIP...,. \n+00007f50: 2020 2020 e280 9849 505f 4d55 4c54 4943 ...IP_MULTIC\n+00007f60: 4153 545f 4c4f 4f50 e280 992c 20e2 8098 AST_LOOP..., ...\n+00007f70: 534f 5f53 4e44 4255 46e2 8099 2061 6e64 SO_SNDBUF... and\n+00007f80: 20e2 8098 4950 5f52 4356 4255 46e2 8099 ...IP_RCVBUF...\n+00007f90: 2e0a 0a20 2020 2020 4e6f 7465 2074 6861 ... Note tha\n+00007fa0: 7420 756e 6c69 6b65 2074 6865 6972 2043 t unlike their C\n+00007fb0: 206c 616e 6775 6167 6520 636f 756e 7465 language counte\n+00007fc0: 7270 6172 742c 20e2 8098 4765 7473 6f63 rpart, ...Getsoc\n+00007fd0: 6b6f 7074 e280 9920 616e 640a 2020 2020 kopt... and. \n+00007fe0: 20e2 8098 5365 7473 6f63 6b6f 7074 e280 ...Setsockopt..\n+00007ff0: 9920 646f 206e 6f74 2072 6571 7569 7265 . do not require\n+00008000: 2061 6e20 6578 7472 6120 7061 7261 6d65 an extra parame\n+00008010: 7465 7220 7265 7072 6573 656e 7469 6e67 ter representing\n+00008020: 2074 6865 0a20 2020 2020 6c65 6e67 7468 the. length\n+00008030: 2069 6e20 6279 7465 7320 6f66 2074 6865 in bytes of the\n+00008040: 206f 7074 696f 6e20 7661 6c75 652e 2020 option value. \n+00008050: 4164 6153 6f63 6b65 7473 206e 6f77 7320 AdaSockets nows \n+00008060: 7468 6520 7269 6768 740a 2020 2020 2073 the right. s\n+00008070: 697a 6520 666f 7220 6576 6572 7920 6f70 ize for every op\n+00008080: 7469 6f6e 2e0a 0a53 4545 2041 4c53 4f0a tion...SEE ALSO.\n+00008090: 2020 2020 202a 6e6f 7465 2047 6574 736f *note Getso\n+000080a0: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n+000080b0: 293a 3a2e 0a0a 1f0a 4669 6c65 3a20 6164 )::.....File: ad\n+000080c0: 6173 6f63 6b65 7473 2e69 6e66 6f2c 2020 asockets.info, \n+000080d0: 4e6f 6465 3a20 5368 7574 646f 776e 2028 Node: Shutdown (\n+000080e0: 7072 6f63 6564 7572 6529 2c20 204e 6578 procedure), Nex\n+000080f0: 743a 2053 6f63 6b65 7420 2870 726f 6365 t: Socket (proce\n+00008100: 6475 7265 292c 2020 5072 6576 3a20 5365 dure), Prev: Se\n+00008110: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n+00008120: 7572 6529 2c20 2055 703a 2041 6363 6570 ure), Up: Accep\n+00008130: 745f 536f 636b 6574 2028 7072 6f63 6564 t_Socket (proced\n+00008140: 7572 6529 0a0a 5368 7574 646f 776e 2028 ure)..Shutdown (\n+00008150: 7072 6f63 6564 7572 6529 0a2d 2d2d 2d2d procedure).-----\n+00008160: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a ---------------.\n+00008170: 0a50 5552 504f 5345 0a20 2020 2020 5368 .PURPOSE. Sh\n+00008180: 7574 646f 776e 2061 2073 6f63 6b65 740a utdown a socket.\n+00008190: 5052 4f54 4f54 5950 450a 2020 2020 2020 PROTOTYPE. \n+000081a0: 2d2d 2053 6f63 6b65 7473 2e53 6875 7464 -- Sockets.Shutd\n+000081b0: 6f77 6e3a 2070 726f 6365 6475 7265 2053 own: procedure S\n+000081c0: 6875 7464 6f77 6e0a 2020 2020 2020 2020 hutdown. \n+000081d0: 2020 2020 2020 2028 534f 434b 4554 203a (SOCKET :\n+000081e0: 2069 6e20 6f75 7420 536f 636b 6574 5f46 in out Socket_F\n+000081f0: 443b 2048 4f57 203a 2053 6875 7464 6f77 D; HOW : Shutdow\n+00008200: 6e5f 5479 7065 203a 3d20 426f 7468 293b n_Type := Both);\n+00008210: 0a0a 5041 5241 4d45 5445 5253 0a20 2020 ..PARAMETERS. \n+00008220: 2020 534f 434b 4554 2020 2020 2069 6e20 SOCKET in \n+00008230: 6f75 7420 2020 2020 536f 636b 6574 206f out Socket o\n+00008240: 626a 6563 7420 746f 2073 6875 7464 6f77 bject to shutdow\n+00008250: 6e0a 2020 2020 2048 4f57 2020 2020 2020 n. HOW \n+00008260: 2020 696e 2020 2020 2020 2020 2044 6972 in Dir\n+00008270: 6563 7469 6f6e 2074 6f20 7368 7574 646f ection to shutdo\n+00008280: 776e 0a0a 4445 5343 5249 5054 494f 4e0a wn..DESCRIPTION.\n+00008290: 2020 2020 2054 6869 7320 7072 6f63 6564 This proced\n+000082a0: 7572 6520 7368 7574 646f 776e 7320 6569 ure shutdowns ei\n+000082b0: 7468 6572 2064 6972 6563 7469 6f6e 206f ther direction o\n+000082c0: 6620 7468 6520 736f 636b 6574 2e20 2048 f the socket. H\n+000082d0: 4f57 2063 616e 0a20 2020 2020 7461 6b65 OW can. take\n+000082e0: 2074 6865 2076 616c 7565 20e2 8098 5365 the value ...Se\n+000082f0: 6e64 e280 992c 20e2 8098 5265 6365 6976 nd..., ...Receiv\n+00008300: 65e2 8099 206f 7220 e280 9842 6f74 68e2 e... or ...Both.\n+00008310: 8099 2e0a 0a53 4545 2041 4c53 4f0a 2020 .....SEE ALSO. \n+00008320: 2020 202a 6e6f 7465 2053 6f63 6b65 7420 *note Socket \n+00008330: 2870 726f 6365 6475 7265 293a 3a2e 0a0a (procedure)::...\n+00008340: 1f0a 4669 6c65 3a20 6164 6173 6f63 6b65 ..File: adasocke\n+00008350: 7473 2e69 6e66 6f2c 2020 4e6f 6465 3a20 ts.info, Node: \n+00008360: 536f 636b 6574 2028 7072 6f63 6564 7572 Socket (procedur\n+00008370: 6529 2c20 204e 6578 743a 2055 6e73 6574 e), Next: Unset\n+00008380: 5f42 7566 6665 7220 2870 726f 6365 6475 _Buffer (procedu\n+00008390: 7265 292c 2020 5072 6576 3a20 5368 7574 re), Prev: Shut\n+000083a0: 646f 776e 2028 7072 6f63 6564 7572 6529 down (procedure)\n+000083b0: 2c20 2055 703a 2041 6363 6570 745f 536f , Up: Accept_So\n+000083c0: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+000083d0: 0a0a 536f 636b 6574 2028 7072 6f63 6564 ..Socket (proced\n+000083e0: 7572 6529 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d ure).-----------\n+000083f0: 2d2d 2d2d 2d2d 2d0a 0a50 5552 504f 5345 -------..PURPOSE\n+00008400: 0a20 2020 2020 4372 6561 7465 2061 2073 . Create a s\n+00008410: 6f63 6b65 7420 6f66 2074 6865 2067 6976 ocket of the giv\n+00008420: 656e 206d 6f64 650a 5052 4f54 4f54 5950 en mode.PROTOTYP\n+00008430: 450a 2020 2020 2020 2d2d 2053 6f63 6b65 E. -- Socke\n+00008440: 7473 2e53 6f63 6b65 743a 2070 726f 6365 ts.Socket: proce\n+00008450: 6475 7265 2053 6f63 6b65 7420 2853 4f43 dure Socket (SOC\n+00008460: 4b45 5420 3a20 6f75 7420 536f 636b 6574 KET : out Socket\n+00008470: 5f46 443b 0a20 2020 2020 2020 2020 2020 _FD;. \n+00008480: 2020 2020 444f 4d41 494e 203a 2053 6f63 DOMAIN : Soc\n+00008490: 6b65 745f 446f 6d61 696e 203a 3d20 5046 ket_Domain := PF\n+000084a0: 5f49 4e45 543b 0a20 2020 2020 2020 2020 _INET;. \n+000084b0: 2020 2020 2020 5459 5020 3a20 536f 636b TYP : Sock\n+000084c0: 6574 5f54 7970 6520 3a3d 2053 4f43 4b5f et_Type := SOCK_\n+000084d0: 5354 5245 414d 293b 0a0a 5041 5241 4d45 STREAM);..PARAME\n+000084e0: 5445 5253 0a20 2020 2020 534f 434b 4554 TERS. SOCKET\n+000084f0: 2020 2020 206f 7574 2020 2020 2020 2020 out \n+00008500: 536f 636b 6574 206f 626a 6563 7420 746f Socket object to\n+00008510: 2069 6e69 7469 616c 697a 650a 2020 2020 initialize. \n+00008520: 2044 4f4d 4149 4e20 2020 2020 696e 2020 DOMAIN in \n+00008530: 2020 2020 2020 2050 726f 746f 636f 6c20 Protocol \n+00008540: 6661 6d69 6c79 0a20 2020 2020 5459 5020 family. TYP \n+00008550: 2020 2020 2020 2069 6e20 2020 2020 2020 in \n+00008560: 2020 4b69 6e64 206f 6620 736f 636b 6574 Kind of socket\n+00008570: 730a 0a44 4553 4352 4950 5449 4f4e 0a20 s..DESCRIPTION. \n+00008580: 2020 2020 5468 6973 2070 726f 6365 6475 This procedu\n+00008590: 7265 2069 6e69 7469 616c 697a 6573 2061 re initializes a\n+000085a0: 206e 6577 2073 6f63 6b65 7420 6f62 6a65 new socket obje\n+000085b0: 6374 2062 7920 7265 7365 7276 696e 6720 ct by reserving \n+000085c0: 6120 6669 6c65 0a20 2020 2020 6465 7363 a file. desc\n+000085d0: 7269 7074 6f72 2074 6f20 7468 6520 6f70 riptor to the op\n+000085e0: 6572 6174 696e 6720 7379 7374 656d 2e20 erating system. \n+000085f0: 2046 6f72 2062 6163 6b77 6172 6420 636f For backward co\n+00008600: 6d70 6174 6962 696c 6974 790a 2020 2020 mpatibility. \n+00008610: 2077 6974 6820 6f6c 6465 7220 7665 7273 with older vers\n+00008620: 696f 6e73 206f 6620 7468 6973 206c 6962 ions of this lib\n+00008630: 7261 7279 2c20 e280 9841 465f 494e 4554 rary, ...AF_INET\n+00008640: e280 9920 6973 2073 7469 6c6c 2061 6363 ... is still acc\n+00008650: 6570 7465 6420 6173 0a20 2020 2020 6120 epted as. a \n+00008660: 7661 6c75 6520 6275 7420 7368 6f75 6c64 value but should\n+00008670: 2062 6520 7265 706c 6163 6564 2061 7320 be replaced as \n+00008680: 736f 6f6e 2061 7320 706f 7373 6962 6c65 soon as possible\n+00008690: 2077 6974 6820 7468 6520 7072 6f70 6572 with the proper\n+000086a0: 0a20 2020 2020 e280 9850 465f 494e 4554 . ...PF_INET\n+000086b0: e280 992e 2020 5573 696e 6720 e280 9853 .... Using ...S\n+000086c0: 4f43 4b5f 5354 5245 414d e280 9920 666f OCK_STREAM... fo\n+000086d0: 7220 7468 6520 5459 5020 6172 6775 6d65 r the TYP argume\n+000086e0: 6e74 2077 696c 6c20 6372 6561 7465 2061 nt will create a\n+000086f0: 0a20 2020 2020 5443 5020 736f 636b 6574 . TCP socket\n+00008700: 2077 6869 6c65 2061 20e2 8098 534f 434b while a ...SOCK\n+00008710: 5f44 4752 414d e280 9920 7769 6c6c 2063 _DGRAM... will c\n+00008720: 7265 6174 6520 6120 5544 5020 6f6e 652e reate a UDP one.\n+00008730: 0a0a 4558 414d 504c 450a 2020 2020 2020 ..EXAMPLE. \n+00008740: 2020 2020 6465 636c 6172 650a 2020 2020 declare. \n+00008750: 2020 2020 2020 2020 2053 6f63 6b20 3a20 Sock : \n+00008760: 536f 636b 6574 5f46 443b 0a20 2020 2020 Socket_FD;. \n+00008770: 2020 2020 2062 6567 696e 0a20 2020 2020 begin. \n+00008780: 2020 2020 2020 2020 2d2d 2043 7265 6174 -- Creat\n+00008790: 6520 6120 5443 5020 736f 636b 6574 0a20 e a TCP socket. \n+000087a0: 2020 2020 2020 2020 2020 2020 536f 636b Sock\n+000087b0: 6574 2028 536f 636b 2c20 5046 5f49 4e45 et (Sock, PF_INE\n+000087c0: 542c 2053 4f43 4b5f 5354 5245 414d 293b T, SOCK_STREAM);\n+000087d0: 0a20 2020 2020 2020 2020 2020 2020 2d2d . --\n+000087e0: 2050 6572 666f 726d 2073 6f6d 6520 6f70 Perform some op\n+000087f0: 6572 6174 696f 6e73 206f 6e20 736f 636b erations on sock\n+00008800: 6574 0a20 2020 2020 2020 2020 2020 2020 et. \n+00008810: 5b2e 2e2e 5d0a 2020 2020 2020 2020 2020 [...]. \n+00008820: 2020 202d 2d20 5368 7574 646f 776e 2074 -- Shutdown t\n+00008830: 6865 2073 6f63 6b65 7420 696e 2062 6f74 he socket in bot\n+00008840: 6820 6469 7265 6374 696f 6e73 0a20 2020 h directions. \n+00008850: 2020 2020 2020 2020 2020 5368 7574 646f Shutdo\n+00008860: 776e 2028 536f 636b 2c20 426f 7468 293b wn (Sock, Both);\n+00008870: 0a20 2020 2020 2020 2020 2065 6e64 3b0a . end;.\n+00008880: 0a53 4545 2041 4c53 4f0a 2020 2020 202a .SEE ALSO. *\n+00008890: 6e6f 7465 2053 6875 7464 6f77 6e20 2870 note Shutdown (p\n+000088a0: 726f 6365 6475 7265 293a 3a2e 0a0a 1f0a rocedure)::.....\n+000088b0: 4669 6c65 3a20 6164 6173 6f63 6b65 7473 File: adasockets\n+000088c0: 2e69 6e66 6f2c 2020 4e6f 6465 3a20 556e .info, Node: Un\n+000088d0: 7365 745f 4275 6666 6572 2028 7072 6f63 set_Buffer (proc\n+000088e0: 6564 7572 6529 2c20 2050 7265 763a 2053 edure), Prev: S\n+000088f0: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n+00008900: 292c 2020 5570 3a20 4163 6365 7074 5f53 ), Up: Accept_S\n+00008910: 6f63 6b65 7420 2870 726f 6365 6475 7265 ocket (procedure\n+00008920: 290a 0a55 6e73 6574 5f42 7566 6665 7220 )..Unset_Buffer \n+00008930: 2870 726f 6365 6475 7265 290a 2d2d 2d2d (procedure).----\n+00008940: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+00008950: 2d2d 2d2d 0a0a 5055 5250 4f53 450a 2020 ----..PURPOSE. \n+00008960: 2020 2044 6569 6e73 7461 6c6c 2074 6865 Deinstall the\n+00008970: 206c 696e 652d 6f72 6965 6e74 6564 2062 line-oriented b\n+00008980: 7566 6665 7220 6f66 2074 6865 2073 6f63 uffer of the soc\n+00008990: 6b65 7420 6f62 6a65 6374 0a50 524f 544f ket object.PROTO\n+000089a0: 5459 5045 0a20 2020 2020 202d 2d20 536f TYPE. -- So\n+000089b0: 636b 6574 732e 556e 7365 745f 4275 6666 ckets.Unset_Buff\n+000089c0: 6572 3a20 7072 6f63 6564 7572 6520 556e er: procedure Un\n+000089d0: 7365 745f 4275 6666 6572 0a20 2020 2020 set_Buffer. \n+000089e0: 2020 2020 2020 2020 2020 2853 4f43 4b45 (SOCKE\n+000089f0: 5420 3a20 536f 636b 6574 5f46 4427 436c T : Socket_FD'Cl\n+00008a00: 6173 7329 3b0a 0a50 4152 414d 4554 4552 ass);..PARAMETER\n+00008a10: 530a 2020 2020 2053 4f43 4b45 5420 2020 S. SOCKET \n+00008a20: 2020 696e 2020 2020 2020 2020 2049 6e69 in Ini\n+00008a30: 7469 616c 697a 6564 2061 6e64 2063 6f6e tialized and con\n+00008a40: 6e65 6374 6564 2073 6f63 6b65 7420 6f62 nected socket ob\n+00008a50: 6a65 6374 0a0a 4445 5343 5249 5054 494f ject..DESCRIPTIO\n+00008a60: 4e0a 2020 2020 2054 6869 7320 7072 6f63 N. This proc\n+00008a70: 6564 7572 6520 6465 696e 7374 616c 6c73 edure deinstalls\n+00008a80: 2074 6865 2062 7566 6665 7220 7072 6576 the buffer prev\n+00008a90: 696f 7573 6c79 2069 6e73 7461 6c6c 6564 iously installed\n+00008aa0: 2062 7920 2a6e 6f74 650a 2020 2020 2053 by *note. S\n+00008ab0: 6574 5f42 7566 6665 7220 2870 726f 6365 et_Buffer (proce\n+00008ac0: 6475 7265 293a 3a2e 2020 4966 2061 6e79 dure)::. If any\n+00008ad0: 2064 6174 6120 6973 2073 7469 6c6c 2070 data is still p\n+00008ae0: 7265 7365 6e74 2069 6e20 7468 650a 2020 resent in the. \n+00008af0: 2020 2062 7566 6665 722c 2069 7420 7769 buffer, it wi\n+00008b00: 6c6c 2062 6520 6c6f 7374 2e20 2054 6f20 ll be lost. To \n+00008b10: 6176 6f69 6420 7468 6973 2073 6974 7561 avoid this situa\n+00008b20: 7469 6f6e 2c20 7468 6520 6275 6666 6572 tion, the buffer\n+00008b30: 2063 616e 0a20 2020 2020 6265 2066 6c75 can. be flu\n+00008b40: 7368 6564 2062 7920 6361 6c6c 696e 6720 shed by calling \n+00008b50: 2a6e 6f74 6520 4765 7420 2866 756e 6374 *note Get (funct\n+00008b60: 696f 6e29 3a3a 2e0a 0a1f 0a46 696c 653a ion)::.....File:\n+00008b70: 2061 6461 736f 636b 6574 732e 696e 666f adasockets.info\n+00008b80: 2c20 204e 6f64 653a 2053 6f63 6b65 7473 , Node: Sockets\n+00008b90: 2e4d 756c 7469 6361 7374 2070 6163 6b61 .Multicast packa\n+00008ba0: 6765 2c20 204e 6578 743a 2053 6f63 6b65 ge, Next: Socke\n+00008bb0: 7473 2e4e 616d 696e 6720 7061 636b 6167 ts.Naming packag\n+00008bc0: 652c 2020 5072 6576 3a20 536f 636b 6574 e, Prev: Socket\n+00008bd0: 7320 7061 636b 6167 652c 2020 5570 3a20 s package, Up: \n+00008be0: 546f 700a 0a35 2053 6f63 6b65 7473 2e4d Top..5 Sockets.M\n+00008bf0: 756c 7469 6361 7374 2070 6163 6b61 6765 ulticast package\n+00008c00: 0a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a .***************\n+00008c10: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 0a0a 5468 ************..Th\n+00008c20: 6520 e280 9853 6f63 6b65 7473 2e4d 756c e ...Sockets.Mul\n+00008c30: 7469 6361 7374 e280 9920 616c 6c6f 7773 ticast... allows\n+00008c40: 2074 6865 2063 7265 6174 696f 6e20 6f66 the creation of\n+00008c50: 2049 5020 6d75 6c74 6963 6173 7420 736f IP multicast so\n+00008c60: 636b 6574 732e 0a0a 202d 2d20 536f 636b ckets... -- Sock\n+00008c70: 6574 732e 4d75 6c74 6963 6173 742e 4d75 ets.Multicast.Mu\n+00008c80: 6c74 6963 6173 745f 536f 636b 6574 5f46 lticast_Socket_F\n+00008c90: 443a 2074 7970 6520 4d75 6c74 6963 6173 D: type Multicas\n+00008ca0: 745f 536f 636b 6574 5f46 4420 6973 0a20 t_Socket_FD is. \n+00008cb0: 2020 2020 2020 2020 206e 6577 2053 6f63 new Soc\n+00008cc0: 6b65 745f 4644 2077 6974 6820 7072 6976 ket_FD with priv\n+00008cd0: 6174 653b 0a20 2020 2020 5468 6520 e280 ate;. The ..\n+00008ce0: 984d 756c 7469 6361 7374 5f53 6f63 6b65 .Multicast_Socke\n+00008cf0: 745f 4644 e280 9920 7461 6767 6564 2074 t_FD... tagged t\n+00008d00: 7970 6520 6465 7269 7665 7320 6672 6f6d ype derives from\n+00008d10: 2074 6865 20e2 8098 536f 636b 6574 5f46 the ...Socket_F\n+00008d20: 44e2 8099 0a20 2020 2020 7479 7065 2e20 D.... type. \n+00008d30: 2049 7420 6765 7473 2069 6e69 7469 616c It gets initial\n+00008d40: 697a 6564 2062 7920 6361 6c6c 696e 6720 ized by calling \n+00008d50: 2a6e 6f74 6520 4372 6561 7465 5f4d 756c *note Create_Mul\n+00008d60: 7469 6361 7374 5f53 6f63 6b65 740a 2020 ticast_Socket. \n+00008d70: 2020 2028 6675 6e63 7469 6f6e 293a 3a2e (function)::.\n+00008d80: 2020 416e 2075 6e69 6e69 7469 616c 697a An uninitializ\n+00008d90: 6564 20e2 8098 4d75 6c74 6963 6173 745f ed ...Multicast_\n+00008da0: 536f 636b 6574 5f46 44e2 8099 2063 616e Socket_FD... can\n+00008db0: 2062 650a 2020 2020 2073 7563 6365 7366 be. succesf\n+00008dc0: 756c 6c79 2063 6f6d 7061 7265 6420 746f ully compared to\n+00008dd0: 20e2 8098 4e75 6c6c 5f4d 756c 7469 6361 ...Null_Multica\n+00008de0: 7374 5f53 6f63 6b65 745f 4644 e280 992e st_Socket_FD....\n+00008df0: 0a0a 2a20 4d65 6e75 3a0a 0a2a 2043 7265 ..* Menu:..* Cre\n+00008e00: 6174 655f 4d75 6c74 6963 6173 745f 536f ate_Multicast_So\n+00008e10: 636b 6574 2028 6675 6e63 7469 6f6e 293a cket (function):\n+00008e20: 3a0a 2020 2020 2020 2020 2020 2020 2020 :. \n+00008e30: 2020 2020 2020 2020 2020 4372 6561 7465 Create\n+00008e40: 2061 6e20 4950 206d 756c 7469 6361 7374 an IP multicast\n+00008e50: 2073 6f63 6b65 740a 2a20 4372 6561 7465 socket.* Create\n+00008e60: 5f4d 756c 7469 6361 7374 5f53 6f63 6b65 _Multicast_Socke\n+00008e70: 7420 2866 756e 6374 696f 6e29 3a3a 0a20 t (function)::. \n+00008e80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00008e90: 2020 2020 2020 2043 7265 6174 6520 616e Create an\n+00008ea0: 2049 5020 6d75 6c74 6963 6173 7420 736f IP multicast so\n+00008eb0: 636b 6574 0a0a 1f0a 4669 6c65 3a20 6164 cket....File: ad\n+00008ec0: 6173 6f63 6b65 7473 2e69 6e66 6f2c 2020 asockets.info, \n+00008ed0: 4e6f 6465 3a20 4372 6561 7465 5f4d 756c Node: Create_Mul\n+00008ee0: 7469 6361 7374 5f53 6f63 6b65 7420 2866 ticast_Socket (f\n+00008ef0: 756e 6374 696f 6e29 2c20 204e 6578 743a unction), Next:\n+00008f00: 2043 7265 6174 655f 4d75 6c74 6963 6173 Create_Multicas\n+00008f10: 745f 536f 636b 6574 2028 6675 6e63 7469 t_Socket (functi\n+00008f20: 6f6e 292c 2020 5072 6576 3a20 4372 6561 on), Prev: Crea\n+00008f30: 7465 5f4d 756c 7469 6361 7374 5f53 6f63 te_Multicast_Soc\n+00008f40: 6b65 7420 2866 756e 6374 696f 6e29 2c20 ket (function), \n+00008f50: 2055 703a 2053 6f63 6b65 7473 2e4d 756c Up: Sockets.Mul\n+00008f60: 7469 6361 7374 2070 6163 6b61 6765 0a0a ticast package..\n+00008f70: 4372 6561 7465 5f4d 756c 7469 6361 7374 Create_Multicast\n+00008f80: 5f53 6f63 6b65 7420 2866 756e 6374 696f _Socket (functio\n+00008f90: 6e29 0a3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d n).=============\n+00008fa0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+00008fb0: 3d3d 3d3d 3d0a 0a50 5552 504f 5345 0a20 =====..PURPOSE. \n+00008fc0: 2020 2020 4372 6561 7465 2061 6e20 4950 Create an IP\n+00008fd0: 206d 756c 7469 6361 7374 2073 6f63 6b65 multicast socke\n+00008fe0: 740a 5052 4f54 4f54 5950 450a 2020 2020 t.PROTOTYPE. \n+00008ff0: 2020 2d2d 2053 6f63 6b65 7473 2e4d 756c -- Sockets.Mul\n+00009000: 7469 6361 7374 2e43 7265 6174 655f 4d75 ticast.Create_Mu\n+00009010: 6c74 6963 6173 745f 536f 636b 6574 3a20 lticast_Socket: \n+00009020: 6675 6e63 7469 6f6e 0a20 2020 2020 2020 function. \n+00009030: 2020 2020 2020 2020 4372 6561 7465 5f4d Create_M\n+00009040: 756c 7469 6361 7374 5f53 6f63 6b65 7420 ulticast_Socket \n+00009050: 2847 524f 5550 203a 2053 7472 696e 673b (GROUP : String;\n+00009060: 2050 4f52 5420 3a20 4e61 7475 7261 6c3b PORT : Natural;\n+00009070: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+00009080: 5454 4c20 3a20 506f 7369 7469 7665 203a TTL : Positive :\n+00009090: 3d20 3136 3b20 5345 4c46 5f4c 4f4f 5020 = 16; SELF_LOOP \n+000090a0: 3a20 426f 6f6c 6561 6e20 3a3d 2054 7275 : Boolean := Tru\n+000090b0: 653b 0a20 2020 2020 2020 2020 2020 2020 e;. \n+000090c0: 2020 4c4f 4341 4c5f 4946 203a 2053 7472 LOCAL_IF : Str\n+000090d0: 696e 6720 3a3d 2030 2e30 2e30 2e30 290a ing := 0.0.0.0).\n+000090e0: 2020 2020 2020 2020 2020 2020 2020 2072 r\n+000090f0: 6574 7572 6e20 4d75 6c74 6963 6173 745f eturn Multicast_\n+00009100: 536f 636b 6574 5f46 443b 0a0a 5041 5241 Socket_FD;..PARA\n+00009110: 4d45 5445 5253 0a20 2020 2020 4752 4f55 METERS. GROU\n+00009120: 5020 2020 2020 2069 6e20 2020 2020 2020 P in \n+00009130: 2020 4950 2061 6464 7265 7373 206f 6620 IP address of \n+00009140: 7468 6520 6d75 6c74 6963 6173 7420 6772 the multicast gr\n+00009150: 6f75 7020 746f 0a20 2020 2020 2020 2020 oup to. \n+00009160: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00009170: 2020 6a6f 696e 0a20 2020 2020 504f 5254 join. PORT\n+00009180: 2020 2020 2020 2069 6e20 2020 2020 2020 in \n+00009190: 2020 506f 7274 206f 6620 7468 6520 6d75 Port of the mu\n+000091a0: 6c74 6963 6173 7420 6772 6f75 7020 746f lticast group to\n+000091b0: 206a 6f69 6e0a 2020 2020 2054 544c 2020 join. TTL \n+000091c0: 2020 2020 2020 696e 2020 2020 2020 2020 in \n+000091d0: 2054 696d 652d 746f 2d6c 6976 6520 6f66 Time-to-live of\n+000091e0: 2073 656e 7420 7061 636b 6574 730a 2020 sent packets. \n+000091f0: 2020 2053 454c 465f 4c4f 4f50 2020 696e SELF_LOOP in\n+00009200: 2020 2020 2020 2020 2053 686f 756c 6420 Should \n+00009210: 7468 6520 736f 636b 6574 2072 6563 6569 the socket recei\n+00009220: 7665 2074 6865 2070 6163 6b65 7473 0a20 ve the packets. \n+00009230: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00009240: 2020 2020 2020 2020 2020 7365 6e74 2066 sent f\n+00009250: 726f 6d20 7468 6520 6c6f 6361 6c20 686f rom the local ho\n+00009260: 7374 3f0a 2020 2020 204c 4f43 414c 5f49 st?. LOCAL_I\n+00009270: 4620 2020 696e 2020 2020 2020 2020 2041 F in A\n+00009280: 6464 7265 7373 206f 6620 7468 6520 6c6f ddress of the lo\n+00009290: 6361 6c20 696e 7465 7266 6163 6520 746f cal interface to\n+000092a0: 2075 7365 0a0a 5245 5455 524e 2056 414c use..RETURN VAL\n+000092b0: 5545 0a20 2020 2020 5468 6520 6e65 7720 UE. The new \n+000092c0: 696e 6974 6961 6c69 7a65 6420 6d75 6c74 initialized mult\n+000092d0: 6963 6173 7420 736f 636b 6574 0a0a 4445 icast socket..DE\n+000092e0: 5343 5249 5054 494f 4e0a 2020 2020 2054 SCRIPTION. T\n+000092f0: 6869 7320 6675 6e63 7469 6f6e 2063 7265 his function cre\n+00009300: 6174 6573 2061 6e20 4950 206d 756c 7469 ates an IP multi\n+00009310: 6361 7374 2073 6f63 6b65 7420 6174 7461 cast socket atta\n+00009320: 6368 6564 2074 6f20 6120 6769 7665 6e0a ched to a given.\n+00009330: 2020 2020 2067 726f 7570 2c20 6964 656e group, iden\n+00009340: 7469 6669 6564 2062 7920 6974 7320 636c tified by its cl\n+00009350: 6173 7320 4520 4950 2061 6464 7265 7373 ass E IP address\n+00009360: 2061 6e64 2070 6f72 742e 0a0a 2020 2020 and port... \n+00009370: 2042 6520 6361 7265 6675 6c20 7768 656e Be careful when\n+00009380: 2063 686f 6f73 696e 6720 7468 6520 5454 choosing the TT\n+00009390: 4c20 7061 7261 6d65 7465 7220 6f66 2079 L parameter of y\n+000093a0: 6f75 7220 4950 206d 756c 7469 6361 7374 our IP multicast\n+000093b0: 0a20 2020 2020 736f 636b 6574 2e20 204d . socket. M\n+000093c0: 6f73 7420 4950 206d 756c 7469 6361 7374 ost IP multicast\n+000093d0: 2072 6f75 7465 7273 2064 6f20 696d 706c routers do impl\n+000093e0: 656d 656e 7420 7468 7265 7368 6f6c 642d ement threshold-\n+000093f0: 6261 7365 640a 2020 2020 2066 696c 7465 based. filte\n+00009400: 7269 6e67 2061 6e64 2077 696c 6c20 6e6f ring and will no\n+00009410: 7420 6c65 7420 4950 206d 756c 7469 6361 t let IP multica\n+00009420: 7374 2070 6163 6b65 7473 206c 6561 7665 st packets leave\n+00009430: 2079 6f75 720a 2020 2020 206f 7267 616e your. organ\n+00009440: 697a 6174 696f 6e20 6966 2074 6865 2054 ization if the T\n+00009450: 544c 206f 6e20 7468 6520 6c61 7374 2072 TL on the last r\n+00009460: 6f75 7465 7220 6973 2073 6d61 6c6c 6572 outer is smaller\n+00009470: 2074 6861 6e20 3136 2e0a 0a20 2020 2020 than 16... \n+00009480: 4966 2030 2069 7320 6769 7665 6e20 666f If 0 is given fo\n+00009490: 7220 7468 6520 506f 7274 2c20 6120 6c6f r the Port, a lo\n+000094a0: 6361 6c20 6f6e 6520 7769 6c6c 2062 6520 cal one will be \n+000094b0: 6368 6f73 656e 2e20 2049 7420 6361 6e0a chosen. It can.\n+000094c0: 2020 2020 2074 6865 6e20 6c61 7465 7220 then later \n+000094d0: 6265 2072 6574 7269 6576 6564 2075 7369 be retrieved usi\n+000094e0: 6e67 2047 6574 5f53 6f63 6b5f 506f 7274 ng Get_Sock_Port\n+000094f0: 2e0a 0a45 5841 4d50 4c45 0a20 2020 2020 ...EXAMPLE. \n+00009500: 2020 2020 2064 6563 6c61 7265 0a20 2020 declare. \n+00009510: 2020 2020 2020 2020 2020 536f 636b 203a Sock :\n+00009520: 204d 756c 7469 6361 7374 5f53 6f63 6b65 Multicast_Socke\n+00009530: 745f 4644 3b0a 2020 2020 2020 2020 2020 t_FD;. \n+00009540: 6265 6769 6e0a 2020 2020 2020 2020 2020 begin. \n+00009550: 2020 202d 2d20 4372 6561 7465 2061 206d -- Create a m\n+00009560: 756c 7469 6361 7374 2073 6f63 6b65 7420 ulticast socket \n+00009570: 6f6e 2067 726f 7570 2032 3234 2e31 2e32 on group 224.1.2\n+00009580: 2e33 2070 6f72 7420 3837 3633 0a20 2020 .3 port 8763. \n+00009590: 2020 2020 2020 2020 2020 536f 636b 203a Sock :\n+000095a0: 3d20 4372 6561 7465 5f4d 756c 7469 6361 = Create_Multica\n+000095b0: 7374 5f53 6f63 6b65 7420 2822 3232 342e st_Socket (\"224.\n+000095c0: 312e 322e 3322 2c20 3837 3633 293b 0a20 1.2.3\", 8763);. \n+000095d0: 2020 2020 2020 2020 2020 2020 2d2d 2050 -- P\n+000095e0: 6572 666f 726d 2073 6f6d 6520 6f70 6572 erform some oper\n+000095f0: 6174 696f 6e73 206f 6e20 736f 636b 6574 ations on socket\n+00009600: 0a20 2020 2020 2020 2020 2020 2020 5b2e . [.\n+00009610: 2e2e 5d0a 2020 2020 2020 2020 2020 2020 ..]. \n+00009620: 202d 2d20 5368 7574 646f 776e 2074 6865 -- Shutdown the\n+00009630: 2073 6f63 6b65 7420 696e 2062 6f74 6820 socket in both \n+00009640: 6469 7265 6374 696f 6e73 0a20 2020 2020 directions. \n+00009650: 2020 2020 2020 2020 5368 7574 646f 776e Shutdown\n+00009660: 2028 536f 636b 2c20 426f 7468 293b 0a20 (Sock, Both);. \n+00009670: 2020 2020 2020 2020 2065 6e64 3b0a 0a53 end;..S\n+00009680: 4545 2041 4c53 4f0a 2020 2020 202a 6e6f EE ALSO. *no\n+00009690: 7465 2053 656e 6420 2870 726f 6365 6475 te Send (procedu\n+000096a0: 7265 293a 3a2c 0a20 2020 2020 2a6e 6f74 re)::,. *not\n+000096b0: 6520 5368 7574 646f 776e 2028 7072 6f63 e Shutdown (proc\n+000096c0: 6564 7572 6529 3a3a 2e0a 0a2a 204d 656e edure)::...* Men\n+000096d0: 753a 0a0a 4372 6561 7465 5f4d 756c 7469 u:..Create_Multi\n+000096e0: 6361 7374 5f53 6f63 6b65 7420 2866 756e cast_Socket (fun\n+000096f0: 6374 696f 6e29 0a2d 2d2d 2d2d 2d2d 2d2d ction).---------\n+00009700: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+00009710: 2d2d 2d2d 2d2d 2d2d 2d0a 0a50 5552 504f ---------..PURPO\n+00009720: 5345 0a20 2020 2020 4372 6561 7465 2061 SE. Create a\n+00009730: 6e20 4950 206d 756c 7469 6361 7374 2073 n IP multicast s\n+00009740: 6f63 6b65 740a 5052 4f54 4f54 5950 450a ocket.PROTOTYPE.\n+00009750: 2020 2020 2020 2d2d 2053 6f63 6b65 7473 -- Sockets\n+00009760: 2e4d 756c 7469 6361 7374 2e43 7265 6174 .Multicast.Creat\n+00009770: 655f 4d75 6c74 6963 6173 745f 536f 636b e_Multicast_Sock\n+00009780: 6574 3a20 6675 6e63 7469 6f6e 0a20 2020 et: function. \n+00009790: 2020 2020 2020 2020 2020 2020 4372 6561 Crea\n+000097a0: 7465 5f4d 756c 7469 6361 7374 5f53 6f63 te_Multicast_Soc\n+000097b0: 6b65 7420 2847 524f 5550 203a 2053 7472 ket (GROUP : Str\n+000097c0: 696e 673b 2050 4f52 5420 3a20 506f 7369 ing; PORT : Posi\n+000097d0: 7469 7665 3b0a 2020 2020 2020 2020 2020 tive;. \n+000097e0: 2020 2020 204c 4f43 414c 5f50 4f52 5420 LOCAL_PORT \n+000097f0: 3a20 4e61 7475 7261 6c3b 2054 544c 203a : Natural; TTL :\n+00009800: 2050 6f73 6974 6976 6520 3a3d 2031 363b Positive := 16;\n+00009810: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+00009820: 4c4f 4341 4c5f 4946 203a 2053 7472 696e LOCAL_IF : Strin\n+00009830: 6720 3a3d 2030 2e30 2e30 2e30 290a 2020 g := 0.0.0.0). \n+00009840: 2020 2020 2020 2020 2020 2020 2072 6574 ret\n+00009850: 7572 6e20 4d75 6c74 6963 6173 745f 536f urn Multicast_So\n+00009860: 636b 6574 5f46 443b 0a0a 5041 5241 4d45 cket_FD;..PARAME\n+00009870: 5445 5253 0a20 2020 2020 4752 4f55 5020 TERS. GROUP \n+00009880: 2020 2020 2069 6e20 2020 2020 2020 2020 in \n+00009890: 4950 2061 6464 7265 7373 206f 6620 7468 IP address of th\n+000098a0: 6520 6d75 6c74 6963 6173 7420 6772 6f75 e multicast grou\n+000098b0: 7020 746f 0a20 2020 2020 2020 2020 2020 p to. \n+000098c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000098d0: 6a6f 696e 0a20 2020 2020 504f 5254 2020 join. PORT \n+000098e0: 2020 2020 2069 6e20 2020 2020 2020 2020 in \n+000098f0: 506f 7274 206f 6620 7468 6520 6d75 6c74 Port of the mult\n+00009900: 6963 6173 7420 6772 6f75 7020 746f 206a icast group to j\n+00009910: 6f69 6e0a 2020 2020 204c 4f43 414c 5f50 oin. LOCAL_P\n+00009920: 4f52 5420 696e 2020 2020 2020 2020 204c ORT in L\n+00009930: 6f63 616c 2070 6f72 7420 6e75 6d62 6572 ocal port number\n+00009940: 2074 6f20 7573 650a 2020 2020 2054 544c to use. TTL\n+00009950: 2020 2020 2020 2020 696e 2020 2020 2020 in \n+00009960: 2020 2054 696d 652d 746f 2d6c 6976 6520 Time-to-live \n+00009970: 6f66 2073 656e 7420 7061 636b 6574 730a of sent packets.\n+00009980: 2020 2020 204c 4f43 414c 5f49 4620 2020 LOCAL_IF \n+00009990: 696e 2020 2020 2020 2020 2041 6464 7265 in Addre\n+000099a0: 7373 206f 6620 7468 6520 6c6f 6361 6c20 ss of the local \n+000099b0: 696e 7465 7266 6163 6520 746f 2075 7365 interface to use\n+000099c0: 0a0a 5245 5455 524e 2056 414c 5545 0a20 ..RETURN VALUE. \n+000099d0: 2020 2020 5468 6520 6e65 7720 696e 6974 The new init\n+000099e0: 6961 6c69 7a65 6420 6d75 6c74 6963 6173 ialized multicas\n+000099f0: 7420 736f 636b 6574 0a0a 4445 5343 5249 t socket..DESCRI\n+00009a00: 5054 494f 4e0a 2020 2020 2054 6869 7320 PTION. This \n+00009a10: 6675 6e63 7469 6f6e 2063 7265 6174 6573 function creates\n+00009a20: 2061 6e20 4950 206d 756c 7469 6361 7374 an IP multicast\n+00009a30: 2073 6f63 6b65 7420 6174 7461 6368 6564 socket attached\n+00009a40: 2074 6f20 6120 6769 7665 6e0a 2020 2020 to a given. \n+00009a50: 2067 726f 7570 2c20 6964 656e 7469 6669 group, identifi\n+00009a60: 6564 2062 7920 6974 7320 636c 6173 7320 ed by its class \n+00009a70: 4520 4950 2061 6464 7265 7373 2061 6e64 E IP address and\n+00009a80: 2070 6f72 742e 2020 4966 0a20 2020 2020 port. If. \n+00009a90: 4c6f 6361 6c5f 506f 7274 2069 7320 302c Local_Port is 0,\n+00009aa0: 2061 2066 7265 6520 706f 7274 2077 696c a free port wil\n+00009ab0: 6c20 6175 746f 6d61 7469 6361 6c6c 7920 l automatically \n+00009ac0: 6265 2063 686f 7365 6e20 6279 2079 6f75 be chosen by you\n+00009ad0: 720a 2020 2020 206f 7065 7261 7469 6e67 r. operating\n+00009ae0: 2073 7973 7465 6d2e 0a0a 2020 2020 2054 system... T\n+00009af0: 6869 7320 6675 6e63 7469 6f6e 2073 686f his function sho\n+00009b00: 756c 6420 6265 2075 7365 6420 7768 656e uld be used when\n+00009b10: 2079 6f75 2077 616e 7420 746f 2073 656e you want to sen\n+00009b20: 6420 7061 636b 6574 7320 746f 2061 0a20 d packets to a. \n+00009b30: 2020 2020 6d75 6c74 6963 6173 7420 6772 multicast gr\n+00009b40: 6f75 7020 7769 7468 6f75 7420 7265 6365 oup without rece\n+00009b50: 6976 696e 6720 616e 7920 7061 636b 6574 iving any packet\n+00009b60: 2079 6f75 7273 656c 662e 0a0a 4558 414d yourself...EXAM\n+00009b70: 504c 450a 2020 2020 2020 2020 2020 6465 PLE. de\n+00009b80: 636c 6172 650a 2020 2020 2020 2020 2020 clare. \n+00009b90: 2020 2053 6f63 6b20 3a20 4d75 6c74 6963 Sock : Multic\n+00009ba0: 6173 745f 536f 636b 6574 5f46 443b 0a20 ast_Socket_FD;. \n+00009bb0: 2020 2020 2020 2020 2062 6567 696e 0a20 begin. \n+00009bc0: 2020 2020 2020 2020 2020 2020 2d2d 2043 -- C\n+00009bd0: 7265 6174 6520 6120 6d75 6c74 6963 6173 reate a multicas\n+00009be0: 7420 736f 636b 6574 206f 6e20 6772 6f75 t socket on grou\n+00009bf0: 7020 3232 342e 312e 322e 3320 706f 7274 p 224.1.2.3 port\n+00009c00: 2038 3736 330a 2020 2020 2020 2020 2020 8763. \n+00009c10: 2020 2053 6f63 6b20 3a3d 2043 7265 6174 Sock := Creat\n+00009c20: 655f 4d75 6c74 6963 6173 745f 536f 636b e_Multicast_Sock\n+00009c30: 6574 2028 2232 3234 2e31 2e32 2e33 222c et (\"224.1.2.3\",\n+00009c40: 2038 3736 3329 3b0a 2020 2020 2020 2020 8763);. \n+00009c50: 2020 2020 202d 2d20 5065 7266 6f72 6d20 -- Perform \n+00009c60: 736f 6d65 206f 7065 7261 7469 6f6e 7320 some operations \n+00009c70: 6f6e 2073 6f63 6b65 740a 2020 2020 2020 on socket. \n+00009c80: 2020 2020 2020 205b 2e2e 2e5d 0a20 2020 [...]. \n+00009c90: 2020 2020 2020 2020 2020 2d2d 2053 6875 -- Shu\n+00009ca0: 7464 6f77 6e20 7468 6520 736f 636b 6574 tdown the socket\n+00009cb0: 2069 6e20 626f 7468 2064 6972 6563 7469 in both directi\n+00009cc0: 6f6e 730a 2020 2020 2020 2020 2020 2020 ons. \n+00009cd0: 2053 6875 7464 6f77 6e20 2853 6f63 6b2c Shutdown (Sock,\n+00009ce0: 2042 6f74 6829 3b0a 2020 2020 2020 2020 Both);. \n+00009cf0: 2020 656e 643b 0a0a 5345 4520 414c 534f end;..SEE ALSO\n+00009d00: 0a20 2020 2020 2a6e 6f74 6520 5365 6e64 . *note Send\n+00009d10: 2028 7072 6f63 6564 7572 6529 3a3a 2c0a (procedure)::,.\n+00009d20: 2020 2020 202a 6e6f 7465 2053 6875 7464 *note Shutd\n+00009d30: 6f77 6e20 2870 726f 6365 6475 7265 293a own (procedure):\n+00009d40: 3a2e 0a0a 1f0a 4669 6c65 3a20 6164 6173 :.....File: adas\n+00009d50: 6f63 6b65 7473 2e69 6e66 6f2c 2020 4e6f ockets.info, No\n+00009d60: 6465 3a20 536f 636b 6574 732e 4e61 6d69 de: Sockets.Nami\n+00009d70: 6e67 2070 6163 6b61 6765 2c20 204e 6578 ng package, Nex\n+00009d80: 743a 2043 6f6e 7472 6962 7574 6f72 732c t: Contributors,\n+00009d90: 2020 5072 6576 3a20 536f 636b 6574 732e Prev: Sockets.\n+00009da0: 4d75 6c74 6963 6173 7420 7061 636b 6167 Multicast packag\n+00009db0: 652c 2020 5570 3a20 546f 700a 0a36 2053 e, Up: Top..6 S\n+00009dc0: 6f63 6b65 7473 2e4e 616d 696e 6720 7061 ockets.Naming pa\n+00009dd0: 636b 6167 650a 2a2a 2a2a 2a2a 2a2a 2a2a ckage.**********\n+00009de0: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 0a0a **************..\n+00009df0: 5468 6520 e280 9853 6f63 6b65 7473 2e4e The ...Sockets.N\n+00009e00: 616d 696e 67e2 8099 2070 6163 6b61 6765 aming... package\n+00009e10: 2063 6f6e 7461 696e 7320 7479 7065 7320 contains types \n+00009e20: 616e 6420 6865 6c70 6572 2066 756e 6374 and helper funct\n+00009e30: 696f 6e73 206e 6565 6465 640a 746f 206d ions needed.to m\n+00009e40: 616e 6970 756c 6174 6520 496e 7465 726e anipulate Intern\n+00009e50: 6574 2068 6f73 7420 6e61 6d65 7320 616e et host names an\n+00009e60: 6420 6164 6472 6573 7365 732e 0a0a 202d d addresses... -\n+00009e70: 2d20 536f 636b 6574 732e 4e61 6d69 6e67 - Sockets.Naming\n+00009e80: 2e41 6464 7265 7373 3a20 7479 7065 2041 .Address: type A\n+00009e90: 6464 7265 7373 2069 7320 7265 636f 7264 ddress is record\n+00009ea0: 0a20 2020 2020 2020 2020 2020 4831 2c20 . H1, \n+00009eb0: 4832 2c20 4833 2c20 4834 203a 2041 6464 H2, H3, H4 : Add\n+00009ec0: 7265 7373 5f43 6f6d 706f 6e65 6e74 3b0a ress_Component;.\n+00009ed0: 2020 2020 2020 2020 2020 656e 6420 7265 end re\n+00009ee0: 636f 7264 3b0a 2020 2020 2054 6869 7320 cord;. This \n+00009ef0: 7479 7065 2072 6570 7265 7365 6e74 7320 type represents \n+00009f00: 616e 2049 5076 3420 6164 6472 6573 7320 an IPv4 address \n+00009f10: 7769 7468 20e2 8098 4831 e280 9920 6265 with ...H1... be\n+00009f20: 696e 6720 7468 6520 6669 7273 740a 2020 ing the first. \n+00009f30: 2020 206f 6374 6574 2061 6e64 20e2 8098 octet and ...\n+00009f40: 4834 e280 9920 7468 6520 6c61 7374 206f H4... the last o\n+00009f50: 6e65 2e20 2046 6f72 2065 7861 6d70 6c65 ne. For example\n+00009f60: 2c20 3133 372e 3139 342e 3136 312e 3220 , 137.194.161.2 \n+00009f70: 6973 0a20 2020 2020 7265 7072 6573 656e is. represen\n+00009f80: 7465 6420 6279 20e2 8098 4831 3d31 3337 ted by ...H1=137\n+00009f90: 2c20 4832 3d31 3934 2c20 4833 3d31 3631 , H2=194, H3=161\n+00009fa0: 2c20 4834 3d32 e280 992e 0a0a 202d 2d20 , H4=2...... -- \n+00009fb0: 536f 636b 6574 732e 4e61 6d69 6e67 2e41 Sockets.Naming.A\n+00009fc0: 6464 7265 7373 5f41 7272 6179 3a20 7479 ddress_Array: ty\n+00009fd0: 7065 2041 6464 7265 7373 5f41 7272 6179 pe Address_Array\n+00009fe0: 2069 7320 6172 7261 7920 2850 6f73 6974 is array (Posit\n+00009ff0: 6976 650a 2020 2020 2020 2020 2020 7261 ive. ra\n+0000a000: 6e67 6520 3c3e 2920 6f66 2041 6464 7265 nge <>) of Addre\n+0000a010: 7373 3b0a 2020 2020 2048 656c 7065 7220 ss;. Helper \n+0000a020: 7479 7065 0a0a 202d 2d20 536f 636b 6574 type.. -- Socket\n+0000a030: 732e 4e61 6d69 6e67 2e41 6464 7265 7373 s.Naming.Address\n+0000a040: 5f43 6f6d 706f 6e65 6e74 3a20 7479 7065 _Component: type\n+0000a050: 2041 6464 7265 7373 5f43 6f6d 706f 6e65 Address_Compone\n+0000a060: 6e74 2069 7320 4e61 7475 7261 6c0a 2020 nt is Natural. \n+0000a070: 2020 2020 2020 2020 7261 6e67 6520 3020 range 0 \n+0000a080: 2e2e 2032 3535 3b0a 2020 2020 2048 656c .. 255;. Hel\n+0000a090: 7065 7220 7479 7065 0a0a 202d 2d20 536f per type.. -- So\n+0000a0a0: 636b 6574 732e 4e61 6d69 6e67 2e48 6f73 ckets.Naming.Hos\n+0000a0b0: 745f 456e 7472 793a 2074 7970 6520 486f t_Entry: type Ho\n+0000a0c0: 7374 5f45 6e74 7279 2028 4e5f 416c 6961 st_Entry (N_Alia\n+0000a0d0: 7365 732c 204e 5f41 6464 7265 7373 6573 ses, N_Addresses\n+0000a0e0: 203a 0a20 2020 2020 2020 2020 204e 6174 :. Nat\n+0000a0f0: 7572 616c 2920 6973 206e 6577 2041 6461 ural) is new Ada\n+0000a100: 2e46 696e 616c 697a 6174 696f 6e2e 436f .Finalization.Co\n+0000a110: 6e74 726f 6c6c 6564 2077 6974 6820 7265 ntrolled with re\n+0000a120: 636f 7264 0a20 2020 2020 2020 2020 2020 cord. \n+0000a130: 204e 616d 6520 3a20 5374 7269 6e67 5f41 Name : String_A\n+0000a140: 6363 6573 733b 0a20 2020 2020 2020 2020 ccess;. \n+0000a150: 2020 2041 6c69 6173 6573 203a 2053 7472 Aliases : Str\n+0000a160: 696e 675f 4172 7261 7920 2831 202e 2e20 ing_Array (1 .. \n+0000a170: 4e5f 416c 6961 7365 7329 3b0a 2020 2020 N_Aliases);. \n+0000a180: 2020 2020 2020 2020 4164 6472 6573 7365 Addresse\n+0000a190: 7320 3a20 4164 6472 6573 735f 4172 7261 s : Address_Arra\n+0000a1a0: 7920 2831 202e 2e20 4e5f 4164 6472 6573 y (1 .. N_Addres\n+0000a1b0: 7365 7329 3b0a 2020 2020 2020 2020 2020 ses);. \n+0000a1c0: 656e 6420 7265 636f 7264 3b0a 2020 2020 end record;. \n+0000a1d0: 2054 6865 20e2 8098 486f 7374 5f45 6e74 The ...Host_Ent\n+0000a1e0: 7279 e280 9920 7479 7065 2068 6f6c 6473 ry... type holds\n+0000a1f0: 2061 2073 6574 206f 6620 6e61 6d65 7320 a set of names \n+0000a200: 616e 6420 4950 2061 6464 7265 7373 6573 and IP addresses\n+0000a210: 0a20 2020 2020 6173 736f 6369 6174 6564 . associated\n+0000a220: 2077 6974 6820 6120 686f 7374 2e20 2045 with a host. E\n+0000a230: 6163 6820 686f 7374 2063 616e 2068 6176 ach host can hav\n+0000a240: 6520 7365 7665 7261 6c20 4950 2061 6464 e several IP add\n+0000a250: 7265 7373 2061 730a 2020 2020 2077 656c ress as. wel\n+0000a260: 6c20 6173 2073 6576 6572 616c 2061 6c69 l as several ali\n+0000a270: 6173 6573 2e0a 0a20 2d2d 2053 6f63 6b65 ases... -- Socke\n+0000a280: 7473 2e4e 616d 696e 672e 5374 7269 6e67 ts.Naming.String\n+0000a290: 5f41 6363 6573 733a 2074 7970 6520 5374 _Access: type St\n+0000a2a0: 7269 6e67 5f41 6363 6573 7320 6973 2061 ring_Access is a\n+0000a2b0: 6363 6573 7320 5374 7269 6e67 3b0a 2020 ccess String;. \n+0000a2c0: 2020 2048 656c 7065 7220 7479 7065 0a0a Helper type..\n+0000a2d0: 202d 2d20 536f 636b 6574 732e 4e61 6d69 -- Sockets.Nami\n+0000a2e0: 6e67 2e53 7472 696e 675f 4172 7261 793a ng.String_Array:\n+0000a2f0: 2074 7970 6520 5374 7269 6e67 5f41 7272 type String_Arr\n+0000a300: 6179 2069 7320 6172 7261 7920 2850 6f73 ay is array (Pos\n+0000a310: 6974 6976 650a 2020 2020 2020 2020 2020 itive. \n+0000a320: 7261 6e67 6520 3c3e 2920 6f66 2053 7472 range <>) of Str\n+0000a330: 696e 675f 4163 6365 7373 3b0a 2020 2020 ing_Access;. \n+0000a340: 2048 656c 7065 7220 7479 7065 0a0a 2a20 Helper type..* \n+0000a350: 4d65 6e75 3a0a 0a2a 2041 6464 7265 7373 Menu:..* Address\n+0000a360: 5f4f 6620 2866 756e 6374 696f 6e29 3a3a _Of (function)::\n+0000a370: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+0000a380: 2020 2020 2020 2020 2047 6574 2074 6865 Get the\n+0000a390: 2049 5020 6164 6472 6573 7320 6f66 2061 IP address of a\n+0000a3a0: 2068 6f73 740a 2a20 416e 795f 4164 6472 host.* Any_Addr\n+0000a3b0: 6573 7320 2866 756e 6374 696f 6e29 3a3a ess (function)::\n+0000a3c0: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+0000a3d0: 2020 2020 2020 2020 2053 7065 6369 616c Special\n+0000a3e0: 2061 6464 7265 7373 2072 6570 7265 7365 address represe\n+0000a3f0: 6e74 696e 6720 616e 7920 6164 6472 6573 nting any addres\n+0000a400: 7320 6f6e 2074 6865 206c 6f63 616c 2068 s on the local h\n+0000a410: 6f73 740a 2a20 4765 745f 5065 6572 5f41 ost.* Get_Peer_A\n+0000a420: 6464 7220 2866 756e 6374 696f 6e29 3a3a ddr (function)::\n+0000a430: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+0000a440: 2020 2020 2020 2020 2052 6574 7269 6576 Retriev\n+0000a450: 6520 4950 2061 6464 7265 7373 206f 6620 e IP address of \n+0000a460: 7265 6d6f 7465 2068 6f73 740a 2a20 4765 remote host.* Ge\n+0000a470: 745f 5065 6572 5f50 6f72 7420 2866 756e t_Peer_Port (fun\n+0000a480: 6374 696f 6e29 3a3a 0a20 2020 2020 2020 ction)::. \n+0000a490: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000a4a0: 2052 6574 7269 6576 6520 706f 7274 2075 Retrieve port u\n+0000a4b0: 7365 6420 6279 2072 656d 6f74 6520 686f sed by remote ho\n+0000a4c0: 7374 0a2a 2047 6574 5f53 6f63 6b5f 4164 st.* Get_Sock_Ad\n+0000a4d0: 6472 2028 6675 6e63 7469 6f6e 293a 3a0a dr (function)::.\n+0000a4e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000a4f0: 2020 2020 2020 2020 5265 7472 6965 7665 Retrieve\n+0000a500: 2049 5020 6164 6472 6573 7320 6f66 206c IP address of l\n+0000a510: 6f63 616c 2068 6f73 740a 2a20 4765 745f ocal host.* Get_\n+0000a520: 536f 636b 5f50 6f72 7420 2866 756e 6374 Sock_Port (funct\n+0000a530: 696f 6e29 3a3a 0a20 2020 2020 2020 2020 ion)::. \n+0000a540: 2020 2020 2020 2020 2020 2020 2020 2052 R\n+0000a550: 6574 7269 6576 6520 706f 7274 2075 7365 etrieve port use\n+0000a560: 6420 6279 206c 6f63 616c 2068 6f73 740a d by local host.\n+0000a570: 2a20 486f 7374 5f4e 616d 6520 2866 756e * Host_Name (fun\n+0000a580: 6374 696f 6e29 3a3a 0a20 2020 2020 2020 ction)::. \n+0000a590: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000a5a0: 2047 6574 2074 6865 206e 616d 6520 6f66 Get the name of\n+0000a5b0: 2074 6865 2063 7572 7265 6e74 2068 6f73 the current hos\n+0000a5c0: 740a 2a20 496d 6167 6520 2866 756e 6374 t.* Image (funct\n+0000a5d0: 696f 6e29 3a3a 2020 2020 4d61 6b65 2061 ion):: Make a\n+0000a5e0: 2073 7472 696e 6720 6672 6f6d 2061 6e20 string from an \n+0000a5f0: 6164 6472 6573 730a 2a20 496e 666f 5f4f address.* Info_O\n+0000a600: 665f 4e61 6d65 5f4f 725f 4950 2028 6675 f_Name_Or_IP (fu\n+0000a610: 6e63 7469 6f6e 293a 3a0a 2020 2020 2020 nction)::. \n+0000a620: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000a630: 2020 4765 7420 6164 6472 6573 7365 7320 Get addresses \n+0000a640: 616e 6420 6e61 6d65 7320 6f66 2061 2068 and names of a h\n+0000a650: 6f73 740a 2a20 4973 5f49 505f 4164 6472 ost.* Is_IP_Addr\n+0000a660: 6573 7320 2866 756e 6374 696f 6e29 3a3a ess (function)::\n+0000a670: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+0000a680: 2020 2020 2020 2020 2043 6865 636b 2069 Check i\n+0000a690: 6620 6769 7665 6e20 7374 7269 6e67 2069 f given string i\n+0000a6a0: 7320 6120 7661 6c69 6420 4950 2061 6464 s a valid IP add\n+0000a6b0: 7265 7373 0a2a 204e 616d 655f 4f66 2028 ress.* Name_Of (\n+0000a6c0: 6675 6e63 7469 6f6e 293a 3a20 204f 6666 function):: Off\n+0000a6d0: 6963 6961 6c20 6e61 6d65 206f 6620 7468 icial name of th\n+0000a6e0: 6520 686f 7374 0a2a 2056 616c 7565 2028 e host.* Value (\n+0000a6f0: 6675 6e63 7469 6f6e 293a 3a20 2020 2054 function):: T\n+0000a700: 7261 6e73 666f 726d 2061 2073 7472 696e ransform a strin\n+0000a710: 6720 696e 746f 2061 6e20 6164 6472 6573 g into an addres\n+0000a720: 730a 0a1f 0a46 696c 653a 2061 6461 736f s....File: adaso\n+0000a730: 636b 6574 732e 696e 666f 2c20 204e 6f64 ckets.info, Nod\n+0000a740: 653a 2041 6464 7265 7373 5f4f 6620 2866 e: Address_Of (f\n+0000a750: 756e 6374 696f 6e29 2c20 204e 6578 743a unction), Next:\n+0000a760: 2041 6e79 5f41 6464 7265 7373 2028 6675 Any_Address (fu\n+0000a770: 6e63 7469 6f6e 292c 2020 5570 3a20 536f nction), Up: So\n+0000a780: 636b 6574 732e 4e61 6d69 6e67 2070 6163 ckets.Naming pac\n+0000a790: 6b61 6765 0a0a 4164 6472 6573 735f 4f66 kage..Address_Of\n+0000a7a0: 2028 6675 6e63 7469 6f6e 290a 3d3d 3d3d (function).====\n+0000a7b0: 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d 3d3d ================\n+0000a7c0: 3d0a 0a50 5552 504f 5345 0a20 2020 2020 =..PURPOSE. \n+0000a7d0: 4765 7420 7468 6520 4950 2061 6464 7265 Get the IP addre\n+0000a7e0: 7373 206f 6620 6120 686f 7374 0a50 524f ss of a host.PRO\n+0000a7f0: 544f 5459 5045 0a20 2020 2020 202d 2d20 TOTYPE. -- \n+0000a800: 536f 636b 6574 732e 4e61 6d69 6e67 2e41 Sockets.Naming.A\n+0000a810: 6464 7265 7373 5f4f 663a 2066 756e 6374 ddress_Of: funct\n+0000a820: 696f 6e20 4164 6472 6573 735f 4f66 0a20 ion Address_Of. \n+0000a830: 2020 2020 2020 2020 2020 2020 2020 2853 (S\n+0000a840: 4f4d 4554 4849 4e47 203a 2053 7472 696e OMETHING : Strin\n+0000a850: 6729 0a20 2020 2020 2020 2020 2020 2020 g). \n+0000a860: 2020 7265 7475 726e 2041 6464 7265 7373 return Address\n+0000a870: 3b0a 0a50 4152 414d 4554 4552 530a 2020 ;..PARAMETERS. \n+0000a880: 2020 2053 4f4d 4554 4849 4e47 2020 696e SOMETHING in\n+0000a890: 2020 2020 2020 2020 2048 6f73 7420 6e61 Host na\n+0000a8a0: 6d65 206f 7220 4950 2061 6464 7265 7373 me or IP address\n+0000a8b0: 0a0a 5245 5455 524e 2056 414c 5545 0a20 ..RETURN VALUE. \n+0000a8c0: 2020 2020 4950 7634 2061 6464 7265 7373 IPv4 address\n+0000a8d0: 0a0a 4558 4345 5054 494f 4e53 0a20 2020 ..EXCEPTIONS. \n+0000a8e0: 2020 e280 984e 616d 696e 675f 4572 726f ...Naming_Erro\n+0000a8f0: 72e2 8099 2020 2020 204e 6f20 696e 666f r... No info\n+0000a900: 726d 6174 696f 6e20 6176 6169 6c61 626c rmation availabl\n+0000a910: 6520 666f 7220 7468 6973 206e 616d 6520 e for this name \n+0000a920: 6f72 0a20 2020 2020 2020 2020 2020 2020 or. \n+0000a930: 2020 2020 2020 2020 2020 2061 6464 7265 addre\n+0000a940: 7373 0a0a 5345 4520 414c 534f 0a20 2020 ss..SEE ALSO. \n+0000a950: 2020 2a6e 6f74 6520 4e61 6d65 5f4f 6620 *note Name_Of \n+0000a960: 2866 756e 6374 696f 6e29 3a3a 2e0a 0a2a (function)::...*\n+0000a970: 204d 656e 753a 0a0a 2a20 416e 795f 4164 Menu:..* Any_Ad\n+0000a980: 6472 6573 7320 2866 756e 6374 696f 6e29 dress (function)\n+0000a990: 3a3a 0a2a 2047 6574 5f50 6565 725f 4164 ::.* Get_Peer_Ad\n+0000a9a0: 6472 2028 6675 6e63 7469 6f6e 293a 3a0a dr (function)::.\n+0000a9b0: 2a20 4765 745f 5065 6572 5f50 6f72 7420 * Get_Peer_Port \n+0000a9c0: 2866 756e 6374 696f 6e29 3a3a 0a2a 2047 (function)::.* G\n+0000a9d0: 6574 5f53 6f63 6b5f 4164 6472 2028 6675 et_Sock_Addr (fu\n+0000a9e0: 6e63 7469 6f6e 293a 3a0a 2a20 4765 745f nction)::.* Get_\n+0000a9f0: 536f 636b 5f50 6f72 7420 2866 756e 6374 Sock_Port (funct\n+0000aa00: 696f 6e29 3a3a 0a2a 2048 6f73 745f 4e61 ion)::.* Host_Na\n+0000aa10: 6d65 2028 6675 6e63 7469 6f6e 293a 3a0a me (function)::.\n+0000aa20: 2a20 496d 6167 6520 2866 756e 6374 696f * Image (functio\n+0000aa30: 6e29 3a3a 0a2a 2049 6e66 6f5f 4f66 5f4e n)::.* Info_Of_N\n+0000aa40: 616d 655f 4f72 5f49 5020 2866 756e 6374 ame_Or_IP (funct\n+0000aa50: 696f 6e29 3a3a 0a2a 2049 735f 4950 5f41 ion)::.* Is_IP_A\n+0000aa60: 6464 7265 7373 2028 6675 6e63 7469 6f6e ddress (function\n+0000aa70: 293a 3a0a 2a20 4e61 6d65 5f4f 6620 2866 )::.* Name_Of (f\n+0000aa80: 756e 6374 696f 6e29 3a3a 0a2a 2056 616c unction)::.* Val\n+0000aa90: 7565 2028 6675 6e63 7469 6f6e 293a 3a0a ue (function)::.\n+0000aaa0: 0a1f 0a46 696c 653a 2061 6461 736f 636b ...File: adasock\n+0000aab0: 6574 732e 696e 666f 2c20 204e 6f64 653a ets.info, Node:\n+0000aac0: 2041 6e79 5f41 6464 7265 7373 2028 6675 Any_Address (fu\n+0000aad0: 6e63 7469 6f6e 292c 2020 4e65 7874 3a20 nction), Next: \n+0000aae0: 4765 745f 5065 6572 5f41 6464 7220 2866 Get_Peer_Addr (f\n+0000aaf0: 756e 6374 696f 6e29 2c20 2050 7265 763a unction), Prev:\n+0000ab00: 2041 6464 7265 7373 5f4f 6620 2866 756e Address_Of (fun\n+0000ab10: 6374 696f 6e29 2c20 2055 703a 2041 6464 ction), Up: Add\n+0000ab20: 7265 7373 5f4f 6620 2866 756e 6374 696f ress_Of (functio\n+0000ab30: 6e29 0a0a 416e 795f 4164 6472 6573 7320 n)..Any_Address \n+0000ab40: 2866 756e 6374 696f 6e29 0a2d 2d2d 2d2d (function).-----\n+0000ab50: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+0000ab60: 2d0a 0a50 5552 504f 5345 0a20 2020 2020 -..PURPOSE. \n+0000ab70: 5370 6563 6961 6c20 6164 6472 6573 7320 Special address \n+0000ab80: 7265 7072 6573 656e 7469 6e67 2061 6e79 representing any\n+0000ab90: 2061 6464 7265 7373 206f 6e20 7468 6520 address on the \n+0000aba0: 6c6f 6361 6c20 686f 7374 0a50 524f 544f local host.PROTO\n+0000abb0: 5459 5045 0a20 2020 2020 202d 2d20 536f TYPE. -- So\n+0000abc0: 636b 6574 732e 4e61 6d69 6e67 2e41 6e79 ckets.Naming.Any\n+0000abd0: 5f41 6464 7265 7373 3a20 6675 6e63 7469 _Address: functi\n+0000abe0: 6f6e 2041 6e79 5f41 6464 7265 7373 0a0a on Any_Address..\n+0000abf0: 5245 5455 524e 2056 414c 5545 0a20 2020 RETURN VALUE. \n+0000ac00: 2020 4571 7569 7661 6c65 6e74 2074 6f20 Equivalent to \n+0000ac10: e280 9849 4e41 4444 525f 414e 59e2 8099 ...INADDR_ANY...\n+0000ac20: 2069 6e20 7468 6520 4320 7072 6f67 7261 in the C progra\n+0000ac30: 6d6d 696e 6720 6c61 6e67 7561 6765 0a0a mming language..\n+0000ac40: 1f0a 4669 6c65 3a20 6164 6173 6f63 6b65 ..File: adasocke\n+0000ac50: 7473 2e69 6e66 6f2c 2020 4e6f 6465 3a20 ts.info, Node: \n+0000ac60: 4765 745f 5065 6572 5f41 6464 7220 2866 Get_Peer_Addr (f\n+0000ac70: 756e 6374 696f 6e29 2c20 204e 6578 743a unction), Next:\n+0000ac80: 2047 6574 5f50 6565 725f 506f 7274 2028 Get_Peer_Port (\n+0000ac90: 6675 6e63 7469 6f6e 292c 2020 5072 6576 function), Prev\n+0000aca0: 3a20 416e 795f 4164 6472 6573 7320 2866 : Any_Address (f\n+0000acb0: 756e 6374 696f 6e29 2c20 2055 703a 2041 unction), Up: A\n+0000acc0: 6464 7265 7373 5f4f 6620 2866 756e 6374 ddress_Of (funct\n+0000acd0: 696f 6e29 0a0a 4765 745f 5065 6572 5f41 ion)..Get_Peer_A\n+0000ace0: 6464 7220 2866 756e 6374 696f 6e29 0a2d ddr (function).-\n+0000acf0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+0000ad00: 2d2d 2d2d 2d2d 2d0a 0a50 5552 504f 5345 -------..PURPOSE\n+0000ad10: 0a20 2020 2020 5265 7472 6965 7665 2049 . Retrieve I\n+0000ad20: 5020 6164 6472 6573 7320 6f66 2072 656d P address of rem\n+0000ad30: 6f74 6520 686f 7374 0a50 524f 544f 5459 ote host.PROTOTY\n+0000ad40: 5045 0a20 2020 2020 202d 2d20 536f 636b PE. -- Sock\n+0000ad50: 6574 732e 4e61 6d69 6e67 2e47 6574 5f50 ets.Naming.Get_P\n+0000ad60: 6565 725f 4164 6472 3a20 6675 6e63 7469 eer_Addr: functi\n+0000ad70: 6f6e 2047 6574 5f50 6565 725f 4164 6472 on Get_Peer_Addr\n+0000ad80: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+0000ad90: 2853 4f43 4b45 5420 3a20 536f 636b 6574 (SOCKET : Socket\n+0000ada0: 5f46 4429 0a20 2020 2020 2020 2020 2020 _FD). \n+0000adb0: 2020 2020 7265 7475 726e 2041 6464 7265 return Addre\n+0000adc0: 7373 3b0a 0a50 4152 414d 4554 4552 530a ss;..PARAMETERS.\n+0000add0: 2020 2020 2053 4f43 4b45 5420 2020 2020 SOCKET \n+0000ade0: 696e 2020 2020 2020 2020 2043 6f6e 6e65 in Conne\n+0000adf0: 6374 6564 2073 6f63 6b65 7420 6f62 6a65 cted socket obje\n+0000ae00: 6374 0a0a 5245 5455 524e 2056 414c 5545 ct..RETURN VALUE\n+0000ae10: 0a20 2020 2020 5065 6572 2061 6464 7265 . Peer addre\n+0000ae20: 7373 0a0a 5345 4520 414c 534f 0a20 2020 ss..SEE ALSO. \n+0000ae30: 2020 2a6e 6f74 6520 4765 745f 5065 6572 *note Get_Peer\n+0000ae40: 5f50 6f72 7420 2866 756e 6374 696f 6e29 _Port (function)\n+0000ae50: 3a3a 2c0a 2020 2020 202a 6e6f 7465 2047 ::,. *note G\n+0000ae60: 6574 5f53 6f63 6b5f 4164 6472 2028 6675 et_Sock_Addr (fu\n+0000ae70: 6e63 7469 6f6e 293a 3a2e 0a0a 1f0a 4669 nction)::.....Fi\n+0000ae80: 6c65 3a20 6164 6173 6f63 6b65 7473 2e69 le: adasockets.i\n+0000ae90: 6e66 6f2c 2020 4e6f 6465 3a20 4765 745f nfo, Node: Get_\n+0000aea0: 5065 6572 5f50 6f72 7420 2866 756e 6374 Peer_Port (funct\n+0000aeb0: 696f 6e29 2c20 204e 6578 743a 2047 6574 ion), Next: Get\n+0000aec0: 5f53 6f63 6b5f 4164 6472 2028 6675 6e63 _Sock_Addr (func\n+0000aed0: 7469 6f6e 292c 2020 5072 6576 3a20 4765 tion), Prev: Ge\n+0000aee0: 745f 5065 6572 5f41 6464 7220 2866 756e t_Peer_Addr (fun\n+0000aef0: 6374 696f 6e29 2c20 2055 703a 2041 6464 ction), Up: Add\n+0000af00: 7265 7373 5f4f 6620 2866 756e 6374 696f ress_Of (functio\n+0000af10: 6e29 0a0a 4765 745f 5065 6572 5f50 6f72 n)..Get_Peer_Por\n+0000af20: 7420 2866 756e 6374 696f 6e29 0a2d 2d2d t (function).---\n+0000af30: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+0000af40: 2d2d 2d2d 2d0a 0a50 5552 504f 5345 0a20 -----..PURPOSE. \n+0000af50: 2020 2020 5265 7472 6965 7665 2070 6f72 Retrieve por\n+0000af60: 7420 7573 6564 2062 7920 7265 6d6f 7465 t used by remote\n+0000af70: 2068 6f73 740a 5052 4f54 4f54 5950 450a host.PROTOTYPE.\n+0000af80: 2020 2020 2020 2d2d 2053 6f63 6b65 7473 -- Sockets\n+0000af90: 2e4e 616d 696e 672e 4765 745f 5065 6572 .Naming.Get_Peer\n+0000afa0: 5f50 6f72 743a 2066 756e 6374 696f 6e20 _Port: function \n+0000afb0: 4765 745f 5065 6572 5f50 6f72 740a 2020 Get_Peer_Port. \n+0000afc0: 2020 2020 2020 2020 2020 2020 2028 534f (SO\n+0000afd0: 434b 4554 203a 2053 6f63 6b65 745f 4644 CKET : Socket_FD\n+0000afe0: 290a 2020 2020 2020 2020 2020 2020 2020 ). \n+0000aff0: 2072 6574 7572 6e20 506f 7369 7469 7665 return Positive\n+0000b000: 3b0a 0a50 4152 414d 4554 4552 530a 2020 ;..PARAMETERS. \n+0000b010: 2020 2053 4f43 4b45 5420 2020 2020 696e SOCKET in\n+0000b020: 2020 2020 2020 2020 2043 6f6e 6e65 6374 Connect\n+0000b030: 6564 2073 6f63 6b65 7420 6f62 6a65 6374 ed socket object\n+0000b040: 0a0a 5245 5455 524e 2056 414c 5545 0a20 ..RETURN VALUE. \n+0000b050: 2020 2020 506f 7274 2075 7365 6420 6f6e Port used on\n+0000b060: 2074 6865 2072 656d 6f74 6520 686f 7374 the remote host\n+0000b070: 0a0a 5345 4520 414c 534f 0a20 2020 2020 ..SEE ALSO. \n+0000b080: 2a6e 6f74 6520 4765 745f 536f 636b 5f50 *note Get_Sock_P\n+0000b090: 6f72 7420 2866 756e 6374 696f 6e29 3a3a ort (function)::\n+0000b0a0: 2c0a 2020 2020 202a 6e6f 7465 2047 6574 ,. *note Get\n+0000b0b0: 5f50 6565 725f 4164 6472 2028 6675 6e63 _Peer_Addr (func\n+0000b0c0: 7469 6f6e 293a 3a2e 0a0a 1f0a 4669 6c65 tion)::.....File\n+0000b0d0: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n+0000b0e0: 6f2c 2020 4e6f 6465 3a20 4765 745f 536f o, Node: Get_So\n+0000b0f0: 636b 5f41 6464 7220 2866 756e 6374 696f ck_Addr (functio\n+0000b100: 6e29 2c20 204e 6578 743a 2047 6574 5f53 n), Next: Get_S\n+0000b110: 6f63 6b5f 506f 7274 2028 6675 6e63 7469 ock_Port (functi\n+0000b120: 6f6e 292c 2020 5072 6576 3a20 4765 745f on), Prev: Get_\n+0000b130: 5065 6572 5f50 6f72 7420 2866 756e 6374 Peer_Port (funct\n+0000b140: 696f 6e29 2c20 2055 703a 2041 6464 7265 ion), Up: Addre\n+0000b150: 7373 5f4f 6620 2866 756e 6374 696f 6e29 ss_Of (function)\n+0000b160: 0a0a 4765 745f 536f 636b 5f41 6464 7220 ..Get_Sock_Addr \n+0000b170: 2866 756e 6374 696f 6e29 0a2d 2d2d 2d2d (function).-----\n+0000b180: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+0000b190: 2d2d 2d0a 0a50 5552 504f 5345 0a20 2020 ---..PURPOSE. \n+0000b1a0: 2020 5265 7472 6965 7665 2049 5020 6164 Retrieve IP ad\n+0000b1b0: 6472 6573 7320 6f66 206c 6f63 616c 2068 dress of local h\n+0000b1c0: 6f73 740a 5052 4f54 4f54 5950 450a 2020 ost.PROTOTYPE. \n+0000b1d0: 2020 2020 2d2d 2053 6f63 6b65 7473 2e4e -- Sockets.N\n+0000b1e0: 616d 696e 672e 4765 745f 536f 636b 5f41 aming.Get_Sock_A\n+0000b1f0: 6464 723a 2066 756e 6374 696f 6e20 4765 ddr: function Ge\n+0000b200: 745f 536f 636b 5f41 6464 720a 2020 2020 t_Sock_Addr. \n+0000b210: 2020 2020 2020 2020 2020 2028 534f 434b (SOCK\n+0000b220: 4554 203a 2053 6f63 6b65 745f 4644 290a ET : Socket_FD).\n+0000b230: 2020 2020 2020 2020 2020 2020 2020 2072 r\n+0000b240: 6574 7572 6e20 4164 6472 6573 733b 0a0a eturn Address;..\n+0000b250: 5041 5241 4d45 5445 5253 0a20 2020 2020 PARAMETERS. \n+0000b260: 534f 434b 4554 2020 2020 2069 6e20 2020 SOCKET in \n+0000b270: 2020 2020 2020 436f 6e6e 6563 7465 6420 Connected \n+0000b280: 736f 636b 6574 206f 626a 6563 740a 0a52 socket object..R\n+0000b290: 4554 5552 4e20 5641 4c55 450a 2020 2020 ETURN VALUE. \n+0000b2a0: 2041 6464 7265 7373 206f 6620 6c6f 6361 Address of loca\n+0000b2b0: 6c20 696e 7465 7266 6163 6520 7573 6564 l interface used\n+0000b2c0: 0a0a 5345 4520 414c 534f 0a20 2020 2020 ..SEE ALSO. \n+0000b2d0: 2a6e 6f74 6520 4765 745f 536f 636b 5f50 *note Get_Sock_P\n+0000b2e0: 6f72 7420 2866 756e 6374 696f 6e29 3a3a ort (function)::\n+0000b2f0: 2c0a 2020 2020 202a 6e6f 7465 2047 6574 ,. *note Get\n+0000b300: 5f50 6565 725f 4164 6472 2028 6675 6e63 _Peer_Addr (func\n+0000b310: 7469 6f6e 293a 3a2e 0a0a 1f0a 4669 6c65 tion)::.....File\n+0000b320: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n+0000b330: 6f2c 2020 4e6f 6465 3a20 4765 745f 536f o, Node: Get_So\n+0000b340: 636b 5f50 6f72 7420 2866 756e 6374 696f ck_Port (functio\n+0000b350: 6e29 2c20 204e 6578 743a 2048 6f73 745f n), Next: Host_\n+0000b360: 4e61 6d65 2028 6675 6e63 7469 6f6e 292c Name (function),\n+0000b370: 2020 5072 6576 3a20 4765 745f 536f 636b Prev: Get_Sock\n+0000b380: 5f41 6464 7220 2866 756e 6374 696f 6e29 _Addr (function)\n+0000b390: 2c20 2055 703a 2041 6464 7265 7373 5f4f , Up: Address_O\n+0000b3a0: 6620 2866 756e 6374 696f 6e29 0a0a 4765 f (function)..Ge\n+0000b3b0: 745f 536f 636b 5f50 6f72 7420 2866 756e t_Sock_Port (fun\n+0000b3c0: 6374 696f 6e29 0a2d 2d2d 2d2d 2d2d 2d2d ction).---------\n+0000b3d0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a ---------------.\n+0000b3e0: 0a50 5552 504f 5345 0a20 2020 2020 5265 .PURPOSE. Re\n+0000b3f0: 7472 6965 7665 2070 6f72 7420 7573 6564 trieve port used\n+0000b400: 2062 7920 6c6f 6361 6c20 686f 7374 0a50 by local host.P\n+0000b410: 524f 544f 5459 5045 0a20 2020 2020 202d ROTOTYPE. -\n+0000b420: 2d20 536f 636b 6574 732e 4e61 6d69 6e67 - Sockets.Naming\n+0000b430: 2e47 6574 5f53 6f63 6b5f 506f 7274 3a20 .Get_Sock_Port: \n+0000b440: 6675 6e63 7469 6f6e 2047 6574 5f53 6f63 function Get_Soc\n+0000b450: 6b5f 506f 7274 0a20 2020 2020 2020 2020 k_Port. \n+0000b460: 2020 2020 2020 2853 4f43 4b45 5420 3a20 (SOCKET : \n+0000b470: 536f 636b 6574 5f46 4429 0a20 2020 2020 Socket_FD). \n+0000b480: 2020 2020 2020 2020 2020 7265 7475 726e return\n+0000b490: 2050 6f73 6974 6976 653b 0a0a 5041 5241 Positive;..PARA\n+0000b4a0: 4d45 5445 5253 0a20 2020 2020 534f 434b METERS. SOCK\n+0000b4b0: 4554 2020 2020 2069 6e20 2020 2020 2020 ET in \n+0000b4c0: 2020 436f 6e6e 6563 7465 6420 736f 636b Connected sock\n+0000b4d0: 6574 206f 626a 6563 740a 0a52 4554 5552 et object..RETUR\n+0000b4e0: 4e20 5641 4c55 450a 2020 2020 2050 6f72 N VALUE. Por\n+0000b4f0: 7420 7573 6564 206f 6e20 7468 6520 6c6f t used on the lo\n+0000b500: 6361 6c20 686f 7374 0a0a 5345 4520 414c cal host..SEE AL\n+0000b510: 534f 0a20 2020 2020 2a6e 6f74 6520 4765 SO. *note Ge\n+0000b520: 745f 5065 6572 5f50 6f72 7420 2866 756e t_Peer_Port (fun\n+0000b530: 6374 696f 6e29 3a3a 2c0a 2020 2020 202a ction)::,. *\n+0000b540: 6e6f 7465 2047 6574 5f53 6f63 6b5f 4164 note Get_Sock_Ad\n+0000b550: 6472 2028 6675 6e63 7469 6f6e 293a 3a2e dr (function)::.\n+0000b560: 0a0a 1f0a 4669 6c65 3a20 6164 6173 6f63 ....File: adasoc\n+0000b570: 6b65 7473 2e69 6e66 6f2c 2020 4e6f 6465 kets.info, Node\n+0000b580: 3a20 486f 7374 5f4e 616d 6520 2866 756e : Host_Name (fun\n+0000b590: 6374 696f 6e29 2c20 204e 6578 743a 2049 ction), Next: I\n+0000b5a0: 6d61 6765 2028 6675 6e63 7469 6f6e 292c mage (function),\n+0000b5b0: 2020 5072 6576 3a20 4765 745f 536f 636b Prev: Get_Sock\n+0000b5c0: 5f50 6f72 7420 2866 756e 6374 696f 6e29 _Port (function)\n+0000b5d0: 2c20 2055 703a 2041 6464 7265 7373 5f4f , Up: Address_O\n+0000b5e0: 6620 2866 756e 6374 696f 6e29 0a0a 486f f (function)..Ho\n+0000b5f0: 7374 5f4e 616d 6520 2866 756e 6374 696f st_Name (functio\n+0000b600: 6e29 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d n).-------------\n+0000b610: 2d2d 2d2d 2d2d 2d0a 0a50 5552 504f 5345 -------..PURPOSE\n+0000b620: 0a20 2020 2020 4765 7420 7468 6520 6e61 . Get the na\n+0000b630: 6d65 206f 6620 7468 6520 6375 7272 656e me of the curren\n+0000b640: 7420 686f 7374 0a50 524f 544f 5459 5045 t host.PROTOTYPE\n+0000b650: 0a20 2020 2020 202d 2d20 536f 636b 6574 . -- Socket\n+0000b660: 732e 4e61 6d69 6e67 2e48 6f73 745f 4e61 s.Naming.Host_Na\n+0000b670: 6d65 3a20 6675 6e63 7469 6f6e 2048 6f73 me: function Hos\n+0000b680: 745f 4e61 6d65 0a0a 5245 5455 524e 2056 t_Name..RETURN V\n+0000b690: 414c 5545 0a20 2020 2020 4e61 6d65 206f ALUE. Name o\n+0000b6a0: 6620 7468 6520 6375 7272 656e 7420 686f f the current ho\n+0000b6b0: 7374 0a0a 4445 5343 5249 5054 494f 4e0a st..DESCRIPTION.\n+0000b6c0: 2020 2020 2054 6869 7320 6675 6e63 7469 This functi\n+0000b6d0: 6f6e 2072 6574 7572 6e73 2074 6865 206e on returns the n\n+0000b6e0: 616d 6520 6f66 2074 6865 2063 7572 7265 ame of the curre\n+0000b6f0: 6e74 2068 6f73 742e 2020 4465 7065 6e64 nt host. Depend\n+0000b700: 696e 6720 6f6e 0a20 2020 2020 7468 6520 ing on. the \n+0000b710: 6c6f 6361 6c20 636f 6e66 6967 7572 6174 local configurat\n+0000b720: 696f 6e2c 2069 7420 6d61 7920 6f72 206d ion, it may or m\n+0000b730: 6179 206e 6f74 2062 6520 6120 6675 6c6c ay not be a full\n+0000b740: 7920 7175 616c 6966 6965 640a 2020 2020 y qualified. \n+0000b750: 2064 6f6d 6169 6e20 6e61 6d65 2028 4651 domain name (FQ\n+0000b760: 444e 292e 0a0a 1f0a 4669 6c65 3a20 6164 DN).....File: ad\n+0000b770: 6173 6f63 6b65 7473 2e69 6e66 6f2c 2020 asockets.info, \n+0000b780: 4e6f 6465 3a20 496d 6167 6520 2866 756e Node: Image (fun\n+0000b790: 6374 696f 6e29 2c20 204e 6578 743a 2049 ction), Next: I\n+0000b7a0: 6e66 6f5f 4f66 5f4e 616d 655f 4f72 5f49 nfo_Of_Name_Or_I\n+0000b7b0: 5020 2866 756e 6374 696f 6e29 2c20 2050 P (function), P\n+0000b7c0: 7265 763a 2048 6f73 745f 4e61 6d65 2028 rev: Host_Name (\n+0000b7d0: 6675 6e63 7469 6f6e 292c 2020 5570 3a20 function), Up: \n+0000b7e0: 4164 6472 6573 735f 4f66 2028 6675 6e63 Address_Of (func\n+0000b7f0: 7469 6f6e 290a 0a49 6d61 6765 2028 6675 tion)..Image (fu\n+0000b800: 6e63 7469 6f6e 290a 2d2d 2d2d 2d2d 2d2d nction).--------\n+0000b810: 2d2d 2d2d 2d2d 2d2d 0a0a 5055 5250 4f53 --------..PURPOS\n+0000b820: 450a 2020 2020 204d 616b 6520 6120 7374 E. Make a st\n+0000b830: 7269 6e67 2066 726f 6d20 616e 2061 6464 ring from an add\n+0000b840: 7265 7373 0a50 524f 544f 5459 5045 0a20 ress.PROTOTYPE. \n+0000b850: 2020 2020 202d 2d20 536f 636b 6574 732e -- Sockets.\n+0000b860: 4e61 6d69 6e67 2e49 6d61 6765 3a20 6675 Naming.Image: fu\n+0000b870: 6e63 7469 6f6e 2049 6d61 6765 2028 4144 nction Image (AD\n+0000b880: 4420 3a20 4164 6472 6573 7329 0a20 2020 D : Address). \n+0000b890: 2020 2020 2020 2020 2020 2020 7265 7475 retu\n+0000b8a0: 726e 2053 7472 696e 673b 0a0a 5041 5241 rn String;..PARA\n+0000b8b0: 4d45 5445 5253 0a20 2020 2020 4144 4420 METERS. ADD \n+0000b8c0: 2020 2020 2020 2069 6e20 2020 2020 2020 in \n+0000b8d0: 2020 4950 2061 6464 7265 7373 0a0a 5245 IP address..RE\n+0000b8e0: 5455 524e 2056 414c 5545 0a20 2020 2020 TURN VALUE. \n+0000b8f0: 5374 7269 6e67 2072 6570 7265 7365 6e74 String represent\n+0000b900: 6174 696f 6e20 6f66 2074 6865 2049 5020 ation of the IP \n+0000b910: 6164 6472 6573 730a 0a53 4545 2041 4c53 address..SEE ALS\n+0000b920: 4f0a 2020 2020 202a 6e6f 7465 2056 616c O. *note Val\n+0000b930: 7565 2028 6675 6e63 7469 6f6e 293a 3a2e ue (function)::.\n+0000b940: 0a0a 1f0a 4669 6c65 3a20 6164 6173 6f63 ....File: adasoc\n+0000b950: 6b65 7473 2e69 6e66 6f2c 2020 4e6f 6465 kets.info, Node\n+0000b960: 3a20 496e 666f 5f4f 665f 4e61 6d65 5f4f : Info_Of_Name_O\n+0000b970: 725f 4950 2028 6675 6e63 7469 6f6e 292c r_IP (function),\n+0000b980: 2020 4e65 7874 3a20 4973 5f49 505f 4164 Next: Is_IP_Ad\n+0000b990: 6472 6573 7320 2866 756e 6374 696f 6e29 dress (function)\n+0000b9a0: 2c20 2050 7265 763a 2049 6d61 6765 2028 , Prev: Image (\n+0000b9b0: 6675 6e63 7469 6f6e 292c 2020 5570 3a20 function), Up: \n+0000b9c0: 4164 6472 6573 735f 4f66 2028 6675 6e63 Address_Of (func\n+0000b9d0: 7469 6f6e 290a 0a49 6e66 6f5f 4f66 5f4e tion)..Info_Of_N\n+0000b9e0: 616d 655f 4f72 5f49 5020 2866 756e 6374 ame_Or_IP (funct\n+0000b9f0: 696f 6e29 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d ion).-----------\n+0000ba00: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+0000ba10: 2d2d 0a0a 5055 5250 4f53 450a 2020 2020 --..PURPOSE. \n+0000ba20: 2047 6574 2061 6464 7265 7373 6573 2061 Get addresses a\n+0000ba30: 6e64 206e 616d 6573 206f 6620 6120 686f nd names of a ho\n+0000ba40: 7374 0a50 524f 544f 5459 5045 0a20 2020 st.PROTOTYPE. \n+0000ba50: 2020 202d 2d20 536f 636b 6574 732e 4e61 -- Sockets.Na\n+0000ba60: 6d69 6e67 2e49 6e66 6f5f 4f66 5f4e 616d ming.Info_Of_Nam\n+0000ba70: 655f 4f72 5f49 503a 2066 756e 6374 696f e_Or_IP: functio\n+0000ba80: 6e20 496e 666f 5f4f 665f 4e61 6d65 5f4f n Info_Of_Name_O\n+0000ba90: 725f 4950 0a20 2020 2020 2020 2020 2020 r_IP. \n+0000baa0: 2020 2020 2853 4f4d 4554 4849 4e47 203a (SOMETHING :\n+0000bab0: 2053 7472 696e 6729 0a20 2020 2020 2020 String). \n+0000bac0: 2020 2020 2020 2020 7265 7475 726e 2048 return H\n+0000bad0: 6f73 745f 456e 7472 793b 0a0a 5041 5241 ost_Entry;..PARA\n+0000bae0: 4d45 5445 5253 0a20 2020 2020 534f 4d45 METERS. SOME\n+0000baf0: 5448 494e 4720 2069 6e20 2020 2020 2020 THING in \n+0000bb00: 2020 486f 7374 206e 616d 6520 6f72 2049 Host name or I\n+0000bb10: 5020 6164 6472 6573 730a 0a52 4554 5552 P address..RETUR\n+0000bb20: 4e20 5641 4c55 450a 2020 2020 2043 6f72 N VALUE. Cor\n+0000bb30: 7265 7370 6f6e 6469 6e67 2068 6f73 7420 responding host \n+0000bb40: 656e 7472 790a 0a44 4553 4352 4950 5449 entry..DESCRIPTI\n+0000bb50: 4f4e 0a20 2020 2020 5468 6973 2066 756e ON. This fun\n+0000bb60: 6374 696f 6e20 6578 7472 6163 7473 2061 ction extracts a\n+0000bb70: 6c6c 2074 6865 206e 616d 6573 2061 6e64 ll the names and\n+0000bb80: 2061 6464 7265 7373 6573 2066 726f 6d20 addresses from \n+0000bb90: 7468 6520 6e61 6d69 6e67 0a20 2020 2020 the naming. \n+0000bba0: 7365 7276 6963 652e 0a0a 4558 4345 5054 service...EXCEPT\n+0000bbb0: 494f 4e53 0a20 2020 2020 e280 984e 616d IONS. ...Nam\n+0000bbc0: 696e 675f 4572 726f 72e2 8099 2020 2020 ing_Error... \n+0000bbd0: 204e 6f20 696e 666f 726d 6174 696f 6e20 No information \n+0000bbe0: 6176 6169 6c61 626c 6520 666f 7220 7468 available for th\n+0000bbf0: 6973 206e 616d 6520 6f72 0a20 2020 2020 is name or. \n+0000bc00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000bc10: 2020 2061 6464 7265 7373 0a0a 1f0a 4669 address....Fi\n+0000bc20: 6c65 3a20 6164 6173 6f63 6b65 7473 2e69 le: adasockets.i\n+0000bc30: 6e66 6f2c 2020 4e6f 6465 3a20 4973 5f49 nfo, Node: Is_I\n+0000bc40: 505f 4164 6472 6573 7320 2866 756e 6374 P_Address (funct\n+0000bc50: 696f 6e29 2c20 204e 6578 743a 204e 616d ion), Next: Nam\n+0000bc60: 655f 4f66 2028 6675 6e63 7469 6f6e 292c e_Of (function),\n+0000bc70: 2020 5072 6576 3a20 496e 666f 5f4f 665f Prev: Info_Of_\n+0000bc80: 4e61 6d65 5f4f 725f 4950 2028 6675 6e63 Name_Or_IP (func\n+0000bc90: 7469 6f6e 292c 2020 5570 3a20 4164 6472 tion), Up: Addr\n+0000bca0: 6573 735f 4f66 2028 6675 6e63 7469 6f6e ess_Of (function\n+0000bcb0: 290a 0a49 735f 4950 5f41 6464 7265 7373 )..Is_IP_Address\n+0000bcc0: 2028 6675 6e63 7469 6f6e 290a 2d2d 2d2d (function).----\n+0000bcd0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d ----------------\n+0000bce0: 2d2d 2d2d 0a0a 5055 5250 4f53 450a 2020 ----..PURPOSE. \n+0000bcf0: 2020 2043 6865 636b 2069 6620 6769 7665 Check if give\n+0000bd00: 6e20 7374 7269 6e67 2069 7320 6120 7661 n string is a va\n+0000bd10: 6c69 6420 4950 2061 6464 7265 7373 0a50 lid IP address.P\n+0000bd20: 524f 544f 5459 5045 0a20 2020 2020 202d ROTOTYPE. -\n+0000bd30: 2d20 536f 636b 6574 732e 4e61 6d69 6e67 - Sockets.Naming\n+0000bd40: 2e49 735f 4950 5f41 6464 7265 7373 3a20 .Is_IP_Address: \n+0000bd50: 6675 6e63 7469 6f6e 2049 735f 4950 5f41 function Is_IP_A\n+0000bd60: 6464 7265 7373 0a20 2020 2020 2020 2020 ddress. \n+0000bd70: 2020 2020 2020 2853 4f4d 4554 4849 4e47 (SOMETHING\n+0000bd80: 203a 2053 7472 696e 6729 0a20 2020 2020 : String). \n+0000bd90: 2020 2020 2020 2020 2020 7265 7475 726e return\n+0000bda0: 2042 6f6f 6c65 616e 3b0a 0a50 4152 414d Boolean;..PARAM\n+0000bdb0: 4554 4552 530a 2020 2020 2053 4f4d 4554 ETERS. SOMET\n+0000bdc0: 4849 4e47 2020 696e 2020 2020 2020 2020 HING in \n+0000bdd0: 2053 7472 696e 6720 746f 2063 6865 636b String to check\n+0000bde0: 0a0a 5245 5455 524e 2056 414c 5545 0a20 ..RETURN VALUE. \n+0000bdf0: 2020 2020 e280 9854 7275 65e2 8099 2069 ...True... i\n+0000be00: 6620 534f 4d45 5448 494e 4720 6973 2061 f SOMETHING is a\n+0000be10: 6e20 4950 2061 6464 7265 7373 0a0a 1f0a n IP address....\n+0000be20: 4669 6c65 3a20 6164 6173 6f63 6b65 7473 File: adasockets\n+0000be30: 2e69 6e66 6f2c 2020 4e6f 6465 3a20 4e61 .info, Node: Na\n+0000be40: 6d65 5f4f 6620 2866 756e 6374 696f 6e29 me_Of (function)\n+0000be50: 2c20 204e 6578 743a 2056 616c 7565 2028 , Next: Value (\n+0000be60: 6675 6e63 7469 6f6e 292c 2020 5072 6576 function), Prev\n+0000be70: 3a20 4973 5f49 505f 4164 6472 6573 7320 : Is_IP_Address \n+0000be80: 2866 756e 6374 696f 6e29 2c20 2055 703a (function), Up:\n+0000be90: 2041 6464 7265 7373 5f4f 6620 2866 756e Address_Of (fun\n+0000bea0: 6374 696f 6e29 0a0a 4e61 6d65 5f4f 6620 ction)..Name_Of \n+0000beb0: 2866 756e 6374 696f 6e29 0a2d 2d2d 2d2d (function).-----\n+0000bec0: 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d0a 0a50 -------------..P\n+0000bed0: 5552 504f 5345 0a20 2020 2020 4f66 6669 URPOSE. Offi\n+0000bee0: 6369 616c 206e 616d 6520 6f66 2074 6865 cial name of the\n+0000bef0: 2068 6f73 740a 5052 4f54 4f54 5950 450a host.PROTOTYPE.\n+0000bf00: 2020 2020 2020 2d2d 2053 6f63 6b65 7473 -- Sockets\n+0000bf10: 2e4e 616d 696e 672e 4e61 6d65 5f4f 663a .Naming.Name_Of:\n+0000bf20: 2066 756e 6374 696f 6e20 4e61 6d65 5f4f function Name_O\n+0000bf30: 6620 2853 4f4d 4554 4849 4e47 203a 2053 f (SOMETHING : S\n+0000bf40: 7472 696e 6729 0a20 2020 2020 2020 2020 tring). \n+0000bf50: 2020 2020 2020 7265 7475 726e 2053 7472 return Str\n+0000bf60: 696e 673b 0a0a 5041 5241 4d45 5445 5253 ing;..PARAMETERS\n+0000bf70: 0a20 2020 2020 534f 4d45 5448 494e 4720 . SOMETHING \n+0000bf80: 2069 6e20 2020 2020 2020 2020 486f 7374 in Host\n+0000bf90: 206e 616d 6520 6f72 2049 5020 6164 6472 name or IP addr\n+0000bfa0: 6573 730a 0a52 4554 5552 4e20 5641 4c55 ess..RETURN VALU\n+0000bfb0: 450a 2020 2020 204e 616d 6520 6f66 2074 E. Name of t\n+0000bfc0: 6865 2068 6f73 740a 0a45 5843 4550 5449 he host..EXCEPTI\n+0000bfd0: 4f4e 530a 2020 2020 20e2 8098 4e61 6d69 ONS. ...Nami\n+0000bfe0: 6e67 5f45 7272 6f72 e280 9920 2020 2020 ng_Error... \n+0000bff0: 4e6f 2069 6e66 6f72 6d61 7469 6f6e 2061 No information a\n+0000c000: 7661 696c 6162 6c65 2066 6f72 2074 6869 vailable for thi\n+0000c010: 7320 6e61 6d65 206f 720a 2020 2020 2020 s name or. \n+0000c020: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000c030: 2020 6164 6472 6573 730a 0a53 4545 2041 address..SEE A\n+0000c040: 4c53 4f0a 2020 2020 202a 6e6f 7465 2041 LSO. *note A\n+0000c050: 6464 7265 7373 5f4f 6620 2866 756e 6374 ddress_Of (funct\n+0000c060: 696f 6e29 3a3a 2e0a 0a1f 0a46 696c 653a ion)::.....File:\n+0000c070: 2061 6461 736f 636b 6574 732e 696e 666f adasockets.info\n+0000c080: 2c20 204e 6f64 653a 2056 616c 7565 2028 , Node: Value (\n+0000c090: 6675 6e63 7469 6f6e 292c 2020 5072 6576 function), Prev\n+0000c0a0: 3a20 4e61 6d65 5f4f 6620 2866 756e 6374 : Name_Of (funct\n+0000c0b0: 696f 6e29 2c20 2055 703a 2041 6464 7265 ion), Up: Addre\n+0000c0c0: 7373 5f4f 6620 2866 756e 6374 696f 6e29 ss_Of (function)\n+0000c0d0: 0a0a 5661 6c75 6520 2866 756e 6374 696f ..Value (functio\n+0000c0e0: 6e29 0a2d 2d2d 2d2d 2d2d 2d2d 2d2d 2d2d n).-------------\n+0000c0f0: 2d2d 2d0a 0a50 5552 504f 5345 0a20 2020 ---..PURPOSE. \n+0000c100: 2020 5472 616e 7366 6f72 6d20 6120 7374 Transform a st\n+0000c110: 7269 6e67 2069 6e74 6f20 616e 2061 6464 ring into an add\n+0000c120: 7265 7373 0a50 524f 544f 5459 5045 0a20 ress.PROTOTYPE. \n+0000c130: 2020 2020 202d 2d20 536f 636b 6574 732e -- Sockets.\n+0000c140: 4e61 6d69 6e67 2e56 616c 7565 3a20 6675 Naming.Value: fu\n+0000c150: 6e63 7469 6f6e 2056 616c 7565 2028 4144 nction Value (AD\n+0000c160: 4420 3a20 5374 7269 6e67 290a 2020 2020 D : String). \n+0000c170: 2020 2020 2020 2020 2020 2072 6574 7572 retur\n+0000c180: 6e20 4164 6472 6573 733b 0a0a 5041 5241 n Address;..PARA\n+0000c190: 4d45 5445 5253 0a20 2020 2020 4144 4420 METERS. ADD \n+0000c1a0: 2020 2020 2020 2069 6e20 2020 2020 2020 in \n+0000c1b0: 2020 5465 7874 7561 6c20 7265 7072 6573 Textual repres\n+0000c1c0: 656e 7461 7469 6f6e 206f 6620 616e 2049 entation of an I\n+0000c1d0: 5020 6164 6472 6573 730a 0a52 4554 5552 P address..RETUR\n+0000c1e0: 4e20 5641 4c55 450a 2020 2020 2043 6f72 N VALUE. Cor\n+0000c1f0: 7265 7370 6f6e 6469 6e67 2041 6464 7265 responding Addre\n+0000c200: 7373 0a0a 5345 4520 414c 534f 0a20 2020 ss..SEE ALSO. \n+0000c210: 2020 2a6e 6f74 6520 496d 6167 6520 2866 *note Image (f\n+0000c220: 756e 6374 696f 6e29 3a3a 2e0a 0a1f 0a46 unction)::.....F\n+0000c230: 696c 653a 2061 6461 736f 636b 6574 732e ile: adasockets.\n+0000c240: 696e 666f 2c20 204e 6f64 653a 2043 6f6e info, Node: Con\n+0000c250: 7472 6962 7574 6f72 732c 2020 4e65 7874 tributors, Next\n+0000c260: 3a20 5265 736f 7572 6365 7320 6f6e 2074 : Resources on t\n+0000c270: 6865 2049 6e74 6572 6e65 742c 2020 5072 he Internet, Pr\n+0000c280: 6576 3a20 536f 636b 6574 732e 4e61 6d69 ev: Sockets.Nami\n+0000c290: 6e67 2070 6163 6b61 6765 2c20 2055 703a ng package, Up:\n+0000c2a0: 2054 6f70 0a0a 4170 7065 6e64 6978 2041 Top..Appendix A\n+0000c2b0: 2043 6f6e 7472 6962 7574 6f72 730a 2a2a Contributors.**\n+0000c2c0: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a ****************\n+0000c2d0: 2a2a 2a2a 2a0a 0a41 6461 536f 636b 6574 *****..AdaSocket\n+0000c2e0: 7320 6861 7320 6265 656e 206f 7269 6769 s has been origi\n+0000c2f0: 6e61 6c6c 7920 6465 7665 6c6f 7070 6564 nally developped\n+0000c300: 2062 7920 5361 6d75 656c 2054 6172 6469 by Samuel Tardi\n+0000c310: 6575 2077 686f 2073 7469 6c6c 0a6d 6169 eu who still.mai\n+0000c320: 6e74 6169 6e73 2069 742e 2020 486f 7765 ntains it. Howe\n+0000c330: 7665 722c 2074 6865 2066 6f6c 6c6f 7769 ver, the followi\n+0000c340: 6e67 2070 656f 706c 6520 6861 7665 206d ng people have m\n+0000c350: 6164 6520 6372 7563 6961 6c0a 636f 6e74 ade crucial.cont\n+0000c360: 7269 6275 7469 6f6e 7320 746f 2041 6461 ributions to Ada\n+0000c370: 536f 636b 6574 732c 2062 6520 7468 6579 Sockets, be they\n+0000c380: 206e 6577 2063 6f64 652c 2062 7567 2066 new code, bug f\n+0000c390: 6978 6573 206f 7220 706f 7274 696e 6720 ixes or porting \n+0000c3a0: 746f 0a6e 6577 206f 7065 7261 7469 6e67 to.new operating\n+0000c3b0: 2073 7973 7465 6d73 3a0a 0a20 2020 e280 systems:.. ..\n+0000c3c0: a220 446d 6974 7269 7920 416e 6973 696d . Dmitriy Anisim\n+0000c3d0: 6b6f 7620 283c 616e 6973 696d 6b6f 7640 kov (). .\n+0000c3f0: 80a2 2041 6c61 6e20 4261 726e 6573 2028 .. Alan Barnes (\n+0000c400: 3c62 6172 6e65 7361 4061 7374 6f6e 2e61 ). ... Ju\n+0000c420: 616e 6d61 2042 6172 7261 6e71 7565 726f anma Barranquero\n+0000c430: 2028 3c6c 656b 7475 4074 6572 7261 2e65 (). ... Bobby\n+0000c450: 2044 2e20 4272 7961 6e74 2028 3c62 6462 D. Bryant (). ... S\n+0000c480: 616e 6465 7220 436f 7820 283c 7361 6e64 ander Cox (). ... Sune\n+0000c4b0: 2046 616c 6b20 283c 7375 6e65 2e66 616c Falk (). \n+0000c4d0: 2020 e280 a220 4775 696c 6c61 756d 6520 ... Guillaume \n+0000c4e0: 466f 6c69 6172 6420 283c 6775 6966 6f40 Foliard (). \n+0000c500: e280 a220 4c61 7572 656e 7420 4775 6572 ... Laurent Guer\n+0000c510: 6279 2028 3c67 7565 7262 7940 636c 7562 by (). \n+0000c530: 2020 e280 a220 4461 7669 6420 4a2e 204b ... David J. K\n+0000c540: 7269 7374 6f6c 6120 283c 4461 7669 6439 ristola (). \n+0000c560: 2020 e280 a220 446f 6d69 6e69 6b20 4d61 ... Dominik Ma\n+0000c570: 646f 6e20 283c 646f 6d69 6e69 6b40 6163 don (). ... P\n+0000c590: 6173 6361 6c20 4f62 7279 2028 3c70 2e6f ascal Obry ()\n+0000c5b0: 0a20 2020 e280 a220 4e69 636f 6c61 7320 . ... Nicolas \n+0000c5c0: 4f6c 6c69 6e67 6572 2028 3c4e 6963 6f6c Ollinger (). ...\n+0000c5f0: 2053 7470 6861 6e65 2050 6174 7572 6561 Stphane Paturea\n+0000c600: 7520 283c 7370 6174 7572 6561 406d 656c u (). ..\n+0000c630: a220 5468 6f6d 6173 2051 7569 6e6f 7420 . Thomas Quinot \n+0000c640: 283c 7468 6f6d 6173 4063 7569 7672 652e (). .\n+0000c660: 80a2 2050 7265 6265 6e20 5261 6e64 686f .. Preben Randho\n+0000c670: 6c20 283c 7261 6e64 686f 6c40 7076 762e l (). ... Max\n+0000c690: 696d 2052 657a 6e69 6b20 283c 6d61 7831 im Reznik ().\n+0000c6b0: 2020 20e2 80a2 204a 6f65 6c20 5368 6572 ... Joel Sher\n+0000c6c0: 7269 6c6c 2028 3c6a 6f65 6c2e 7368 6572 rill (). ... Samuel\n+0000c6f0: 2054 6172 6469 6575 2028 3c73 616d 4072 Tardieu ().. \n+0000c710: 2049 6620 796f 7520 6665 656c 2074 6861 If you feel tha\n+0000c720: 7420 796f 7520 6861 7665 2062 6565 6e20 t you have been \n+0000c730: 666f 7267 6f74 7465 6e2c 2070 6c65 6173 forgotten, pleas\n+0000c740: 6520 7365 6e64 206d 6520 6120 6d61 696c e send me a mail\n+0000c750: 2073 6f0a 7468 6174 2049 2063 616e 2066 so.that I can f\n+0000c760: 6978 2069 7420 696e 2074 6865 206e 6578 ix it in the nex\n+0000c770: 7420 7665 7273 696f 6e2e 0a0a 2020 202a t version... *\n+0000c780: 4e6f 7465 2052 6573 6f75 7263 6573 206f Note Resources o\n+0000c790: 6e20 7468 6520 496e 7465 726e 6574 3a3a n the Internet::\n+0000c7a0: 2c20 666f 7220 686f 7720 746f 2063 6f6e , for how to con\n+0000c7b0: 7472 6962 7574 652e 0a0a 1f0a 4669 6c65 tribute.....File\n+0000c7c0: 3a20 6164 6173 6f63 6b65 7473 2e69 6e66 : adasockets.inf\n+0000c7d0: 6f2c 2020 4e6f 6465 3a20 5265 736f 7572 o, Node: Resour\n+0000c7e0: 6365 7320 6f6e 2074 6865 2049 6e74 6572 ces on the Inter\n+0000c7f0: 6e65 742c 2020 4e65 7874 3a20 496e 6465 net, Next: Inde\n+0000c800: 782c 2020 5072 6576 3a20 436f 6e74 7269 x, Prev: Contri\n+0000c810: 6275 746f 7273 2c20 2055 703a 2054 6f70 butors, Up: Top\n+0000c820: 0a0a 4170 7065 6e64 6978 2042 2052 6573 ..Appendix B Res\n+0000c830: 6f75 7263 6573 206f 6e20 7468 6520 496e ources on the In\n+0000c840: 7465 726e 6574 0a2a 2a2a 2a2a 2a2a 2a2a ternet.*********\n+0000c850: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a ****************\n+0000c860: 2a2a 2a2a 2a2a 2a2a 2a2a 2a0a 0a54 6865 ***********..The\n+0000c870: 206c 6174 6573 7420 7665 7273 696f 6e20 latest version \n+0000c880: 6f66 2041 6461 536f 636b 6574 7320 6361 of AdaSockets ca\n+0000c890: 6e20 616c 7761 7973 2062 6520 666f 756e n always be foun\n+0000c8a0: 6420 6174 3a0a 0a20 2020 2020 2020 2020 d at:.. \n+0000c8b0: 2020 2020 2020 3c68 7474 703a 2f2f 7777 .\n+0000c8e0: 0a20 2020 596f 7520 6361 6e20 7265 706f . You can repo\n+0000c8f0: 7274 2069 7373 7565 7320 6f72 2073 7562 rt issues or sub\n+0000c900: 6d69 7420 7175 6573 7469 6f6e 7320 6f6e mit questions on\n+0000c910: 2047 6974 4875 6227 7320 6973 7375 6520 GitHub's issue \n+0000c920: 7472 6163 6b65 720a 6174 3a0a 0a20 2020 tracker.at:.. \n+0000c930: 2020 2020 2020 3c68 7474 7073 3a2f 2f67 ....Fi\n+0000c970: 6c65 3a20 6164 6173 6f63 6b65 7473 2e69 le: adasockets.i\n+0000c980: 6e66 6f2c 2020 4e6f 6465 3a20 496e 6465 nfo, Node: Inde\n+0000c990: 782c 2020 5072 6576 3a20 5265 736f 7572 x, Prev: Resour\n+0000c9a0: 6365 7320 6f6e 2074 6865 2049 6e74 6572 ces on the Inter\n+0000c9b0: 6e65 742c 2020 5570 3a20 546f 700a 0a49 net, Up: Top..I\n+0000c9c0: 6e64 6578 0a2a 2a2a 2a2a 0a0a 0008 5b69 ndex.*****....[i\n+0000c9d0: 6e64 6578 0008 5d0a 2a20 4d65 6e75 3a0a ndex..].* Menu:.\n+0000c9e0: 0a2a 2041 6363 6570 745f 536f 636b 6574 .* Accept_Socket\n+0000c9f0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+0000ca00: 2020 2020 2020 2020 2020 4163 6365 7074 Accept\n+0000ca10: 5f53 6f63 6b65 7420 2870 726f 6365 6475 _Socket (procedu\n+0000ca20: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n+0000ca30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ca40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ca50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ca60: 2020 2020 286c 696e 6520 2039 290a 2a20 (line 9).* \n+0000ca70: 4163 6365 7074 696e 6720 6120 6e65 7720 Accepting a new \n+0000ca80: 636f 6e6e 6563 7469 6f6e 3a20 2020 2020 connection: \n+0000ca90: 2020 2020 2020 2041 6363 6570 745f 536f Accept_So\n+0000caa0: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+0000cab0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n+0000cac0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cad0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cae0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000caf0: 2028 6c69 6e65 2020 3629 0a2a 2041 6461 (line 6).* Ada\n+0000cb00: 2e53 7472 6561 6d73 2e53 7472 6561 6d5f .Streams.Stream_\n+0000cb10: 456c 656d 656e 745f 4172 7261 793a 2020 Element_Array: \n+0000cb20: 2020 2020 5261 7720 6461 7461 206d 616e Raw data man\n+0000cb30: 6970 756c 6174 696f 6e2e 0a20 2020 2020 ipulation.. \n+0000cb40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cb50: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000cb60: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cb70: 2020 4e65 775f 4c69 6e65 2028 7072 6f63 New_Line (proc\n-0000cb80: 6564 7572 6529 2e20 286c 696e 6520 2039 edure). (line 9\n-0000cb90: 290a 2a20 5046 5f49 4e45 543a 2020 2020 ).* PF_INET: \n-0000cba0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cbb0: 2020 2020 2020 2020 2020 2053 6f63 6b65 Socke\n-0000cbc0: 7420 2870 726f 6365 6475 7265 292e 2020 t (procedure). \n-0000cbd0: 2028 6c69 6e65 2031 3929 0a2a 2050 7574 (line 19).* Put\n-0000cbe0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n-0000cbf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cc00: 2020 2020 5075 7420 2870 726f 6365 6475 Put (procedu\n-0000cc10: 7265 292e 2020 2020 2020 286c 696e 6520 re). (line \n-0000cc20: 2039 290a 2a20 5075 745f 4c69 6e65 3a20 9).* Put_Line: \n-0000cc30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cc40: 2020 2020 2020 2020 2020 2020 2050 7574 Put\n-0000cc50: 5f4c 696e 6520 2870 726f 6365 6475 7265 _Line (procedure\n-0000cc60: 292e 2028 6c69 6e65 2020 3929 0a2a 2052 ). (line 9).* R\n-0000cc70: 6177 2064 6174 6120 6d61 6e69 7075 6c61 aw data manipula\n-0000cc80: 7469 6f6e 3a20 2020 2020 2020 2020 2020 tion: \n-0000cc90: 2020 2020 2020 5261 7720 6461 7461 206d Raw data m\n-0000cca0: 616e 6970 756c 6174 696f 6e2e 0a20 2020 anipulation.. \n-0000ccb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ccc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ccd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cce0: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n-0000ccf0: 6520 2036 290a 2a20 5265 6365 6976 653a e 6).* Receive:\n-0000cd00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cd10: 2020 2020 2020 2020 2020 2020 2020 2052 R\n-0000cd20: 6563 6569 7665 2028 6675 6e63 7469 6f6e eceive (function\n-0000cd30: 292e 2020 2028 6c69 6e65 2020 3929 0a2a ). (line 9).*\n-0000cd40: 2052 6563 6569 7665 203c 313e 3a20 2020 Receive <1>: \n-0000cd50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cd60: 2020 2020 2020 2020 5265 6365 6976 6520 Receive \n-0000cd70: 2870 726f 6365 6475 7265 292e 2020 286c (procedure). (l\n-0000cd80: 696e 6520 2039 290a 2a20 5265 6365 6976 ine 9).* Receiv\n-0000cd90: 6520 3c32 3e3a 2020 2020 2020 2020 2020 e <2>: \n+0000cb70: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n+0000cb80: 2036 290a 2a20 4164 612e 5374 7265 616d 6).* Ada.Stream\n+0000cb90: 732e 5374 7265 616d 5f45 6c65 6d65 6e74 s.Stream_Element\n+0000cba0: 5f41 7272 6179 203c 313e 3a20 2052 6563 _Array <1>: Rec\n+0000cbb0: 6569 7665 2028 6675 6e63 7469 6f6e 292e eive (function).\n+0000cbc0: 2020 2028 6c69 6e65 2032 3229 0a2a 2041 (line 22).* A\n+0000cbd0: 6461 2e53 7472 6561 6d73 2e53 7472 6561 da.Streams.Strea\n+0000cbe0: 6d5f 456c 656d 656e 745f 4172 7261 7920 m_Element_Array \n+0000cbf0: 3c32 3e3a 2020 5265 6365 6976 6520 2870 <2>: Receive (p\n+0000cc00: 726f 6365 6475 7265 292e 2020 286c 696e rocedure). (lin\n+0000cc10: 6520 3138 290a 2a20 4164 612e 5374 7265 e 18).* Ada.Stre\n+0000cc20: 616d 732e 5374 7265 616d 5f45 6c65 6d65 ams.Stream_Eleme\n+0000cc30: 6e74 5f41 7272 6179 203c 333e 3a20 2052 nt_Array <3>: R\n+0000cc40: 6563 6569 7665 5f53 6f6d 6520 2870 726f eceive_Some (pro\n+0000cc50: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n+0000cc60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cc70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cc80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cc90: 2020 2020 2020 2020 286c 696e 6520 3231 (line 21\n+0000cca0: 290a 2a20 4164 612e 5374 7265 616d 732e ).* Ada.Streams.\n+0000ccb0: 5374 7265 616d 5f45 6c65 6d65 6e74 5f41 Stream_Element_A\n+0000ccc0: 7272 6179 203c 343e 3a20 2053 656e 6420 rray <4>: Send \n+0000ccd0: 2870 726f 6365 6475 7265 292e 2020 2020 (procedure). \n+0000cce0: 2028 6c69 6e65 2031 3729 0a2a 2041 6461 (line 17).* Ada\n+0000ccf0: 2e53 7472 6561 6d73 2e53 7472 6561 6d5f .Streams.Stream_\n+0000cd00: 456c 656d 656e 745f 436f 756e 743a 2020 Element_Count: \n+0000cd10: 2020 2020 5265 6365 6976 6520 2866 756e Receive (fun\n+0000cd20: 6374 696f 6e29 2e20 2020 286c 696e 6520 ction). (line \n+0000cd30: 3232 290a 2a20 4164 612e 5374 7265 616d 22).* Ada.Stream\n+0000cd40: 732e 5374 7265 616d 5f45 6c65 6d65 6e74 s.Stream_Element\n+0000cd50: 5f43 6f75 6e74 203c 313e 3a20 2052 6563 _Count <1>: Rec\n+0000cd60: 6569 7665 5f53 6f6d 6520 2870 726f 6365 eive_Some (proce\n+0000cd70: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n+0000cd80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cd90: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000cda0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cdb0: 2053 6875 7464 6f77 6e20 2870 726f 6365 Shutdown (proce\n-0000cdc0: 6475 7265 292e 2028 6c69 6e65 2031 3729 dure). (line 17)\n-0000cdd0: 0a2a 2052 6563 6569 7665 5f53 6f6d 653a .* Receive_Some:\n-0000cde0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cdf0: 2020 2020 2020 2020 2020 5265 6365 6976 Receiv\n-0000ce00: 655f 536f 6d65 2028 7072 6f63 6564 7572 e_Some (procedur\n-0000ce10: 6529 2e0a 2020 2020 2020 2020 2020 2020 e).. \n+0000cdb0: 2020 2020 2020 286c 696e 6520 3231 290a (line 21).\n+0000cdc0: 2a20 4164 6153 6f63 6b65 7473 2070 7265 * AdaSockets pre\n+0000cdd0: 7365 6e74 6174 696f 6e3a 2020 2020 2020 sentation: \n+0000cde0: 2020 2020 2020 2020 2057 6861 7420 6973 What is\n+0000cdf0: 2041 6461 536f 636b 6574 733f 2e20 2028 AdaSockets?. (\n+0000ce00: 6c69 6e65 2020 3629 0a2a 2041 6464 7265 line 6).* Addre\n+0000ce10: 7373 3a20 2020 2020 2020 2020 2020 2020 ss: \n 0000ce20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ce30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ce40: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ce50: 2020 2028 6c69 6e65 2020 3929 0a2a 2052 (line 9).* R\n-0000ce60: 6563 6569 7669 6e67 2064 6174 613a 2020 eceiving data: \n+0000ce30: 2020 536f 636b 6574 732e 4e61 6d69 6e67 Sockets.Naming\n+0000ce40: 2070 6163 6b61 6765 2e0a 2020 2020 2020 package.. \n+0000ce50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ce60: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000ce70: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ce80: 2020 2020 2020 5365 6e64 696e 6720 616e Sending an\n-0000ce90: 6420 7265 6365 6976 696e 6720 6461 7461 d receiving data\n-0000cea0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n-0000ceb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cec0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ced0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cee0: 2028 6c69 6e65 2020 3629 0a2a 2052 6563 (line 6).* Rec\n-0000cef0: 6569 7669 6e67 2064 6174 6120 3c31 3e3a eiving data <1>:\n+0000ce80: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line \n+0000ce90: 3929 0a2a 2041 6464 7265 7373 5f41 7272 9).* Address_Arr\n+0000cea0: 6179 3a20 2020 2020 2020 2020 2020 2020 ay: \n+0000ceb0: 2020 2020 2020 2020 2020 2020 536f 636b Sock\n+0000cec0: 6574 732e 4e61 6d69 6e67 2070 6163 6b61 ets.Naming packa\n+0000ced0: 6765 2e0a 2020 2020 2020 2020 2020 2020 ge.. \n+0000cee0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cef0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000cf00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000cf10: 2020 2020 4765 7420 2866 756e 6374 696f Get (functio\n-0000cf20: 6e29 2e20 2020 2020 2020 286c 696e 6520 n). (line \n-0000cf30: 2036 290a 2a20 5265 6365 6976 696e 6720 6).* Receiving \n-0000cf40: 6461 7461 203c 323e 3a20 2020 2020 2020 data <2>: \n-0000cf50: 2020 2020 2020 2020 2020 2020 2047 6574 Get\n-0000cf60: 5f43 6861 7220 2866 756e 6374 696f 6e29 _Char (function)\n-0000cf70: 2e20 2028 6c69 6e65 2020 3629 0a2a 2052 . (line 6).* R\n-0000cf80: 6563 6569 7669 6e67 2064 6174 6120 3c33 eceiving data <3\n-0000cf90: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n-0000cfa0: 2020 2020 2020 4765 745f 4c69 6e65 2028 Get_Line (\n-0000cfb0: 6675 6e63 7469 6f6e 292e 2020 286c 696e function). (lin\n-0000cfc0: 6520 2036 290a 2a20 5265 6365 6976 696e e 6).* Receivin\n-0000cfd0: 6720 6461 7461 203c 343e 3a20 2020 2020 g data <4>: \n-0000cfe0: 2020 2020 2020 2020 2020 2020 2020 2047 G\n-0000cff0: 6574 5f4c 696e 6520 2870 726f 6365 6475 et_Line (procedu\n-0000d000: 7265 292e 2028 6c69 6e65 2020 3629 0a2a re). (line 6).*\n-0000d010: 2052 6563 6569 7669 6e67 2064 6174 6120 Receiving data \n-0000d020: 3c35 3e3a 2020 2020 2020 2020 2020 2020 <5>: \n-0000d030: 2020 2020 2020 2020 4765 745f 5265 6365 Get_Rece\n-0000d040: 6976 655f 5175 6575 655f 5369 7a65 2028 ive_Queue_Size (\n-0000d050: 6675 6e63 7469 6f6e 292e 0a20 2020 2020 function).. \n-0000d060: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d070: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d080: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d090: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n-0000d0a0: 2036 290a 2a20 5265 6365 6976 696e 6720 6).* Receiving \n-0000d0b0: 6461 7461 203c 363e 3a20 2020 2020 2020 data <6>: \n-0000d0c0: 2020 2020 2020 2020 2020 2020 2052 6563 Rec\n-0000d0d0: 6569 7665 2028 6675 6e63 7469 6f6e 292e eive (function).\n-0000d0e0: 2020 2028 6c69 6e65 2020 3629 0a2a 2052 (line 6).* R\n-0000d0f0: 6563 6569 7669 6e67 2064 6174 6120 3c37 eceiving data <7\n-0000d100: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n-0000d110: 2020 2020 2020 5265 6365 6976 6520 2870 Receive (p\n-0000d120: 726f 6365 6475 7265 292e 2020 286c 696e rocedure). (lin\n-0000d130: 6520 2036 290a 2a20 5265 6365 6976 696e e 6).* Receivin\n-0000d140: 6720 6461 7461 203c 383e 3a20 2020 2020 g data <8>: \n-0000d150: 2020 2020 2020 2020 2020 2020 2020 2052 R\n-0000d160: 6563 6569 7665 5f53 6f6d 6520 2870 726f eceive_Some (pro\n-0000d170: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n-0000d180: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d190: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d1a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d1b0: 2020 2020 2020 2020 286c 696e 6520 2036 (line 6\n-0000d1c0: 290a 2a20 5265 6365 6976 696e 6720 6461 ).* Receiving da\n-0000d1d0: 7461 203c 393e 3a20 2020 2020 2020 2020 ta <9>: \n-0000d1e0: 2020 2020 2020 2020 2020 2053 6574 5f42 Set_B\n-0000d1f0: 7566 6665 7220 2870 726f 6365 6475 7265 uffer (procedure\n-0000d200: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n-0000d210: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d220: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d230: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d240: 2020 286c 696e 6520 2036 290a 2a20 5265 (line 6).* Re\n-0000d250: 6365 6976 696e 6720 6461 7461 203c 3130 ceiving data <10\n-0000d260: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n-0000d270: 2020 2020 2055 6e73 6574 5f42 7566 6665 Unset_Buffe\n-0000d280: 7220 2870 726f 6365 6475 7265 292e 0a20 r (procedure).. \n-0000d290: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d2a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d2b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d2c0: 2020 2020 2020 2020 2020 2020 2020 286c (l\n-0000d2d0: 696e 6520 2036 290a 2a20 5265 706f 7274 ine 6).* Report\n-0000d2e0: 696e 6720 6120 6275 673a 2020 2020 2020 ing a bug: \n-0000d2f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d300: 2052 6573 6f75 7263 6573 206f 6e20 7468 Resources on th\n-0000d310: 6520 496e 7465 726e 6574 2e0a 2020 2020 e Internet.. \n-0000d320: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d330: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d340: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d350: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n-0000d360: 2020 3629 0a2a 2052 6574 7269 6576 696e 6).* Retrievin\n-0000d370: 6720 736f 636b 6574 206f 7074 696f 6e73 g socket options\n-0000d380: 3a20 2020 2020 2020 2020 2020 2020 4765 : Ge\n-0000d390: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n-0000d3a0: 7572 6529 2e0a 2020 2020 2020 2020 2020 ure).. \n-0000d3b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d3c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d3d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d3e0: 2020 2020 2028 6c69 6e65 2020 3629 0a2a (line 6).*\n-0000d3f0: 2053 656e 643a 2020 2020 2020 2020 2020 Send: \n-0000d400: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d410: 2020 2020 2020 2020 5365 6e64 2028 7072 Send (pr\n-0000d420: 6f63 6564 7572 6529 2e20 2020 2020 286c ocedure). (l\n-0000d430: 696e 6520 2039 290a 2a20 5365 6e64 203c ine 9).* Send <\n-0000d440: 313e 3a20 2020 2020 2020 2020 2020 2020 1>: \n-0000d450: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d460: 2053 6875 7464 6f77 6e20 2870 726f 6365 Shutdown (proce\n-0000d470: 6475 7265 292e 2028 6c69 6e65 2031 3729 dure). (line 17)\n-0000d480: 0a2a 2053 656e 6469 6e67 2064 6174 613a .* Sending data:\n-0000d490: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d4a0: 2020 2020 2020 2020 2020 5365 6e64 696e Sendin\n-0000d4b0: 6720 616e 6420 7265 6365 6976 696e 6720 g and receiving \n-0000d4c0: 6461 7461 2e0a 2020 2020 2020 2020 2020 data.. \n+0000cf10: 2020 2028 6c69 6e65 2031 3629 0a2a 2041 (line 16).* A\n+0000cf20: 6464 7265 7373 5f43 6f6d 706f 6e65 6e74 ddress_Component\n+0000cf30: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+0000cf40: 2020 2020 2020 536f 636b 6574 732e 4e61 Sockets.Na\n+0000cf50: 6d69 6e67 2070 6163 6b61 6765 2e0a 2020 ming package.. \n+0000cf60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cf70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cf80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cf90: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n+0000cfa0: 6e65 2032 3029 0a2a 2041 6464 7265 7373 ne 20).* Address\n+0000cfb0: 5f4f 663a 2020 2020 2020 2020 2020 2020 _Of: \n+0000cfc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000cfd0: 4164 6472 6573 735f 4f66 2028 6675 6e63 Address_Of (func\n+0000cfe0: 7469 6f6e 292e 0a20 2020 2020 2020 2020 tion).. \n+0000cff0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d000: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d010: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d020: 2020 2020 2020 286c 696e 6520 2039 290a (line 9).\n+0000d030: 2a20 4146 5f49 4e45 543a 2020 2020 2020 * AF_INET: \n+0000d040: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d050: 2020 2020 2020 2020 2053 6f63 6b65 7420 Socket \n+0000d060: 2870 726f 6365 6475 7265 292e 2020 2028 (procedure). (\n+0000d070: 6c69 6e65 2031 3929 0a2a 2041 6e79 5f41 line 19).* Any_A\n+0000d080: 6464 7265 7373 3a20 2020 2020 2020 2020 ddress: \n+0000d090: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d0a0: 2020 416e 795f 4164 6472 6573 7320 2866 Any_Address (f\n+0000d0b0: 756e 6374 696f 6e29 2e0a 2020 2020 2020 unction).. \n+0000d0c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d0d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d0e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d0f0: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line \n+0000d100: 3929 0a2a 2041 7373 6967 6e69 6e67 2061 9).* Assigning a\n+0000d110: 206c 6f63 616c 2070 6f72 743a 2020 2020 local port: \n+0000d120: 2020 2020 2020 2020 2020 2020 4269 6e64 Bind\n+0000d130: 2028 7072 6f63 6564 7572 6529 2e20 2020 (procedure). \n+0000d140: 2020 286c 696e 6520 2036 290a 2a20 4269 (line 6).* Bi\n+0000d150: 6e64 3a20 2020 2020 2020 2020 2020 2020 nd: \n+0000d160: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d170: 2020 2020 2042 696e 6420 2870 726f 6365 Bind (proce\n+0000d180: 6475 7265 292e 2020 2020 2028 6c69 6e65 dure). (line\n+0000d190: 2020 3929 0a2a 2042 696e 6469 6e67 2061 9).* Binding a\n+0000d1a0: 2073 6f63 6b65 743a 2020 2020 2020 2020 socket: \n+0000d1b0: 2020 2020 2020 2020 2020 2020 2020 4269 Bi\n+0000d1c0: 6e64 2028 7072 6f63 6564 7572 6529 2e20 nd (procedure). \n+0000d1d0: 2020 2020 286c 696e 6520 2036 290a 2a20 (line 6).* \n+0000d1e0: 426f 7468 3a20 2020 2020 2020 2020 2020 Both: \n+0000d1f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d200: 2020 2020 2020 2053 6875 7464 6f77 6e20 Shutdown \n+0000d210: 2870 726f 6365 6475 7265 292e 2028 6c69 (procedure). (li\n+0000d220: 6e65 2031 3729 0a2a 2043 6c6f 7369 6e67 ne 17).* Closing\n+0000d230: 2061 2073 6f63 6b65 743a 2020 2020 2020 a socket: \n+0000d240: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d250: 5368 7574 646f 776e 2028 7072 6f63 6564 Shutdown (proced\n+0000d260: 7572 6529 2e20 286c 696e 6520 2036 290a ure). (line 6).\n+0000d270: 2a20 436f 6d70 6172 6169 736f 6e20 7769 * Comparaison wi\n+0000d280: 7468 2047 4e41 542e 536f 636b 6574 733a th GNAT.Sockets:\n+0000d290: 2020 2020 2020 2020 2057 6861 7420 6973 What is\n+0000d2a0: 2041 6461 536f 636b 6574 733f 2e20 2028 AdaSockets?. (\n+0000d2b0: 6c69 6e65 2020 3629 0a2a 2043 6f6e 6e65 line 6).* Conne\n+0000d2c0: 6374 3a20 2020 2020 2020 2020 2020 2020 ct: \n+0000d2d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d2e0: 2020 436f 6e6e 6563 7420 2870 726f 6365 Connect (proce\n+0000d2f0: 6475 7265 292e 2020 286c 696e 6520 2039 dure). (line 9\n+0000d300: 290a 2a20 436f 6e6e 6563 7469 6e67 2061 ).* Connecting a\n+0000d310: 2073 6f63 6b65 743a 2020 2020 2020 2020 socket: \n+0000d320: 2020 2020 2020 2020 2020 2043 6f6e 6e65 Conne\n+0000d330: 6374 2028 7072 6f63 6564 7572 6529 2e20 ct (procedure). \n+0000d340: 2028 6c69 6e65 2020 3629 0a2a 2043 6f6e (line 6).* Con\n+0000d350: 6e65 6374 696f 6e5f 436c 6f73 6564 3a20 nection_Closed: \n+0000d360: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d370: 2020 2020 4765 7420 2866 756e 6374 696f Get (functio\n+0000d380: 6e29 2e20 2020 2020 2020 286c 696e 6520 n). (line \n+0000d390: 3334 290a 2a20 436f 6e6e 6563 7469 6f6e 34).* Connection\n+0000d3a0: 5f43 6c6f 7365 6420 3c31 3e3a 2020 2020 _Closed <1>: \n+0000d3b0: 2020 2020 2020 2020 2020 2020 2047 6574 Get\n+0000d3c0: 5f43 6861 7220 2866 756e 6374 696f 6e29 _Char (function)\n+0000d3d0: 2e20 2028 6c69 6e65 2032 3329 0a2a 2043 . (line 23).* C\n+0000d3e0: 6f6e 6e65 6374 696f 6e5f 436c 6f73 6564 onnection_Closed\n+0000d3f0: 203c 323e 3a20 2020 2020 2020 2020 2020 <2>: \n+0000d400: 2020 2020 2020 4765 745f 4c69 6e65 2028 Get_Line (\n+0000d410: 6675 6e63 7469 6f6e 292e 2020 286c 696e function). (lin\n+0000d420: 6520 3332 290a 2a20 436f 6e6e 6563 7469 e 32).* Connecti\n+0000d430: 6f6e 5f43 6c6f 7365 6420 3c33 3e3a 2020 on_Closed <3>: \n+0000d440: 2020 2020 2020 2020 2020 2020 2020 2047 G\n+0000d450: 6574 5f4c 696e 6520 2870 726f 6365 6475 et_Line (procedu\n+0000d460: 7265 292e 2028 6c69 6e65 2032 3729 0a2a re). (line 27).*\n+0000d470: 2043 6f6e 6e65 6374 696f 6e5f 436c 6f73 Connection_Clos\n+0000d480: 6564 203c 343e 3a20 2020 2020 2020 2020 ed <4>: \n+0000d490: 2020 2020 2020 2020 4e65 775f 4c69 6e65 New_Line\n+0000d4a0: 2028 7072 6f63 6564 7572 6529 2e20 286c (procedure). (l\n+0000d4b0: 696e 6520 3230 290a 2a20 436f 6e6e 6563 ine 20).* Connec\n+0000d4c0: 7469 6f6e 5f43 6c6f 7365 6420 3c35 3e3a tion_Closed <5>:\n 0000d4d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d4e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d4f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d500: 2020 2020 2028 6c69 6e65 2020 3629 0a2a (line 6).*\n-0000d510: 2053 656e 6469 6e67 2064 6174 6120 3c31 Sending data <1\n-0000d520: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n-0000d530: 2020 2020 2020 2020 4765 745f 5365 6e64 Get_Send\n-0000d540: 5f51 7565 7565 5f53 697a 6520 2866 756e _Queue_Size (fun\n-0000d550: 6374 696f 6e29 2e0a 2020 2020 2020 2020 ction).. \n-0000d560: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d570: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d580: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d590: 2020 2020 2020 2028 6c69 6e65 2020 3629 (line 6)\n-0000d5a0: 0a2a 2053 656e 6469 6e67 2064 6174 6120 .* Sending data \n-0000d5b0: 3c32 3e3a 2020 2020 2020 2020 2020 2020 <2>: \n-0000d5c0: 2020 2020 2020 2020 2020 4e65 775f 4c69 New_Li\n-0000d5d0: 6e65 2028 7072 6f63 6564 7572 6529 2e20 ne (procedure). \n-0000d5e0: 286c 696e 6520 2036 290a 2a20 5365 6e64 (line 6).* Send\n-0000d5f0: 696e 6720 6461 7461 203c 333e 3a20 2020 ing data <3>: \n-0000d600: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d610: 2020 2050 7574 2028 7072 6f63 6564 7572 Put (procedur\n-0000d620: 6529 2e20 2020 2020 2028 6c69 6e65 2020 e). (line \n-0000d630: 3629 0a2a 2053 656e 6469 6e67 2064 6174 6).* Sending dat\n-0000d640: 6120 3c34 3e3a 2020 2020 2020 2020 2020 a <4>: \n-0000d650: 2020 2020 2020 2020 2020 2020 5075 745f Put_\n-0000d660: 4c69 6e65 2028 7072 6f63 6564 7572 6529 Line (procedure)\n-0000d670: 2e20 286c 696e 6520 2036 290a 2a20 5365 . (line 6).* Se\n-0000d680: 6e64 696e 6720 6461 7461 203c 353e 3a20 nding data <5>: \n-0000d690: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d6a0: 2020 2020 2053 656e 6420 2870 726f 6365 Send (proce\n-0000d6b0: 6475 7265 292e 2020 2020 2028 6c69 6e65 dure). (line\n-0000d6c0: 2020 3629 0a2a 2053 656e 6469 6e67 2070 6).* Sending p\n-0000d6d0: 6174 6368 6573 3a20 2020 2020 2020 2020 atches: \n-0000d6e0: 2020 2020 2020 2020 2020 2020 2020 5265 Re\n-0000d6f0: 736f 7572 6365 7320 6f6e 2074 6865 2049 sources on the I\n-0000d700: 6e74 6572 6e65 742e 0a20 2020 2020 2020 nternet.. \n+0000d4e0: 2050 7574 2028 7072 6f63 6564 7572 6529 Put (procedure)\n+0000d4f0: 2e20 2020 2020 2028 6c69 6e65 2032 3129 . (line 21)\n+0000d500: 0a2a 2043 6f6e 6e65 6374 696f 6e5f 436c .* Connection_Cl\n+0000d510: 6f73 6564 203c 363e 3a20 2020 2020 2020 osed <6>: \n+0000d520: 2020 2020 2020 2020 2020 5075 745f 4c69 Put_Li\n+0000d530: 6e65 2028 7072 6f63 6564 7572 6529 2e20 ne (procedure). \n+0000d540: 286c 696e 6520 3231 290a 2a20 436f 6e6e (line 21).* Conn\n+0000d550: 6563 7469 6f6e 5f43 6c6f 7365 6420 3c37 ection_Closed <7\n+0000d560: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n+0000d570: 2020 2052 6563 6569 7665 2028 6675 6e63 Receive (func\n+0000d580: 7469 6f6e 292e 2020 2028 6c69 6e65 2033 tion). (line 3\n+0000d590: 3029 0a2a 2043 6f6e 6e65 6374 696f 6e5f 0).* Connection_\n+0000d5a0: 436c 6f73 6564 203c 383e 3a20 2020 2020 Closed <8>: \n+0000d5b0: 2020 2020 2020 2020 2020 2020 5265 6365 Rece\n+0000d5c0: 6976 6520 2870 726f 6365 6475 7265 292e ive (procedure).\n+0000d5d0: 2020 286c 696e 6520 3235 290a 2a20 436f (line 25).* Co\n+0000d5e0: 6e6e 6563 7469 6f6e 5f43 6c6f 7365 6420 nnection_Closed \n+0000d5f0: 3c39 3e3a 2020 2020 2020 2020 2020 2020 <9>: \n+0000d600: 2020 2020 2052 6563 6569 7665 5f53 6f6d Receive_Som\n+0000d610: 6520 2870 726f 6365 6475 7265 292e 0a20 e (procedure).. \n+0000d620: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d630: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d640: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d650: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+0000d660: 696e 6520 3237 290a 2a20 436f 6e6e 6563 ine 27).* Connec\n+0000d670: 7469 6f6e 5f43 6c6f 7365 6420 3c31 303e tion_Closed <10>\n+0000d680: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+0000d690: 2053 656e 6420 2870 726f 6365 6475 7265 Send (procedure\n+0000d6a0: 292e 2020 2020 2028 6c69 6e65 2032 3129 ). (line 21)\n+0000d6b0: 0a2a 2043 6f6e 6e65 6374 696f 6e5f 5265 .* Connection_Re\n+0000d6c0: 6675 7365 643a 2020 2020 2020 2020 2020 fused: \n+0000d6d0: 2020 2020 2020 2020 2020 436f 6e6e 6563 Connec\n+0000d6e0: 7420 2870 726f 6365 6475 7265 292e 2020 t (procedure). \n+0000d6f0: 286c 696e 6520 3235 290a 2a20 436f 6e74 (line 25).* Cont\n+0000d700: 7269 6275 7469 6e67 3a20 2020 2020 2020 ributing: \n 0000d710: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d720: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d730: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d740: 2020 2020 2020 2020 286c 696e 6520 2036 (line 6\n-0000d750: 290a 2a20 5365 745f 4275 6666 6572 3a20 ).* Set_Buffer: \n-0000d760: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d770: 2020 2020 2020 2020 2020 2053 6574 5f42 Set_B\n-0000d780: 7566 6665 7220 2870 726f 6365 6475 7265 uffer (procedure\n-0000d790: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n+0000d720: 2020 2043 6f6e 7472 6962 7574 6f72 732e Contributors.\n+0000d730: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line \n+0000d740: 3629 0a2a 2043 6f6e 7472 6962 7574 696e 6).* Contributin\n+0000d750: 6720 3c31 3e3a 2020 2020 2020 2020 2020 g <1>: \n+0000d760: 2020 2020 2020 2020 2020 2020 5265 736f Reso\n+0000d770: 7572 6365 7320 6f6e 2074 6865 2049 6e74 urces on the Int\n+0000d780: 6572 6e65 742e 0a20 2020 2020 2020 2020 ernet.. \n+0000d790: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000d7a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000d7b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d7c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d7d0: 2020 286c 696e 6520 2039 290a 2a20 5365 (line 9).* Se\n-0000d7e0: 7473 6f63 6b6f 7074 3a20 2020 2020 2020 tsockopt: \n-0000d7f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d800: 2020 2020 2053 6574 736f 636b 6f70 7420 Setsockopt \n-0000d810: 2870 726f 6365 6475 7265 292e 0a20 2020 (procedure).. \n-0000d820: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d7c0: 2020 2020 2020 286c 696e 6520 2036 290a (line 6).\n+0000d7d0: 2a20 4352 3a20 2020 2020 2020 2020 2020 * CR: \n+0000d7e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d7f0: 2020 2020 2020 2020 2047 6574 5f4c 696e Get_Lin\n+0000d800: 6520 2866 756e 6374 696f 6e29 2e20 2028 e (function). (\n+0000d810: 6c69 6e65 2032 3129 0a2a 2043 5220 3c31 line 21).* CR <1\n+0000d820: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n 0000d830: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d840: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d850: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n-0000d860: 6520 2039 290a 2a20 5365 7474 696e 6720 e 9).* Setting \n-0000d870: 736f 636b 6574 206f 7074 696f 6e73 3a20 socket options: \n-0000d880: 2020 2020 2020 2020 2020 2020 2020 2053 S\n-0000d890: 6574 736f 636b 6f70 7420 2870 726f 6365 etsockopt (proce\n-0000d8a0: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n-0000d8b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d8c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d8d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d8e0: 2020 2020 2020 286c 696e 6520 2036 290a (line 6).\n-0000d8f0: 2a20 5368 7574 646f 776e 3a20 2020 2020 * Shutdown: \n+0000d840: 2020 4765 745f 4c69 6e65 2028 7072 6f63 Get_Line (proc\n+0000d850: 6564 7572 6529 2e20 286c 696e 6520 3138 edure). (line 18\n+0000d860: 290a 2a20 4352 203c 323e 3a20 2020 2020 ).* CR <2>: \n+0000d870: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d880: 2020 2020 2020 2020 2020 204e 6577 5f4c New_L\n+0000d890: 696e 6520 2870 726f 6365 6475 7265 292e ine (procedure).\n+0000d8a0: 2028 6c69 6e65 2031 3729 0a2a 2043 7265 (line 17).* Cre\n+0000d8b0: 6174 655f 4d75 6c74 6963 6173 745f 536f ate_Multicast_So\n+0000d8c0: 636b 6574 3a20 2020 2020 2020 2020 2020 cket: \n+0000d8d0: 2020 2020 5365 7474 696e 6720 7570 206d Setting up m\n+0000d8e0: 756c 7469 6361 7374 2073 6f63 6b65 7473 ulticast sockets\n+0000d8f0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n 0000d900: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d910: 2020 2020 2020 2020 2053 6875 7464 6f77 Shutdow\n-0000d920: 6e20 2870 726f 6365 6475 7265 292e 2028 n (procedure). (\n-0000d930: 6c69 6e65 2020 3929 0a2a 2053 4f5f 5243 line 9).* SO_RC\n-0000d940: 5642 5546 3a20 2020 2020 2020 2020 2020 VBUF: \n-0000d950: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d960: 2020 4765 7473 6f63 6b6f 7074 2028 7072 Getsockopt (pr\n-0000d970: 6f63 6564 7572 6529 2e0a 2020 2020 2020 ocedure).. \n-0000d980: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d910: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d920: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d930: 2028 6c69 6e65 2031 3629 0a2a 2043 7265 (line 16).* Cre\n+0000d940: 6174 655f 4d75 6c74 6963 6173 745f 536f ate_Multicast_So\n+0000d950: 636b 6574 203c 313e 3a20 2020 2020 2020 cket <1>: \n+0000d960: 2020 2020 4372 6561 7465 5f4d 756c 7469 Create_Multi\n+0000d970: 6361 7374 5f53 6f63 6b65 7420 2866 756e cast_Socket (fun\n+0000d980: 6374 696f 6e29 2e0a 2020 2020 2020 2020 ction).. \n 0000d990: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000d9a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000d9b0: 2020 2020 2020 2020 2028 6c69 6e65 2032 (line 2\n-0000d9c0: 3029 0a2a 2053 4f5f 5243 5642 5546 203c 0).* SO_RCVBUF <\n-0000d9d0: 313e 3a20 2020 2020 2020 2020 2020 2020 1>: \n-0000d9e0: 2020 2020 2020 2020 2020 2020 5365 7473 Sets\n-0000d9f0: 6f63 6b6f 7074 2028 7072 6f63 6564 7572 ockopt (procedur\n-0000da00: 6529 2e0a 2020 2020 2020 2020 2020 2020 e).. \n-0000da10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d9b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000d9c0: 2020 2020 2020 2028 6c69 6e65 2020 3929 (line 9)\n+0000d9d0: 0a2a 2043 7265 6174 655f 4d75 6c74 6963 .* Create_Multic\n+0000d9e0: 6173 745f 536f 636b 6574 203c 323e 3a20 ast_Socket <2>: \n+0000d9f0: 2020 2020 2020 2020 2020 4372 6561 7465 Create\n+0000da00: 5f4d 756c 7469 6361 7374 5f53 6f63 6b65 _Multicast_Socke\n+0000da10: 7420 2866 756e 6374 696f 6e29 2e0a 2020 t (function).. \n 0000da20: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000da30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000da40: 2020 2028 6c69 6e65 2032 3029 0a2a 2053 (line 20).* S\n-0000da50: 4f5f 5245 5553 4541 4444 523a 2020 2020 O_REUSEADDR: \n-0000da60: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000da70: 2020 2020 2020 4765 7473 6f63 6b6f 7074 Getsockopt\n-0000da80: 2028 7072 6f63 6564 7572 6529 2e0a 2020 (procedure).. \n-0000da90: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000daa0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000da40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000da50: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n+0000da60: 6e65 2036 3329 0a2a 2043 7265 6174 696e ne 63).* Creatin\n+0000da70: 6720 6120 6d75 6c74 6963 6173 7420 736f g a multicast so\n+0000da80: 636b 6574 3a20 2020 2020 2020 2020 2020 cket: \n+0000da90: 5365 7474 696e 6720 7570 206d 756c 7469 Setting up multi\n+0000daa0: 6361 7374 2073 6f63 6b65 7473 2e0a 2020 cast sockets.. \n 0000dab0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dac0: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n-0000dad0: 6e65 2032 3029 0a2a 2053 4f5f 5245 5553 ne 20).* SO_REUS\n-0000dae0: 4541 4444 5220 3c31 3e3a 2020 2020 2020 EADDR <1>: \n-0000daf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000db00: 5365 7473 6f63 6b6f 7074 2028 7072 6f63 Setsockopt (proc\n-0000db10: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n-0000db20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000db30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000db40: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000db50: 2020 2020 2020 2028 6c69 6e65 2032 3029 (line 20)\n-0000db60: 0a2a 2053 4f5f 5245 5553 4550 4f52 543a .* SO_REUSEPORT:\n+0000dac0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000dad0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000dae0: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n+0000daf0: 6e65 2020 3629 0a2a 2043 7265 6174 696e ne 6).* Creatin\n+0000db00: 6720 6120 6d75 6c74 6963 6173 7420 736f g a multicast so\n+0000db10: 636b 6574 203c 313e 3a20 2020 2020 2020 cket <1>: \n+0000db20: 4372 6561 7465 5f4d 756c 7469 6361 7374 Create_Multicast\n+0000db30: 5f53 6f63 6b65 7420 2866 756e 6374 696f _Socket (functio\n+0000db40: 6e29 2e0a 2020 2020 2020 2020 2020 2020 n).. \n+0000db50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000db60: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000db70: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000db80: 2020 2020 2020 2020 2020 4765 7473 6f63 Getsoc\n-0000db90: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n-0000dba0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n-0000dbb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dbc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dbd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dbe0: 2028 6c69 6e65 2032 3029 0a2a 2053 4f5f (line 20).* SO_\n-0000dbf0: 5245 5553 4550 4f52 5420 3c31 3e3a 2020 REUSEPORT <1>: \n+0000db80: 2020 2028 6c69 6e65 2020 3629 0a2a 2043 (line 6).* C\n+0000db90: 7265 6174 696e 6720 6120 6d75 6c74 6963 reating a multic\n+0000dba0: 6173 7420 736f 636b 6574 203c 323e 3a20 ast socket <2>: \n+0000dbb0: 2020 2020 2020 4372 6561 7465 5f4d 756c Create_Mul\n+0000dbc0: 7469 6361 7374 5f53 6f63 6b65 7420 2866 ticast_Socket (f\n+0000dbd0: 756e 6374 696f 6e29 2e0a 2020 2020 2020 unction).. \n+0000dbe0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000dbf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000dc00: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dc10: 2020 2020 5365 7473 6f63 6b6f 7074 2028 Setsockopt (\n-0000dc20: 7072 6f63 6564 7572 6529 2e0a 2020 2020 procedure).. \n-0000dc30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dc40: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dc50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dc60: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n-0000dc70: 2032 3029 0a2a 2053 4f5f 534e 4442 5546 20).* SO_SNDBUF\n-0000dc80: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n-0000dc90: 2020 2020 2020 2020 2020 2020 2020 4765 Ge\n-0000dca0: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n-0000dcb0: 7572 6529 2e0a 2020 2020 2020 2020 2020 ure).. \n+0000dc10: 2020 2020 2020 2020 2028 6c69 6e65 2036 (line 6\n+0000dc20: 3029 0a2a 2043 7265 6174 696e 6720 6120 0).* Creating a \n+0000dc30: 7365 7276 6572 3a20 2020 2020 2020 2020 server: \n+0000dc40: 2020 2020 2020 2020 2020 2020 4269 6e64 Bind\n+0000dc50: 2028 7072 6f63 6564 7572 6529 2e20 2020 (procedure). \n+0000dc60: 2020 286c 696e 6520 2036 290a 2a20 4372 (line 6).* Cr\n+0000dc70: 6561 7469 6e67 2061 2073 6f63 6b65 743a eating a socket:\n+0000dc80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000dc90: 2020 2020 2053 6574 7469 6e67 2075 7020 Setting up \n+0000dca0: 756e 6963 6173 7420 736f 636b 6574 732e unicast sockets.\n+0000dcb0: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n 0000dcc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000dcd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000dce0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dcf0: 2020 2020 2028 6c69 6e65 2032 3029 0a2a (line 20).*\n-0000dd00: 2053 4f5f 534e 4442 5546 203c 313e 3a20 SO_SNDBUF <1>: \n-0000dd10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dd20: 2020 2020 2020 2020 5365 7473 6f63 6b6f Setsocko\n-0000dd30: 7074 2028 7072 6f63 6564 7572 6529 2e0a pt (procedure)..\n-0000dd40: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dd50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dd60: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dd70: 2020 2020 2020 2020 2020 2020 2020 2028 (\n-0000dd80: 6c69 6e65 2032 3029 0a2a 2053 4f43 4b5f line 20).* SOCK_\n-0000dd90: 4447 5241 4d3a 2020 2020 2020 2020 2020 DGRAM: \n+0000dcf0: 286c 696e 6520 2036 290a 2a20 4372 6561 (line 6).* Crea\n+0000dd00: 7469 6e67 2061 2073 6f63 6b65 7420 3c31 ting a socket <1\n+0000dd10: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n+0000dd20: 2020 2053 6f63 6b65 7420 2870 726f 6365 Socket (proce\n+0000dd30: 6475 7265 292e 2020 2028 6c69 6e65 2020 dure). (line \n+0000dd40: 3629 0a2a 2043 7265 6174 696e 6720 6120 6).* Creating a \n+0000dd50: 736f 636b 6574 203c 323e 3a20 2020 2020 socket <2>: \n+0000dd60: 2020 2020 2020 2020 2020 2020 4372 6561 Crea\n+0000dd70: 7465 5f4d 756c 7469 6361 7374 5f53 6f63 te_Multicast_Soc\n+0000dd80: 6b65 7420 2866 756e 6374 696f 6e29 2e0a ket (function)..\n+0000dd90: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000dda0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ddb0: 2020 536f 636b 6574 2028 7072 6f63 6564 Socket (proced\n-0000ddc0: 7572 6529 2e20 2020 286c 696e 6520 3139 ure). (line 19\n-0000ddd0: 290a 2a20 534f 434b 5f53 5452 4541 4d3a ).* SOCK_STREAM:\n-0000dde0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ddf0: 2020 2020 2020 2020 2020 2053 6f63 6b65 Socke\n-0000de00: 7420 2870 726f 6365 6475 7265 292e 2020 t (procedure). \n-0000de10: 2028 6c69 6e65 2031 3929 0a2a 2053 6f63 (line 19).* Soc\n-0000de20: 6b65 743a 2020 2020 2020 2020 2020 2020 ket: \n+0000ddb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ddc0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+0000ddd0: 6c69 6e65 2020 3629 0a2a 2043 7265 6174 line 6).* Creat\n+0000dde0: 696e 6720 6120 736f 636b 6574 203c 333e ing a socket <3>\n+0000ddf0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+0000de00: 2020 4372 6561 7465 5f4d 756c 7469 6361 Create_Multica\n+0000de10: 7374 5f53 6f63 6b65 7420 2866 756e 6374 st_Socket (funct\n+0000de20: 696f 6e29 2e0a 2020 2020 2020 2020 2020 ion).. \n 0000de30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000de40: 2020 2020 5365 7474 696e 6720 7570 2075 Setting up u\n-0000de50: 6e69 6361 7374 2073 6f63 6b65 7473 2e0a nicast sockets..\n-0000de60: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000de70: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000de80: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000de90: 2020 2020 2020 2020 2020 2020 2020 2028 (\n-0000dea0: 6c69 6e65 2020 3629 0a2a 2053 6f63 6b65 line 6).* Socke\n-0000deb0: 7420 3c31 3e3a 2020 2020 2020 2020 2020 t <1>: \n+0000de40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000de50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000de60: 2020 2020 2028 6c69 6e65 2036 3029 0a2a (line 60).*\n+0000de70: 2043 7265 6174 696e 6720 6120 5443 5020 Creating a TCP \n+0000de80: 736f 636b 6574 3a20 2020 2020 2020 2020 socket: \n+0000de90: 2020 2020 2020 2020 5365 7474 696e 6720 Setting \n+0000dea0: 7570 2075 6e69 6361 7374 2073 6f63 6b65 up unicast socke\n+0000deb0: 7473 2e0a 2020 2020 2020 2020 2020 2020 ts.. \n 0000dec0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ded0: 2020 536f 636b 6574 2028 7072 6f63 6564 Socket (proced\n-0000dee0: 7572 6529 2e20 2020 286c 696e 6520 2039 ure). (line 9\n-0000def0: 290a 2a20 536f 636b 6574 2073 6875 7464 ).* Socket shutd\n-0000df00: 6f77 6e3a 2020 2020 2020 2020 2020 2020 own: \n-0000df10: 2020 2020 2020 2020 2020 2053 6875 7464 Shutd\n-0000df20: 6f77 6e20 2870 726f 6365 6475 7265 292e own (procedure).\n-0000df30: 2028 6c69 6e65 2020 3629 0a2a 2053 6f63 (line 6).* Soc\n-0000df40: 6b65 745f 4572 726f 723a 2020 2020 2020 ket_Error: \n+0000ded0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000dee0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000def0: 2020 2028 6c69 6e65 2020 3629 0a2a 2043 (line 6).* C\n+0000df00: 7265 6174 696e 6720 6120 5544 5020 736f reating a UDP so\n+0000df10: 636b 6574 3a20 2020 2020 2020 2020 2020 cket: \n+0000df20: 2020 2020 2020 5365 7474 696e 6720 7570 Setting up\n+0000df30: 2075 6e69 6361 7374 2073 6f63 6b65 7473 unicast sockets\n+0000df40: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n 0000df50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000df60: 2020 2020 4269 6e64 2028 7072 6f63 6564 Bind (proced\n-0000df70: 7572 6529 2e20 2020 2020 286c 696e 6520 ure). (line \n-0000df80: 3330 290a 2a20 536f 636b 6574 5f45 7272 30).* Socket_Err\n-0000df90: 6f72 203c 313e 3a20 2020 2020 2020 2020 or <1>: \n-0000dfa0: 2020 2020 2020 2020 2020 2020 2043 6f6e Con\n-0000dfb0: 6e65 6374 2028 7072 6f63 6564 7572 6529 nect (procedure)\n-0000dfc0: 2e20 2028 6c69 6e65 2032 3729 0a2a 2053 . (line 27).* S\n-0000dfd0: 6f63 6b65 745f 4644 3a20 2020 2020 2020 ocket_FD: \n+0000df60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000df70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000df80: 2028 6c69 6e65 2020 3629 0a2a 2043 7265 (line 6).* Cre\n+0000df90: 6174 696e 6720 6120 756e 6963 6173 7420 ating a unicast \n+0000dfa0: 736f 636b 6574 3a20 2020 2020 2020 2020 socket: \n+0000dfb0: 2020 2020 5365 7474 696e 6720 7570 2075 Setting up u\n+0000dfc0: 6e69 6361 7374 2073 6f63 6b65 7473 2e0a nicast sockets..\n+0000dfd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000dfe0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000dff0: 2020 2020 2020 5365 7474 696e 6720 7570 Setting up\n-0000e000: 2075 6e69 6361 7374 2073 6f63 6b65 7473 unicast sockets\n-0000e010: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n-0000e020: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e030: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e040: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e050: 2028 6c69 6e65 2020 3629 0a2a 2053 6f63 (line 6).* Soc\n-0000e060: 6b65 745f 4644 203c 313e 3a20 2020 2020 ket_FD <1>: \n-0000e070: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e080: 2020 2020 536f 636b 6574 7320 7061 636b Sockets pack\n-0000e090: 6167 652e 2020 2020 2020 286c 696e 6520 age. (line \n-0000e0a0: 2039 290a 2a20 536f 636b 6574 732e 4163 9).* Sockets.Ac\n-0000e0b0: 6365 7074 5f53 6f63 6b65 743a 2020 2020 cept_Socket: \n-0000e0c0: 2020 2020 2020 2020 2020 2020 2041 6363 Acc\n-0000e0d0: 6570 745f 536f 636b 6574 2028 7072 6f63 ept_Socket (proc\n-0000e0e0: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n-0000e0f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000dff0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e000: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+0000e010: 6c69 6e65 2020 3629 0a2a 2045 7374 6162 line 6).* Estab\n+0000e020: 6c69 7368 696e 6720 6120 6c69 7374 656e lishing a listen\n+0000e030: 2071 7565 7565 3a20 2020 2020 2020 2020 queue: \n+0000e040: 2020 4c69 7374 656e 2028 7072 6f63 6564 Listen (proced\n+0000e050: 7572 6529 2e20 2020 286c 696e 6520 2036 ure). (line 6\n+0000e060: 290a 2a20 4669 6e64 696e 6720 4164 6153 ).* Finding AdaS\n+0000e070: 6f63 6b65 7473 206f 6e20 7468 6520 496e ockets on the In\n+0000e080: 7465 726e 6574 3a20 2020 2052 6573 6f75 ternet: Resou\n+0000e090: 7263 6573 206f 6e20 7468 6520 496e 7465 rces on the Inte\n+0000e0a0: 726e 6574 2e0a 2020 2020 2020 2020 2020 rnet.. \n+0000e0b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e0c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e0d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e0e0: 2020 2020 2028 6c69 6e65 2020 3629 0a2a (line 6).*\n+0000e0f0: 2047 6574 3a20 2020 2020 2020 2020 2020 Get: \n 0000e100: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e110: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e120: 2020 2020 2020 2028 6c69 6e65 2031 3129 (line 11)\n-0000e130: 0a2a 2053 6f63 6b65 7473 2e42 696e 643a .* Sockets.Bind:\n-0000e140: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e150: 2020 2020 2020 2020 2020 4269 6e64 2028 Bind (\n-0000e160: 7072 6f63 6564 7572 6529 2e20 2020 2020 procedure). \n-0000e170: 286c 696e 6520 3131 290a 2a20 536f 636b (line 11).* Sock\n-0000e180: 6574 732e 436f 6e6e 6563 743a 2020 2020 ets.Connect: \n+0000e110: 2020 2020 2020 2020 4765 7420 2866 756e Get (fun\n+0000e120: 6374 696f 6e29 2e20 2020 2020 2020 286c ction). (l\n+0000e130: 696e 6520 2039 290a 2a20 4765 745f 4368 ine 9).* Get_Ch\n+0000e140: 6172 3a20 2020 2020 2020 2020 2020 2020 ar: \n+0000e150: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e160: 2047 6574 5f43 6861 7220 2866 756e 6374 Get_Char (funct\n+0000e170: 696f 6e29 2e20 2028 6c69 6e65 2020 3929 ion). (line 9)\n+0000e180: 0a2a 2047 6574 5f4c 696e 653a 2020 2020 .* Get_Line: \n 0000e190: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e1a0: 2020 2043 6f6e 6e65 6374 2028 7072 6f63 Connect (proc\n-0000e1b0: 6564 7572 6529 2e20 2028 6c69 6e65 2031 edure). (line 1\n-0000e1c0: 3129 0a2a 2053 6f63 6b65 7473 2e47 6574 1).* Sockets.Get\n-0000e1d0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n-0000e1e0: 2020 2020 2020 2020 2020 2020 4765 7420 Get \n-0000e1f0: 2866 756e 6374 696f 6e29 2e20 2020 2020 (function). \n-0000e200: 2020 286c 696e 6520 3131 290a 2a20 536f (line 11).* So\n-0000e210: 636b 6574 732e 4765 745f 4368 6172 3a20 ckets.Get_Char: \n-0000e220: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e230: 2020 2020 2047 6574 5f43 6861 7220 2866 Get_Char (f\n-0000e240: 756e 6374 696f 6e29 2e20 2028 6c69 6e65 unction). (line\n-0000e250: 2031 3129 0a2a 2053 6f63 6b65 7473 2e47 11).* Sockets.G\n-0000e260: 6574 5f4c 696e 653a 2020 2020 2020 2020 et_Line: \n-0000e270: 2020 2020 2020 2020 2020 2020 2020 4765 Ge\n-0000e280: 745f 4c69 6e65 2028 6675 6e63 7469 6f6e t_Line (function\n-0000e290: 292e 2020 286c 696e 6520 3132 290a 2a20 ). (line 12).* \n-0000e2a0: 536f 636b 6574 732e 4765 745f 4c69 6e65 Sockets.Get_Line\n-0000e2b0: 203c 313e 3a20 2020 2020 2020 2020 2020 <1>: \n-0000e2c0: 2020 2020 2020 2047 6574 5f4c 696e 6520 Get_Line \n-0000e2d0: 2870 726f 6365 6475 7265 292e 2028 6c69 (procedure). (li\n-0000e2e0: 6e65 2031 3129 0a2a 2053 6f63 6b65 7473 ne 11).* Sockets\n-0000e2f0: 2e47 6574 5f52 6563 6569 7665 5f51 7565 .Get_Receive_Que\n-0000e300: 7565 5f53 697a 653a 2020 2020 2020 2020 ue_Size: \n-0000e310: 4765 745f 5265 6365 6976 655f 5175 6575 Get_Receive_Queu\n-0000e320: 655f 5369 7a65 2028 6675 6e63 7469 6f6e e_Size (function\n-0000e330: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n-0000e340: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e350: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e360: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e370: 2020 286c 696e 6520 3132 290a 2a20 536f (line 12).* So\n-0000e380: 636b 6574 732e 4765 745f 5365 6e64 5f51 ckets.Get_Send_Q\n-0000e390: 7565 7565 5f53 697a 653a 2020 2020 2020 ueue_Size: \n-0000e3a0: 2020 2020 2047 6574 5f53 656e 645f 5175 Get_Send_Qu\n-0000e3b0: 6575 655f 5369 7a65 2028 6675 6e63 7469 eue_Size (functi\n-0000e3c0: 6f6e 292e 0a20 2020 2020 2020 2020 2020 on).. \n-0000e3d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e3e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e3f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e400: 2020 2020 286c 696e 6520 3132 290a 2a20 (line 12).* \n-0000e410: 536f 636b 6574 732e 4765 7473 6f63 6b6f Sockets.Getsocko\n-0000e420: 7074 3a20 2020 2020 2020 2020 2020 2020 pt: \n-0000e430: 2020 2020 2020 2047 6574 736f 636b 6f70 Getsockop\n-0000e440: 7420 2870 726f 6365 6475 7265 292e 0a20 t (procedure).. \n-0000e450: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e460: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e470: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e480: 2020 2020 2020 2020 2020 2020 2020 286c (l\n-0000e490: 696e 6520 3132 290a 2a20 536f 636b 6574 ine 12).* Socket\n-0000e4a0: 732e 4950 5f41 4444 5f4d 454d 4245 5253 s.IP_ADD_MEMBERS\n-0000e4b0: 4849 503a 2020 2020 2020 2020 2020 2020 HIP: \n-0000e4c0: 2047 6574 736f 636b 6f70 7420 2870 726f Getsockopt (pro\n-0000e4d0: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n-0000e4e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e1a0: 2020 2020 2020 2020 2020 4765 745f 4c69 Get_Li\n+0000e1b0: 6e65 2028 6675 6e63 7469 6f6e 292e 2020 ne (function). \n+0000e1c0: 286c 696e 6520 2039 290a 2a20 4765 745f (line 9).* Get_\n+0000e1d0: 4c69 6e65 203c 313e 3a20 2020 2020 2020 Line <1>: \n+0000e1e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e1f0: 2020 2047 6574 5f4c 696e 6520 2870 726f Get_Line (pro\n+0000e200: 6365 6475 7265 292e 2028 6c69 6e65 2020 cedure). (line \n+0000e210: 3929 0a2a 2047 6574 5f50 6565 725f 4164 9).* Get_Peer_Ad\n+0000e220: 6472 3a20 2020 2020 2020 2020 2020 2020 dr: \n+0000e230: 2020 2020 2020 2020 2020 2020 4765 745f Get_\n+0000e240: 5065 6572 5f41 6464 7220 2866 756e 6374 Peer_Addr (funct\n+0000e250: 696f 6e29 2e0a 2020 2020 2020 2020 2020 ion).. \n+0000e260: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e270: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e280: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e290: 2020 2020 2028 6c69 6e65 2020 3929 0a2a (line 9).*\n+0000e2a0: 2047 6574 5f50 6565 725f 506f 7274 3a20 Get_Peer_Port: \n+0000e2b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e2c0: 2020 2020 2020 2020 4765 745f 5065 6572 Get_Peer\n+0000e2d0: 5f50 6f72 7420 2866 756e 6374 696f 6e29 _Port (function)\n+0000e2e0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n+0000e2f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e300: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e310: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e320: 2028 6c69 6e65 2020 3929 0a2a 2047 6574 (line 9).* Get\n+0000e330: 5f52 6563 6569 7665 5f51 7565 7565 5f53 _Receive_Queue_S\n+0000e340: 697a 653a 2020 2020 2020 2020 2020 2020 ize: \n+0000e350: 2020 2020 4765 745f 5265 6365 6976 655f Get_Receive_\n+0000e360: 5175 6575 655f 5369 7a65 2028 6675 6e63 Queue_Size (func\n+0000e370: 7469 6f6e 292e 0a20 2020 2020 2020 2020 tion).. \n+0000e380: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e390: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e3a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e3b0: 2020 2020 2020 286c 696e 6520 2039 290a (line 9).\n+0000e3c0: 2a20 4765 745f 5365 6e64 5f51 7565 7565 * Get_Send_Queue\n+0000e3d0: 5f53 697a 653a 2020 2020 2020 2020 2020 _Size: \n+0000e3e0: 2020 2020 2020 2020 2047 6574 5f53 656e Get_Sen\n+0000e3f0: 645f 5175 6575 655f 5369 7a65 2028 6675 d_Queue_Size (fu\n+0000e400: 6e63 7469 6f6e 292e 0a20 2020 2020 2020 nction).. \n+0000e410: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e420: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e430: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e440: 2020 2020 2020 2020 286c 696e 6520 2039 (line 9\n+0000e450: 290a 2a20 4765 745f 536f 636b 5f41 6464 ).* Get_Sock_Add\n+0000e460: 723a 2020 2020 2020 2020 2020 2020 2020 r: \n+0000e470: 2020 2020 2020 2020 2020 2047 6574 5f53 Get_S\n+0000e480: 6f63 6b5f 4164 6472 2028 6675 6e63 7469 ock_Addr (functi\n+0000e490: 6f6e 292e 0a20 2020 2020 2020 2020 2020 on).. \n+0000e4a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e4b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e4c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e4d0: 2020 2020 286c 696e 6520 2039 290a 2a20 (line 9).* \n+0000e4e0: 4765 745f 536f 636b 5f50 6f72 743a 2020 Get_Sock_Port: \n 0000e4f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e500: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e510: 2020 2020 2020 2020 286c 696e 6520 3230 (line 20\n-0000e520: 290a 2a20 536f 636b 6574 732e 4950 5f41 ).* Sockets.IP_A\n-0000e530: 4444 5f4d 454d 4245 5253 4849 5020 3c31 DD_MEMBERSHIP <1\n-0000e540: 3e3a 2020 2020 2020 2020 2053 6574 736f >: Setso\n-0000e550: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n-0000e560: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n-0000e570: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e500: 2020 2020 2020 2047 6574 5f53 6f63 6b5f Get_Sock_\n+0000e510: 506f 7274 2028 6675 6e63 7469 6f6e 292e Port (function).\n+0000e520: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+0000e530: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e540: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e550: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e560: 286c 696e 6520 2039 290a 2a20 4765 7473 (line 9).* Gets\n+0000e570: 6f63 6b6f 7074 3a20 2020 2020 2020 2020 ockopt: \n 0000e580: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e590: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e5a0: 2020 286c 696e 6520 3230 290a 2a20 536f (line 20).* So\n-0000e5b0: 636b 6574 732e 4950 5f44 524f 505f 4d45 ckets.IP_DROP_ME\n-0000e5c0: 4d42 4552 5348 4950 3a20 2020 2020 2020 MBERSHIP: \n-0000e5d0: 2020 2020 2047 6574 736f 636b 6f70 7420 Getsockopt \n-0000e5e0: 2870 726f 6365 6475 7265 292e 0a20 2020 (procedure).. \n-0000e5f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e600: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e610: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e620: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n-0000e630: 6520 3230 290a 2a20 536f 636b 6574 732e e 20).* Sockets.\n-0000e640: 4950 5f44 524f 505f 4d45 4d42 4552 5348 IP_DROP_MEMBERSH\n-0000e650: 4950 203c 313e 3a20 2020 2020 2020 2053 IP <1>: S\n-0000e660: 6574 736f 636b 6f70 7420 2870 726f 6365 etsockopt (proce\n-0000e670: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n-0000e680: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e690: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e6a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e6b0: 2020 2020 2020 286c 696e 6520 3230 290a (line 20).\n-0000e6c0: 2a20 536f 636b 6574 732e 4950 5f4d 554c * Sockets.IP_MUL\n-0000e6d0: 5449 4341 5354 5f4c 4f4f 503a 2020 2020 TICAST_LOOP: \n-0000e6e0: 2020 2020 2020 2020 2047 6574 736f 636b Getsock\n-0000e6f0: 6f70 7420 2870 726f 6365 6475 7265 292e opt (procedure).\n-0000e700: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n-0000e710: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e590: 2020 2047 6574 736f 636b 6f70 7420 2870 Getsockopt (p\n+0000e5a0: 726f 6365 6475 7265 292e 0a20 2020 2020 rocedure).. \n+0000e5b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e5c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e5d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e5e0: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n+0000e5f0: 2039 290a 2a20 4772 6f75 7020 636f 6d6d 9).* Group comm\n+0000e600: 756e 6963 6174 696f 6e3a 2020 2020 2020 unication: \n+0000e610: 2020 2020 2020 2020 2020 2020 2053 6574 Set\n+0000e620: 7469 6e67 2075 7020 6d75 6c74 6963 6173 ting up multicas\n+0000e630: 7420 736f 636b 6574 732e 0a20 2020 2020 t sockets.. \n+0000e640: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e650: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e660: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e670: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n+0000e680: 2036 290a 2a20 4861 6e64 6c69 6e67 2061 6).* Handling a\n+0000e690: 206e 6577 2063 6f6e 6e65 6374 696f 6e3a new connection:\n+0000e6a0: 2020 2020 2020 2020 2020 2020 2041 6363 Acc\n+0000e6b0: 6570 745f 536f 636b 6574 2028 7072 6f63 ept_Socket (proc\n+0000e6c0: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n+0000e6d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e6e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e6f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e700: 2020 2020 2020 2028 6c69 6e65 2020 3629 (line 6)\n+0000e710: 0a2a 2048 6f73 745f 456e 7472 793a 2020 .* Host_Entry: \n 0000e720: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e730: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e740: 286c 696e 6520 3230 290a 2a20 536f 636b (line 20).* Sock\n-0000e750: 6574 732e 4950 5f4d 554c 5449 4341 5354 ets.IP_MULTICAST\n-0000e760: 5f4c 4f4f 5020 3c31 3e3a 2020 2020 2020 _LOOP <1>: \n-0000e770: 2020 2053 6574 736f 636b 6f70 7420 2870 Setsockopt (p\n-0000e780: 726f 6365 6475 7265 292e 0a20 2020 2020 rocedure).. \n-0000e790: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e7a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e730: 2020 2020 2020 2020 2020 536f 636b 6574 Socket\n+0000e740: 732e 4e61 6d69 6e67 2070 6163 6b61 6765 s.Naming package\n+0000e750: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n+0000e760: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e770: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e780: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e790: 2028 6c69 6e65 2032 3429 0a2a 2048 6f73 (line 24).* Hos\n+0000e7a0: 745f 4e61 6d65 3a20 2020 2020 2020 2020 t_Name: \n 0000e7b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e7c0: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n-0000e7d0: 3230 290a 2a20 536f 636b 6574 732e 4950 20).* Sockets.IP\n-0000e7e0: 5f4d 554c 5449 4341 5354 5f54 544c 3a20 _MULTICAST_TTL: \n-0000e7f0: 2020 2020 2020 2020 2020 2020 2047 6574 Get\n-0000e800: 736f 636b 6f70 7420 2870 726f 6365 6475 sockopt (procedu\n-0000e810: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n-0000e820: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e830: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e840: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e850: 2020 2020 286c 696e 6520 3230 290a 2a20 (line 20).* \n-0000e860: 536f 636b 6574 732e 4950 5f4d 554c 5449 Sockets.IP_MULTI\n-0000e870: 4341 5354 5f54 544c 203c 313e 3a20 2020 CAST_TTL <1>: \n-0000e880: 2020 2020 2020 2053 6574 736f 636b 6f70 Setsockop\n-0000e890: 7420 2870 726f 6365 6475 7265 292e 0a20 t (procedure).. \n+0000e7c0: 2020 2020 486f 7374 5f4e 616d 6520 2866 Host_Name (f\n+0000e7d0: 756e 6374 696f 6e29 2e20 286c 696e 6520 unction). (line \n+0000e7e0: 2039 290a 2a20 496d 6167 653a 2020 2020 9).* Image: \n+0000e7f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e800: 2020 2020 2020 2020 2020 2020 2049 6d61 Ima\n+0000e810: 6765 2028 6675 6e63 7469 6f6e 292e 2020 ge (function). \n+0000e820: 2020 2028 6c69 6e65 2020 3929 0a2a 2049 (line 9).* I\n+0000e830: 6e66 6f5f 4f66 5f4e 616d 655f 4f72 5f49 nfo_Of_Name_Or_I\n+0000e840: 503a 2020 2020 2020 2020 2020 2020 2020 P: \n+0000e850: 2020 2020 2020 496e 666f 5f4f 665f 4e61 Info_Of_Na\n+0000e860: 6d65 5f4f 725f 4950 2028 6675 6e63 7469 me_Or_IP (functi\n+0000e870: 6f6e 292e 0a20 2020 2020 2020 2020 2020 on).. \n+0000e880: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e890: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000e8a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e8b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e8c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e8d0: 2020 2020 2020 2020 2020 2020 2020 286c (l\n-0000e8e0: 696e 6520 3230 290a 2a20 536f 636b 6574 ine 20).* Socket\n-0000e8f0: 732e 4950 5052 4f54 4f5f 4950 3a20 2020 s.IPPROTO_IP: \n+0000e8b0: 2020 2020 286c 696e 6520 2039 290a 2a20 (line 9).* \n+0000e8c0: 496e 7374 616c 6c69 6e67 2041 6461 536f Installing AdaSo\n+0000e8d0: 636b 6574 733a 2020 2020 2020 2020 2020 ckets: \n+0000e8e0: 2020 2020 2020 2049 6e73 7461 6c6c 696e Installin\n+0000e8f0: 6720 4164 6153 6f63 6b65 7473 2e0a 2020 g AdaSockets.. \n 0000e900: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e910: 2047 6574 736f 636b 6f70 7420 2870 726f Getsockopt (pro\n-0000e920: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n-0000e930: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e940: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e950: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e960: 2020 2020 2020 2020 286c 696e 6520 3230 (line 20\n-0000e970: 290a 2a20 536f 636b 6574 732e 4950 5052 ).* Sockets.IPPR\n-0000e980: 4f54 4f5f 4950 203c 313e 3a20 2020 2020 OTO_IP <1>: \n-0000e990: 2020 2020 2020 2020 2020 2053 6574 736f Setso\n-0000e9a0: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n-0000e9b0: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n-0000e9c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e9d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e9e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000e9f0: 2020 286c 696e 6520 3230 290a 2a20 536f (line 20).* So\n-0000ea00: 636b 6574 732e 4c69 7374 656e 3a20 2020 ckets.Listen: \n-0000ea10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ea20: 2020 2020 204c 6973 7465 6e20 2870 726f Listen (pro\n-0000ea30: 6365 6475 7265 292e 2020 2028 6c69 6e65 cedure). (line\n-0000ea40: 2031 3129 0a2a 2053 6f63 6b65 7473 2e4d 11).* Sockets.M\n-0000ea50: 756c 7469 6361 7374 2e43 7265 6174 655f ulticast.Create_\n-0000ea60: 4d75 6c74 6963 6173 745f 536f 636b 6574 Multicast_Socket\n-0000ea70: 3a20 5365 7474 696e 6720 7570 206d 756c : Setting up mul\n-0000ea80: 7469 6361 7374 2073 6f63 6b65 7473 2e0a ticast sockets..\n-0000ea90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e910: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e920: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e930: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n+0000e940: 6e65 2020 3629 0a2a 2049 505f 4144 445f ne 6).* IP_ADD_\n+0000e950: 4d45 4d42 4552 5348 4950 3a20 2020 2020 MEMBERSHIP: \n+0000e960: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e970: 4765 7473 6f63 6b6f 7074 2028 7072 6f63 Getsockopt (proc\n+0000e980: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n+0000e990: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e9a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e9b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000e9c0: 2020 2020 2020 2028 6c69 6e65 2032 3029 (line 20)\n+0000e9d0: 0a2a 2049 505f 4144 445f 4d45 4d42 4552 .* IP_ADD_MEMBER\n+0000e9e0: 5348 4950 203c 313e 3a20 2020 2020 2020 SHIP <1>: \n+0000e9f0: 2020 2020 2020 2020 2020 5365 7473 6f63 Setsoc\n+0000ea00: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n+0000ea10: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n+0000ea20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ea30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ea40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ea50: 2028 6c69 6e65 2032 3029 0a2a 2049 505f (line 20).* IP_\n+0000ea60: 4452 4f50 5f4d 454d 4245 5253 4849 503a DROP_MEMBERSHIP:\n+0000ea70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ea80: 2020 2020 4765 7473 6f63 6b6f 7074 2028 Getsockopt (\n+0000ea90: 7072 6f63 6564 7572 6529 2e0a 2020 2020 procedure).. \n 0000eaa0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000eab0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000eac0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n-0000ead0: 6c69 6e65 2031 3629 0a2a 2053 6f63 6b65 line 16).* Socke\n-0000eae0: 7473 2e4d 756c 7469 6361 7374 2e43 7265 ts.Multicast.Cre\n-0000eaf0: 6174 655f 4d75 6c74 6963 6173 745f 536f ate_Multicast_So\n-0000eb00: 636b 6574 203c 313e 3a20 4372 6561 7465 cket <1>: Create\n-0000eb10: 5f4d 756c 7469 6361 7374 5f53 6f63 6b65 _Multicast_Socke\n-0000eb20: 7420 2866 756e 6374 696f 6e29 2e0a 2020 t (function).. \n+0000eac0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ead0: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n+0000eae0: 2032 3029 0a2a 2049 505f 4452 4f50 5f4d 20).* IP_DROP_M\n+0000eaf0: 454d 4245 5253 4849 5020 3c31 3e3a 2020 EMBERSHIP <1>: \n+0000eb00: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n+0000eb10: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n+0000eb20: 7572 6529 2e0a 2020 2020 2020 2020 2020 ure).. \n 0000eb30: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000eb40: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000eb50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000eb60: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n-0000eb70: 6e65 2031 3429 0a2a 2053 6f63 6b65 7473 ne 14).* Sockets\n-0000eb80: 2e4d 756c 7469 6361 7374 2e43 7265 6174 .Multicast.Creat\n-0000eb90: 655f 4d75 6c74 6963 6173 745f 536f 636b e_Multicast_Sock\n-0000eba0: 6574 203c 323e 3a20 4372 6561 7465 5f4d et <2>: Create_M\n-0000ebb0: 756c 7469 6361 7374 5f53 6f63 6b65 7420 ulticast_Socket \n-0000ebc0: 2866 756e 6374 696f 6e29 2e0a 2020 2020 (function).. \n+0000eb60: 2020 2020 2028 6c69 6e65 2032 3029 0a2a (line 20).*\n+0000eb70: 2049 505f 4d55 4c54 4943 4153 545f 4c4f IP_MULTICAST_LO\n+0000eb80: 4f50 3a20 2020 2020 2020 2020 2020 2020 OP: \n+0000eb90: 2020 2020 2020 2020 4765 7473 6f63 6b6f Getsocko\n+0000eba0: 7074 2028 7072 6f63 6564 7572 6529 2e0a pt (procedure)..\n+0000ebb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ebc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000ebd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ebe0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ebf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ec00: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n-0000ec10: 2036 3829 0a2a 2053 6f63 6b65 7473 2e4e 68).* Sockets.N\n-0000ec20: 6577 5f4c 696e 653a 2020 2020 2020 2020 ew_Line: \n-0000ec30: 2020 2020 2020 2020 2020 2020 2020 4e65 Ne\n-0000ec40: 775f 4c69 6e65 2028 7072 6f63 6564 7572 w_Line (procedur\n-0000ec50: 6529 2e20 286c 696e 6520 3131 290a 2a20 e). (line 11).* \n-0000ec60: 536f 636b 6574 732e 5075 743a 2020 2020 Sockets.Put: \n-0000ec70: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ec80: 2020 2020 2020 2050 7574 2028 7072 6f63 Put (proc\n-0000ec90: 6564 7572 6529 2e20 2020 2020 2028 6c69 edure). (li\n-0000eca0: 6e65 2031 3129 0a2a 2053 6f63 6b65 7473 ne 11).* Sockets\n-0000ecb0: 2e50 7574 5f4c 696e 653a 2020 2020 2020 .Put_Line: \n-0000ecc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ecd0: 5075 745f 4c69 6e65 2028 7072 6f63 6564 Put_Line (proced\n-0000ece0: 7572 6529 2e20 286c 696e 6520 3131 290a ure). (line 11).\n-0000ecf0: 2a20 536f 636b 6574 732e 5265 6365 6976 * Sockets.Receiv\n-0000ed00: 653a 2020 2020 2020 2020 2020 2020 2020 e: \n-0000ed10: 2020 2020 2020 2020 2052 6563 6569 7665 Receive\n-0000ed20: 2028 6675 6e63 7469 6f6e 292e 2020 2028 (function). (\n-0000ed30: 6c69 6e65 2031 3229 0a2a 2053 6f63 6b65 line 12).* Socke\n-0000ed40: 7473 2e52 6563 6569 7665 203c 313e 3a20 ts.Receive <1>: \n+0000ebe0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+0000ebf0: 6c69 6e65 2032 3029 0a2a 2049 505f 4d55 line 20).* IP_MU\n+0000ec00: 4c54 4943 4153 545f 4c4f 4f50 203c 313e LTICAST_LOOP <1>\n+0000ec10: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+0000ec20: 2020 5365 7473 6f63 6b6f 7074 2028 7072 Setsockopt (pr\n+0000ec30: 6f63 6564 7572 6529 2e0a 2020 2020 2020 ocedure).. \n+0000ec40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ec50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ec60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ec70: 2020 2020 2020 2020 2028 6c69 6e65 2032 (line 2\n+0000ec80: 3029 0a2a 2049 505f 4d55 4c54 4943 4153 0).* IP_MULTICAS\n+0000ec90: 545f 5454 4c3a 2020 2020 2020 2020 2020 T_TTL: \n+0000eca0: 2020 2020 2020 2020 2020 2020 4765 7473 Gets\n+0000ecb0: 6f63 6b6f 7074 2028 7072 6f63 6564 7572 ockopt (procedur\n+0000ecc0: 6529 2e0a 2020 2020 2020 2020 2020 2020 e).. \n+0000ecd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ece0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ecf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ed00: 2020 2028 6c69 6e65 2032 3029 0a2a 2049 (line 20).* I\n+0000ed10: 505f 4d55 4c54 4943 4153 545f 5454 4c20 P_MULTICAST_TTL \n+0000ed20: 3c31 3e3a 2020 2020 2020 2020 2020 2020 <1>: \n+0000ed30: 2020 2020 2020 5365 7473 6f63 6b6f 7074 Setsockopt\n+0000ed40: 2028 7072 6f63 6564 7572 6529 2e0a 2020 (procedure).. \n 0000ed50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ed60: 2020 5265 6365 6976 6520 2870 726f 6365 Receive (proce\n-0000ed70: 6475 7265 292e 2020 286c 696e 6520 3131 dure). (line 11\n-0000ed80: 290a 2a20 536f 636b 6574 732e 5265 6365 ).* Sockets.Rece\n-0000ed90: 6976 655f 536f 6d65 3a20 2020 2020 2020 ive_Some: \n-0000eda0: 2020 2020 2020 2020 2020 2052 6563 6569 Recei\n-0000edb0: 7665 5f53 6f6d 6520 2870 726f 6365 6475 ve_Some (procedu\n-0000edc0: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n-0000edd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ed60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ed70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ed80: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n+0000ed90: 6e65 2032 3029 0a2a 2049 5050 524f 544f ne 20).* IPPROTO\n+0000eda0: 5f49 503a 2020 2020 2020 2020 2020 2020 _IP: \n+0000edb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000edc0: 4765 7473 6f63 6b6f 7074 2028 7072 6f63 Getsockopt (proc\n+0000edd0: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n 0000ede0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000edf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ee00: 2020 2020 286c 696e 6520 3133 290a 2a20 (line 13).* \n-0000ee10: 536f 636b 6574 732e 5365 6e64 3a20 2020 Sockets.Send: \n-0000ee20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ee30: 2020 2020 2020 2053 656e 6420 2870 726f Send (pro\n-0000ee40: 6365 6475 7265 292e 2020 2020 2028 6c69 cedure). (li\n-0000ee50: 6e65 2031 3129 0a2a 2053 6f63 6b65 7473 ne 11).* Sockets\n-0000ee60: 2e53 6574 5f42 7566 6665 723a 2020 2020 .Set_Buffer: \n+0000ee00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ee10: 2020 2020 2020 2028 6c69 6e65 2032 3029 (line 20)\n+0000ee20: 0a2a 2049 5050 524f 544f 5f49 5020 3c31 .* IPPROTO_IP <1\n+0000ee30: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n+0000ee40: 2020 2020 2020 2020 2020 5365 7473 6f63 Setsoc\n+0000ee50: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n+0000ee60: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n 0000ee70: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ee80: 5365 745f 4275 6666 6572 2028 7072 6f63 Set_Buffer (proc\n-0000ee90: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n-0000eea0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000eeb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ee80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ee90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000eea0: 2028 6c69 6e65 2032 3029 0a2a 2049 735f (line 20).* Is_\n+0000eeb0: 4950 5f41 6464 7265 7373 3a20 2020 2020 IP_Address: \n 0000eec0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000eed0: 2020 2020 2020 2028 6c69 6e65 2031 3129 (line 11)\n-0000eee0: 0a2a 2053 6f63 6b65 7473 2e53 6574 736f .* Sockets.Setso\n-0000eef0: 636b 6f70 743a 2020 2020 2020 2020 2020 ckopt: \n-0000ef00: 2020 2020 2020 2020 2020 5365 7473 6f63 Setsoc\n-0000ef10: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n-0000ef20: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n-0000ef30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000eed0: 2020 2020 4973 5f49 505f 4164 6472 6573 Is_IP_Addres\n+0000eee0: 7320 2866 756e 6374 696f 6e29 2e0a 2020 s (function).. \n+0000eef0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ef00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ef10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ef20: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n+0000ef30: 6e65 2020 3929 0a2a 204c 463a 2020 2020 ne 9).* LF: \n 0000ef40: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000ef50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ef60: 2028 6c69 6e65 2031 3229 0a2a 2053 6f63 (line 12).* Soc\n-0000ef70: 6b65 7473 2e53 6875 7464 6f77 6e3a 2020 kets.Shutdown: \n-0000ef80: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000ef90: 2020 2020 5368 7574 646f 776e 2028 7072 Shutdown (pr\n-0000efa0: 6f63 6564 7572 6529 2e20 286c 696e 6520 ocedure). (line \n-0000efb0: 3131 290a 2a20 536f 636b 6574 732e 534f 11).* Sockets.SO\n-0000efc0: 5f52 4356 4255 463a 2020 2020 2020 2020 _RCVBUF: \n-0000efd0: 2020 2020 2020 2020 2020 2020 2047 6574 Get\n-0000efe0: 736f 636b 6f70 7420 2870 726f 6365 6475 sockopt (procedu\n-0000eff0: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n-0000f000: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f010: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ef60: 4765 745f 4c69 6e65 2028 6675 6e63 7469 Get_Line (functi\n+0000ef70: 6f6e 292e 2020 286c 696e 6520 3231 290a on). (line 21).\n+0000ef80: 2a20 4c46 203c 313e 3a20 2020 2020 2020 * LF <1>: \n+0000ef90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000efa0: 2020 2020 2020 2020 2047 6574 5f4c 696e Get_Lin\n+0000efb0: 6520 2870 726f 6365 6475 7265 292e 2028 e (procedure). (\n+0000efc0: 6c69 6e65 2031 3829 0a2a 204c 4620 3c32 line 18).* LF <2\n+0000efd0: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n+0000efe0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000eff0: 2020 4e65 775f 4c69 6e65 2028 7072 6f63 New_Line (proc\n+0000f000: 6564 7572 6529 2e20 286c 696e 6520 3137 edure). (line 17\n+0000f010: 290a 2a20 4c69 7374 656e 3a20 2020 2020 ).* Listen: \n 0000f020: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f030: 2020 2020 286c 696e 6520 3230 290a 2a20 (line 20).* \n-0000f040: 536f 636b 6574 732e 534f 5f52 4356 4255 Sockets.SO_RCVBU\n-0000f050: 4620 3c31 3e3a 2020 2020 2020 2020 2020 F <1>: \n-0000f060: 2020 2020 2020 2053 6574 736f 636b 6f70 Setsockop\n-0000f070: 7420 2870 726f 6365 6475 7265 292e 0a20 t (procedure).. \n-0000f080: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f090: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f0a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f0b0: 2020 2020 2020 2020 2020 2020 2020 286c (l\n-0000f0c0: 696e 6520 3230 290a 2a20 536f 636b 6574 ine 20).* Socket\n-0000f0d0: 732e 534f 5f52 4555 5345 4144 4452 3a20 s.SO_REUSEADDR: \n-0000f0e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f0f0: 2047 6574 736f 636b 6f70 7420 2870 726f Getsockopt (pro\n-0000f100: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n+0000f030: 2020 2020 2020 2020 2020 204c 6973 7465 Liste\n+0000f040: 6e20 2870 726f 6365 6475 7265 292e 2020 n (procedure). \n+0000f050: 2028 6c69 6e65 2020 3929 0a2a 204c 6973 (line 9).* Lis\n+0000f060: 7465 6e20 7175 6575 653a 2020 2020 2020 ten queue: \n+0000f070: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f080: 2020 2020 4c69 7374 656e 2028 7072 6f63 Listen (proc\n+0000f090: 6564 7572 6529 2e20 2020 286c 696e 6520 edure). (line \n+0000f0a0: 2036 290a 2a20 4d61 6e69 7075 6c61 7469 6).* Manipulati\n+0000f0b0: 6e67 2073 6f63 6b65 7420 6f70 7469 6f6e ng socket option\n+0000f0c0: 733a 2020 2020 2020 2020 2020 2047 6574 s: Get\n+0000f0d0: 736f 636b 6f70 7420 2870 726f 6365 6475 sockopt (procedu\n+0000f0e0: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n+0000f0f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f100: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f110: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f120: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f130: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f140: 2020 2020 2020 2020 286c 696e 6520 3230 (line 20\n-0000f150: 290a 2a20 536f 636b 6574 732e 534f 5f52 ).* Sockets.SO_R\n-0000f160: 4555 5345 4144 4452 203c 313e 3a20 2020 EUSEADDR <1>: \n-0000f170: 2020 2020 2020 2020 2020 2053 6574 736f Setso\n-0000f180: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n-0000f190: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n-0000f1a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f1b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f120: 2020 2020 286c 696e 6520 2036 290a 2a20 (line 6).* \n+0000f130: 4d61 6e69 7075 6c61 7469 6e67 2073 6f63 Manipulating soc\n+0000f140: 6b65 7420 6f70 7469 6f6e 7320 3c31 3e3a ket options <1>:\n+0000f150: 2020 2020 2020 2053 6574 736f 636b 6f70 Setsockop\n+0000f160: 7420 2870 726f 6365 6475 7265 292e 0a20 t (procedure).. \n+0000f170: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f180: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f190: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f1a0: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+0000f1b0: 696e 6520 2036 290a 2a20 4d62 6f6e 653a ine 6).* Mbone:\n 0000f1c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f1d0: 2020 286c 696e 6520 3230 290a 2a20 536f (line 20).* So\n-0000f1e0: 636b 6574 732e 534f 5f52 4555 5345 504f ckets.SO_REUSEPO\n-0000f1f0: 5254 3a20 2020 2020 2020 2020 2020 2020 RT: \n-0000f200: 2020 2020 2047 6574 736f 636b 6f70 7420 Getsockopt \n-0000f210: 2870 726f 6365 6475 7265 292e 0a20 2020 (procedure).. \n+0000f1d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f1e0: 2053 6574 7469 6e67 2075 7020 6d75 6c74 Setting up mult\n+0000f1f0: 6963 6173 7420 736f 636b 6574 732e 0a20 icast sockets.. \n+0000f200: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f210: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f220: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f230: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f240: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f250: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n-0000f260: 6520 3230 290a 2a20 536f 636b 6574 732e e 20).* Sockets.\n-0000f270: 534f 5f52 4555 5345 504f 5254 203c 313e SO_REUSEPORT <1>\n-0000f280: 3a20 2020 2020 2020 2020 2020 2020 2053 : S\n-0000f290: 6574 736f 636b 6f70 7420 2870 726f 6365 etsockopt (proce\n-0000f2a0: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n+0000f230: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+0000f240: 696e 6520 2036 290a 2a20 4d75 6c74 6963 ine 6).* Multic\n+0000f250: 6173 7420 736f 636b 6574 733a 2020 2020 ast sockets: \n+0000f260: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f270: 2053 6574 7469 6e67 2075 7020 6d75 6c74 Setting up mult\n+0000f280: 6963 6173 7420 736f 636b 6574 732e 0a20 icast sockets.. \n+0000f290: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f2a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f2b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f2c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f2d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f2e0: 2020 2020 2020 286c 696e 6520 3230 290a (line 20).\n-0000f2f0: 2a20 536f 636b 6574 732e 534f 5f53 4e44 * Sockets.SO_SND\n-0000f300: 4255 463a 2020 2020 2020 2020 2020 2020 BUF: \n-0000f310: 2020 2020 2020 2020 2047 6574 736f 636b Getsock\n-0000f320: 6f70 7420 2870 726f 6365 6475 7265 292e opt (procedure).\n-0000f330: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+0000f2c0: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+0000f2d0: 696e 6520 2036 290a 2a20 4d75 6c74 6963 ine 6).* Multic\n+0000f2e0: 6173 745f 536f 636b 6574 5f46 443a 2020 ast_Socket_FD: \n+0000f2f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f300: 2053 6574 7469 6e67 2075 7020 6d75 6c74 Setting up mult\n+0000f310: 6963 6173 7420 736f 636b 6574 732e 0a20 icast sockets.. \n+0000f320: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f330: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f340: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f350: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f360: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f370: 286c 696e 6520 3230 290a 2a20 536f 636b (line 20).* Sock\n-0000f380: 6574 732e 534f 5f53 4e44 4255 4620 3c31 ets.SO_SNDBUF <1\n-0000f390: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n-0000f3a0: 2020 2053 6574 736f 636b 6f70 7420 2870 Setsockopt (p\n-0000f3b0: 726f 6365 6475 7265 292e 0a20 2020 2020 rocedure).. \n+0000f350: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+0000f360: 696e 6520 3136 290a 2a20 4d75 6c74 6963 ine 16).* Multic\n+0000f370: 6173 745f 536f 636b 6574 5f46 4420 3c31 ast_Socket_FD <1\n+0000f380: 3e3a 2020 2020 2020 2020 2020 2020 2020 >: \n+0000f390: 2053 6f63 6b65 7473 2e4d 756c 7469 6361 Sockets.Multica\n+0000f3a0: 7374 2070 6163 6b61 6765 2e0a 2020 2020 st package.. \n+0000f3b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f3c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f3d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f3e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f3f0: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n-0000f400: 3230 290a 2a20 536f 636b 6574 732e 536f 20).* Sockets.So\n-0000f410: 636b 6574 3a20 2020 2020 2020 2020 2020 cket: \n-0000f420: 2020 2020 2020 2020 2020 2020 2053 6574 Set\n-0000f430: 7469 6e67 2075 7020 756e 6963 6173 7420 ting up unicast \n-0000f440: 736f 636b 6574 732e 0a20 2020 2020 2020 sockets.. \n+0000f3e0: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n+0000f3f0: 2020 3829 0a2a 204e 616d 655f 4f66 3a20 8).* Name_Of: \n+0000f400: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f410: 2020 2020 2020 2020 2020 2020 2020 4e61 Na\n+0000f420: 6d65 5f4f 6620 2866 756e 6374 696f 6e29 me_Of (function)\n+0000f430: 2e20 2020 286c 696e 6520 2039 290a 2a20 . (line 9).* \n+0000f440: 4e61 6d69 6e67 5f45 7272 6f72 3a20 2020 Naming_Error: \n 0000f450: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f460: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f470: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f480: 2020 2020 2020 2020 286c 696e 6520 2036 (line 6\n-0000f490: 290a 2a20 536f 636b 6574 732e 536f 636b ).* Sockets.Sock\n-0000f4a0: 6574 203c 313e 3a20 2020 2020 2020 2020 et <1>: \n-0000f4b0: 2020 2020 2020 2020 2020 2053 6f63 6b65 Socke\n-0000f4c0: 7420 2870 726f 6365 6475 7265 292e 2020 t (procedure). \n-0000f4d0: 2028 6c69 6e65 2031 3229 0a2a 2053 6f63 (line 12).* Soc\n-0000f4e0: 6b65 7473 2e53 4f4c 5f53 4f43 4b45 543a kets.SOL_SOCKET:\n-0000f4f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f500: 2020 2020 4765 7473 6f63 6b6f 7074 2028 Getsockopt (\n-0000f510: 7072 6f63 6564 7572 6529 2e0a 2020 2020 procedure).. \n+0000f460: 2020 2020 2020 2041 6464 7265 7373 5f4f Address_O\n+0000f470: 6620 2866 756e 6374 696f 6e29 2e0a 2020 f (function).. \n+0000f480: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f490: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f4a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f4b0: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n+0000f4c0: 6e65 2032 3129 0a2a 204e 616d 696e 675f ne 21).* Naming_\n+0000f4d0: 4572 726f 7220 3c31 3e3a 2020 2020 2020 Error <1>: \n+0000f4e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f4f0: 496e 666f 5f4f 665f 4e61 6d65 5f4f 725f Info_Of_Name_Or_\n+0000f500: 4950 2028 6675 6e63 7469 6f6e 292e 0a20 IP (function).. \n+0000f510: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f520: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f530: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f540: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f550: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n-0000f560: 2032 3029 0a2a 2053 6f63 6b65 7473 2e53 20).* Sockets.S\n-0000f570: 4f4c 5f53 4f43 4b45 5420 3c31 3e3a 2020 OL_SOCKET <1>: \n-0000f580: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n-0000f590: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n-0000f5a0: 7572 6529 2e0a 2020 2020 2020 2020 2020 ure).. \n+0000f540: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+0000f550: 696e 6520 3235 290a 2a20 4e61 6d69 6e67 ine 25).* Naming\n+0000f560: 5f45 7272 6f72 203c 323e 3a20 2020 2020 _Error <2>: \n+0000f570: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f580: 204e 616d 655f 4f66 2028 6675 6e63 7469 Name_Of (functi\n+0000f590: 6f6e 292e 2020 2028 6c69 6e65 2032 3029 on). (line 20)\n+0000f5a0: 0a2a 204e 6577 5f4c 696e 653a 2020 2020 .* New_Line: \n 0000f5b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f5c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f5d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f5e0: 2020 2020 2028 6c69 6e65 2032 3029 0a2a (line 20).*\n-0000f5f0: 2053 6f63 6b65 7473 2e55 6e73 6574 5f42 Sockets.Unset_B\n-0000f600: 7566 6665 723a 2020 2020 2020 2020 2020 uffer: \n-0000f610: 2020 2020 2020 2020 556e 7365 745f 4275 Unset_Bu\n-0000f620: 6666 6572 2028 7072 6f63 6564 7572 6529 ffer (procedure)\n-0000f630: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n+0000f5c0: 2020 2020 2020 2020 2020 4e65 775f 4c69 New_Li\n+0000f5d0: 6e65 2028 7072 6f63 6564 7572 6529 2e20 ne (procedure). \n+0000f5e0: 286c 696e 6520 2039 290a 2a20 5046 5f49 (line 9).* PF_I\n+0000f5f0: 4e45 543a 2020 2020 2020 2020 2020 2020 NET: \n+0000f600: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f610: 2020 2053 6f63 6b65 7420 2870 726f 6365 Socket (proce\n+0000f620: 6475 7265 292e 2020 2028 6c69 6e65 2031 dure). (line 1\n+0000f630: 3929 0a2a 2050 7574 3a20 2020 2020 2020 9).* Put: \n 0000f640: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f650: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f660: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f670: 2028 6c69 6e65 2031 3129 0a2a 2053 4f4c (line 11).* SOL\n-0000f680: 5f53 4f43 4b45 543a 2020 2020 2020 2020 _SOCKET: \n+0000f650: 2020 2020 2020 2020 2020 2020 5075 7420 Put \n+0000f660: 2870 726f 6365 6475 7265 292e 2020 2020 (procedure). \n+0000f670: 2020 286c 696e 6520 2039 290a 2a20 5075 (line 9).* Pu\n+0000f680: 745f 4c69 6e65 3a20 2020 2020 2020 2020 t_Line: \n 0000f690: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f6a0: 2020 2020 4765 7473 6f63 6b6f 7074 2028 Getsockopt (\n-0000f6b0: 7072 6f63 6564 7572 6529 2e0a 2020 2020 procedure).. \n-0000f6c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f6d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f6e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f6f0: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n-0000f700: 2032 3029 0a2a 2053 4f4c 5f53 4f43 4b45 20).* SOL_SOCKE\n-0000f710: 5420 3c31 3e3a 2020 2020 2020 2020 2020 T <1>: \n-0000f720: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n-0000f730: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n-0000f740: 7572 6529 2e0a 2020 2020 2020 2020 2020 ure).. \n-0000f750: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f6a0: 2020 2020 2050 7574 5f4c 696e 6520 2870 Put_Line (p\n+0000f6b0: 726f 6365 6475 7265 292e 2028 6c69 6e65 rocedure). (line\n+0000f6c0: 2020 3929 0a2a 2052 6177 2064 6174 6120 9).* Raw data \n+0000f6d0: 6d61 6e69 7075 6c61 7469 6f6e 3a20 2020 manipulation: \n+0000f6e0: 2020 2020 2020 2020 2020 2020 2020 5261 Ra\n+0000f6f0: 7720 6461 7461 206d 616e 6970 756c 6174 w data manipulat\n+0000f700: 696f 6e2e 0a20 2020 2020 2020 2020 2020 ion.. \n+0000f710: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f720: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f730: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f740: 2020 2020 286c 696e 6520 2036 290a 2a20 (line 6).* \n+0000f750: 5265 6365 6976 653a 2020 2020 2020 2020 Receive: \n 0000f760: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f770: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f780: 2020 2020 2028 6c69 6e65 2032 3029 0a2a (line 20).*\n-0000f790: 2053 7472 6561 6d5f 456c 656d 656e 745f Stream_Element_\n-0000f7a0: 4172 7261 793a 2020 2020 2020 2020 2020 Array: \n-0000f7b0: 2020 2020 2020 2020 5261 7720 6461 7461 Raw data\n-0000f7c0: 206d 616e 6970 756c 6174 696f 6e2e 0a20 manipulation.. \n-0000f7d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f7e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f770: 2020 2020 2020 2052 6563 6569 7665 2028 Receive (\n+0000f780: 6675 6e63 7469 6f6e 292e 2020 2028 6c69 function). (li\n+0000f790: 6e65 2020 3929 0a2a 2052 6563 6569 7665 ne 9).* Receive\n+0000f7a0: 203c 313e 3a20 2020 2020 2020 2020 2020 <1>: \n+0000f7b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f7c0: 5265 6365 6976 6520 2870 726f 6365 6475 Receive (procedu\n+0000f7d0: 7265 292e 2020 286c 696e 6520 2039 290a re). (line 9).\n+0000f7e0: 2a20 5265 6365 6976 6520 3c32 3e3a 2020 * Receive <2>: \n 0000f7f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f800: 2020 2020 2020 2020 2020 2020 2020 286c (l\n-0000f810: 696e 6520 2036 290a 2a20 5374 7265 616d ine 6).* Stream\n-0000f820: 5f45 6c65 6d65 6e74 5f41 7272 6179 203c _Element_Array <\n-0000f830: 313e 3a20 2020 2020 2020 2020 2020 2020 1>: \n-0000f840: 2052 6563 6569 7665 2028 6675 6e63 7469 Receive (functi\n-0000f850: 6f6e 292e 2020 2028 6c69 6e65 2032 3229 on). (line 22)\n-0000f860: 0a2a 2053 7472 6561 6d5f 456c 656d 656e .* Stream_Elemen\n-0000f870: 745f 4172 7261 7920 3c32 3e3a 2020 2020 t_Array <2>: \n-0000f880: 2020 2020 2020 2020 2020 5265 6365 6976 Receiv\n-0000f890: 6520 2870 726f 6365 6475 7265 292e 2020 e (procedure). \n-0000f8a0: 286c 696e 6520 3138 290a 2a20 5374 7265 (line 18).* Stre\n-0000f8b0: 616d 5f45 6c65 6d65 6e74 5f41 7272 6179 am_Element_Array\n-0000f8c0: 203c 333e 3a20 2020 2020 2020 2020 2020 <3>: \n-0000f8d0: 2020 2052 6563 6569 7665 5f53 6f6d 6520 Receive_Some \n-0000f8e0: 2870 726f 6365 6475 7265 292e 0a20 2020 (procedure).. \n-0000f8f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f800: 2020 2020 2020 2020 2053 6875 7464 6f77 Shutdow\n+0000f810: 6e20 2870 726f 6365 6475 7265 292e 2028 n (procedure). (\n+0000f820: 6c69 6e65 2031 3729 0a2a 2052 6563 6569 line 17).* Recei\n+0000f830: 7665 5f53 6f6d 653a 2020 2020 2020 2020 ve_Some: \n+0000f840: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f850: 2020 5265 6365 6976 655f 536f 6d65 2028 Receive_Some (\n+0000f860: 7072 6f63 6564 7572 6529 2e0a 2020 2020 procedure).. \n+0000f870: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f880: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f890: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f8a0: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n+0000f8b0: 2020 3929 0a2a 2052 6563 6569 7669 6e67 9).* Receiving\n+0000f8c0: 2064 6174 613a 2020 2020 2020 2020 2020 data: \n+0000f8d0: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n+0000f8e0: 6e64 696e 6720 616e 6420 7265 6365 6976 nding and receiv\n+0000f8f0: 696e 6720 6461 7461 2e0a 2020 2020 2020 ing data.. \n 0000f900: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000f910: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000f920: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n-0000f930: 6520 3231 290a 2a20 5374 7265 616d 5f45 e 21).* Stream_E\n-0000f940: 6c65 6d65 6e74 5f41 7272 6179 203c 343e lement_Array <4>\n-0000f950: 3a20 2020 2020 2020 2020 2020 2020 2053 : S\n-0000f960: 656e 6420 2870 726f 6365 6475 7265 292e end (procedure).\n-0000f970: 2020 2020 2028 6c69 6e65 2031 3729 0a2a (line 17).*\n-0000f980: 2053 7472 6561 6d5f 456c 656d 656e 745f Stream_Element_\n-0000f990: 436f 756e 743a 2020 2020 2020 2020 2020 Count: \n-0000f9a0: 2020 2020 2020 2020 5265 6365 6976 6520 Receive \n-0000f9b0: 2866 756e 6374 696f 6e29 2e20 2020 286c (function). (l\n-0000f9c0: 696e 6520 3232 290a 2a20 5374 7265 616d ine 22).* Stream\n-0000f9d0: 5f45 6c65 6d65 6e74 5f43 6f75 6e74 203c _Element_Count <\n-0000f9e0: 313e 3a20 2020 2020 2020 2020 2020 2020 1>: \n-0000f9f0: 2052 6563 6569 7665 5f53 6f6d 6520 2870 Receive_Some (p\n-0000fa00: 726f 6365 6475 7265 292e 0a20 2020 2020 rocedure).. \n-0000fa10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fa20: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fa30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fa40: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n-0000fa50: 3231 290a 2a20 5375 6767 6573 7469 6e67 21).* Suggesting\n-0000fa60: 2061 2066 6561 7475 7265 3a20 2020 2020 a feature: \n-0000fa70: 2020 2020 2020 2020 2020 2020 2052 6573 Res\n-0000fa80: 6f75 7263 6573 206f 6e20 7468 6520 496e ources on the In\n-0000fa90: 7465 726e 6574 2e0a 2020 2020 2020 2020 ternet.. \n-0000faa0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fab0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f920: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000f930: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line \n+0000f940: 3629 0a2a 2052 6563 6569 7669 6e67 2064 6).* Receiving d\n+0000f950: 6174 6120 3c31 3e3a 2020 2020 2020 2020 ata <1>: \n+0000f960: 2020 2020 2020 2020 2020 2020 4765 7420 Get \n+0000f970: 2866 756e 6374 696f 6e29 2e20 2020 2020 (function). \n+0000f980: 2020 286c 696e 6520 2036 290a 2a20 5265 (line 6).* Re\n+0000f990: 6365 6976 696e 6720 6461 7461 203c 323e ceiving data <2>\n+0000f9a0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+0000f9b0: 2020 2020 2047 6574 5f43 6861 7220 2866 Get_Char (f\n+0000f9c0: 756e 6374 696f 6e29 2e20 2028 6c69 6e65 unction). (line\n+0000f9d0: 2020 3629 0a2a 2052 6563 6569 7669 6e67 6).* Receiving\n+0000f9e0: 2064 6174 6120 3c33 3e3a 2020 2020 2020 data <3>: \n+0000f9f0: 2020 2020 2020 2020 2020 2020 2020 4765 Ge\n+0000fa00: 745f 4c69 6e65 2028 6675 6e63 7469 6f6e t_Line (function\n+0000fa10: 292e 2020 286c 696e 6520 2036 290a 2a20 ). (line 6).* \n+0000fa20: 5265 6365 6976 696e 6720 6461 7461 203c Receiving data <\n+0000fa30: 343e 3a20 2020 2020 2020 2020 2020 2020 4>: \n+0000fa40: 2020 2020 2020 2047 6574 5f4c 696e 6520 Get_Line \n+0000fa50: 2870 726f 6365 6475 7265 292e 2028 6c69 (procedure). (li\n+0000fa60: 6e65 2020 3629 0a2a 2052 6563 6569 7669 ne 6).* Receivi\n+0000fa70: 6e67 2064 6174 6120 3c35 3e3a 2020 2020 ng data <5>: \n+0000fa80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fa90: 4765 745f 5265 6365 6976 655f 5175 6575 Get_Receive_Queu\n+0000faa0: 655f 5369 7a65 2028 6675 6e63 7469 6f6e e_Size (function\n+0000fab0: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n 0000fac0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fad0: 2020 2020 2020 2028 6c69 6e65 2020 3629 (line 6)\n-0000fae0: 0a2a 2054 4350 2073 6f63 6b65 743a 2020 .* TCP socket: \n-0000faf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fb00: 2020 2020 2020 2020 2020 5365 7474 696e Settin\n-0000fb10: 6720 7570 2075 6e69 6361 7374 2073 6f63 g up unicast soc\n-0000fb20: 6b65 7473 2e0a 2020 2020 2020 2020 2020 kets.. \n-0000fb30: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fb40: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fb50: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fb60: 2020 2020 2028 6c69 6e65 2020 3629 0a2a (line 6).*\n-0000fb70: 2055 4450 2073 6f63 6b65 743a 2020 2020 UDP socket: \n-0000fb80: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fb90: 2020 2020 2020 2020 5365 7474 696e 6720 Setting \n-0000fba0: 7570 2075 6e69 6361 7374 2073 6f63 6b65 up unicast socke\n-0000fbb0: 7473 2e0a 2020 2020 2020 2020 2020 2020 ts.. \n-0000fbc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fbd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fad0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fae0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000faf0: 2020 286c 696e 6520 2036 290a 2a20 5265 (line 6).* Re\n+0000fb00: 6365 6976 696e 6720 6461 7461 203c 363e ceiving data <6>\n+0000fb10: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+0000fb20: 2020 2020 2052 6563 6569 7665 2028 6675 Receive (fu\n+0000fb30: 6e63 7469 6f6e 292e 2020 2028 6c69 6e65 nction). (line\n+0000fb40: 2020 3629 0a2a 2052 6563 6569 7669 6e67 6).* Receiving\n+0000fb50: 2064 6174 6120 3c37 3e3a 2020 2020 2020 data <7>: \n+0000fb60: 2020 2020 2020 2020 2020 2020 2020 5265 Re\n+0000fb70: 6365 6976 6520 2870 726f 6365 6475 7265 ceive (procedure\n+0000fb80: 292e 2020 286c 696e 6520 2036 290a 2a20 ). (line 6).* \n+0000fb90: 5265 6365 6976 696e 6720 6461 7461 203c Receiving data <\n+0000fba0: 383e 3a20 2020 2020 2020 2020 2020 2020 8>: \n+0000fbb0: 2020 2020 2020 2052 6563 6569 7665 5f53 Receive_S\n+0000fbc0: 6f6d 6520 2870 726f 6365 6475 7265 292e ome (procedure).\n+0000fbd0: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n 0000fbe0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fbf0: 2020 2028 6c69 6e65 2020 3629 0a2a 2055 (line 6).* U\n-0000fc00: 6e69 6361 7374 2073 6f63 6b65 7473 3a20 nicast sockets: \n-0000fc10: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fc20: 2020 2020 2020 5365 7474 696e 6720 7570 Setting up\n-0000fc30: 2075 6e69 6361 7374 2073 6f63 6b65 7473 unicast sockets\n-0000fc40: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n-0000fc50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fbf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fc00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fc10: 286c 696e 6520 2036 290a 2a20 5265 6365 (line 6).* Rece\n+0000fc20: 6976 696e 6720 6461 7461 203c 393e 3a20 iving data <9>: \n+0000fc30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fc40: 2020 2053 6574 5f42 7566 6665 7220 2870 Set_Buffer (p\n+0000fc50: 726f 6365 6475 7265 292e 0a20 2020 2020 rocedure).. \n 0000fc60: 2020 2020 2020 2020 2020 2020 2020 2020 \n 0000fc70: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fc80: 2028 6c69 6e65 2020 3629 0a2a 2055 6e73 (line 6).* Uns\n-0000fc90: 6574 5f42 7566 6665 723a 2020 2020 2020 et_Buffer: \n-0000fca0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fcb0: 2020 2020 556e 7365 745f 4275 6666 6572 Unset_Buffer\n-0000fcc0: 2028 7072 6f63 6564 7572 6529 2e0a 2020 (procedure).. \n-0000fcd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fce0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fc80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fc90: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n+0000fca0: 2036 290a 2a20 5265 6365 6976 696e 6720 6).* Receiving \n+0000fcb0: 6461 7461 203c 3130 3e3a 2020 2020 2020 data <10>: \n+0000fcc0: 2020 2020 2020 2020 2020 2020 2055 6e73 Uns\n+0000fcd0: 6574 5f42 7566 6665 7220 2870 726f 6365 et_Buffer (proce\n+0000fce0: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n 0000fcf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n-0000fd00: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n-0000fd10: 6e65 2020 3929 0a0a 0a1f 0a54 6167 2054 ne 9).....Tag T\n-0000fd20: 6162 6c65 3a0a 4e6f 6465 3a20 546f 707f able:.Node: Top.\n-0000fd30: 3831 360a 4e6f 6465 3a20 5768 6174 2069 816.Node: What i\n-0000fd40: 7320 4164 6153 6f63 6b65 7473 3f7f 3133 s AdaSockets?.13\n-0000fd50: 3839 0a4e 6f64 653a 2049 6e73 7461 6c6c 89.Node: Install\n-0000fd60: 696e 6720 4164 6153 6f63 6b65 7473 7f32 ing AdaSockets.2\n-0000fd70: 3239 300a 4e6f 6465 3a20 5573 696e 6720 290.Node: Using \n-0000fd80: 4164 6153 6f63 6b65 7473 7f33 3239 370a AdaSockets.3297.\n-0000fd90: 4e6f 6465 3a20 436f 6d70 696c 696e 6720 Node: Compiling \n-0000fda0: 616e 2041 6461 2061 7070 6c69 6361 7469 an Ada applicati\n-0000fdb0: 6f6e 7f33 3538 380a 4e6f 6465 3a20 5365 on.3588.Node: Se\n-0000fdc0: 7474 696e 6720 7570 2075 6e69 6361 7374 tting up unicast\n-0000fdd0: 2073 6f63 6b65 7473 7f34 3233 350a 4e6f sockets.4235.No\n-0000fde0: 6465 3a20 5365 7474 696e 6720 7570 206d de: Setting up m\n-0000fdf0: 756c 7469 6361 7374 2073 6f63 6b65 7473 ulticast sockets\n-0000fe00: 7f35 3534 390a 4e6f 6465 3a20 5365 6e64 .5549.Node: Send\n-0000fe10: 696e 6720 616e 6420 7265 6365 6976 696e ing and receivin\n-0000fe20: 6720 6461 7461 7f36 3930 320a 4e6f 6465 g data.6902.Node\n-0000fe30: 3a20 5261 7720 6461 7461 206d 616e 6970 : Raw data manip\n-0000fe40: 756c 6174 696f 6e7f 3732 3634 0a4e 6f64 ulation.7264.Nod\n-0000fe50: 653a 2053 7472 696e 672d 6f72 6965 6e74 e: String-orient\n-0000fe60: 6564 2065 7863 6861 6e67 6573 7f37 3637 ed exchanges.767\n-0000fe70: 320a 4e6f 6465 3a20 536f 636b 6574 7320 2.Node: Sockets \n-0000fe80: 7061 636b 6167 657f 3838 3035 0a4e 6f64 package.8805.Nod\n-0000fe90: 653a 2041 6363 6570 745f 536f 636b 6574 e: Accept_Socket\n-0000fea0: 2028 7072 6f63 6564 7572 6529 7f31 3130 (procedure).110\n-0000feb0: 3838 0a4e 6f64 653a 2042 696e 6420 2870 88.Node: Bind (p\n-0000fec0: 726f 6365 6475 7265 297f 3133 3439 350a rocedure).13495.\n-0000fed0: 4e6f 6465 3a20 436f 6e6e 6563 7420 2870 Node: Connect (p\n-0000fee0: 726f 6365 6475 7265 297f 3134 3737 320a rocedure).14772.\n-0000fef0: 4e6f 6465 3a20 4765 7420 2866 756e 6374 Node: Get (funct\n-0000ff00: 696f 6e29 7f31 3631 3635 0a4e 6f64 653a ion).16165.Node:\n-0000ff10: 2047 6574 5f43 6861 7220 2866 756e 6374 Get_Char (funct\n-0000ff20: 696f 6e29 7f31 3733 3636 0a4e 6f64 653a ion).17366.Node:\n-0000ff30: 2047 6574 5f4c 696e 6520 2866 756e 6374 Get_Line (funct\n-0000ff40: 696f 6e29 7f31 3832 3331 0a4e 6f64 653a ion).18231.Node:\n-0000ff50: 2047 6574 5f4c 696e 6520 2870 726f 6365 Get_Line (proce\n-0000ff60: 6475 7265 297f 3139 3534 320a 4e6f 6465 dure).19542.Node\n-0000ff70: 3a20 4765 745f 5265 6365 6976 655f 5175 : Get_Receive_Qu\n-0000ff80: 6575 655f 5369 7a65 2028 6675 6e63 7469 eue_Size (functi\n-0000ff90: 6f6e 297f 3230 3731 310a 4e6f 6465 3a20 on).20711.Node: \n-0000ffa0: 4765 745f 5365 6e64 5f51 7565 7565 5f53 Get_Send_Queue_S\n-0000ffb0: 697a 6520 2866 756e 6374 696f 6e29 7f32 ize (function).2\n-0000ffc0: 3135 3739 0a4e 6f64 653a 2047 6574 736f 1579.Node: Getso\n-0000ffd0: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n-0000ffe0: 297f 3232 3433 360a 4e6f 6465 3a20 4c69 ).22436.Node: Li\n-0000fff0: 7374 656e 2028 7072 6f63 6564 7572 6529 sten (procedure)\n-00010000: 7f32 3338 3032 0a4e 6f64 653a 204e 6577 .23802.Node: New\n-00010010: 5f4c 696e 6520 2870 726f 6365 6475 7265 _Line (procedure\n-00010020: 297f 3234 3637 380a 4e6f 6465 3a20 5075 ).24678.Node: Pu\n-00010030: 7420 2870 726f 6365 6475 7265 297f 3235 t (procedure).25\n-00010040: 3430 340a 4e6f 6465 3a20 5075 745f 4c69 404.Node: Put_Li\n-00010050: 6e65 2028 7072 6f63 6564 7572 6529 7f32 ne (procedure).2\n-00010060: 3631 3339 0a4e 6f64 653a 2052 6563 6569 6139.Node: Recei\n-00010070: 7665 2028 6675 6e63 7469 6f6e 297f 3236 ve (function).26\n-00010080: 3932 390a 4e6f 6465 3a20 5265 6365 6976 929.Node: Receiv\n-00010090: 6520 2870 726f 6365 6475 7265 297f 3238 e (procedure).28\n-000100a0: 3134 320a 4e6f 6465 3a20 5265 6365 6976 142.Node: Receiv\n-000100b0: 655f 536f 6d65 2028 7072 6f63 6564 7572 e_Some (procedur\n-000100c0: 6529 7f32 3931 3733 0a4e 6f64 653a 2053 e).29173.Node: S\n-000100d0: 656e 6420 2870 726f 6365 6475 7265 297f end (procedure).\n-000100e0: 3330 3336 340a 4e6f 6465 3a20 5365 745f 30364.Node: Set_\n-000100f0: 4275 6666 6572 2028 7072 6f63 6564 7572 Buffer (procedur\n-00010100: 6529 7f33 3131 3037 0a4e 6f64 653a 2053 e).31107.Node: S\n-00010110: 6574 736f 636b 6f70 7420 2870 726f 6365 etsockopt (proce\n-00010120: 6475 7265 297f 3332 3332 300a 4e6f 6465 dure).32320.Node\n-00010130: 3a20 5368 7574 646f 776e 2028 7072 6f63 : Shutdown (proc\n-00010140: 6564 7572 6529 7f33 3336 3636 0a4e 6f64 edure).33666.Nod\n-00010150: 653a 2053 6f63 6b65 7420 2870 726f 6365 e: Socket (proce\n-00010160: 6475 7265 297f 3334 3331 360a 4e6f 6465 dure).34316.Node\n-00010170: 3a20 556e 7365 745f 4275 6666 6572 2028 : Unset_Buffer (\n-00010180: 7072 6f63 6564 7572 6529 7f33 3537 3036 procedure).35706\n-00010190: 0a4e 6f64 653a 2053 6f63 6b65 7473 2e4d .Node: Sockets.M\n-000101a0: 756c 7469 6361 7374 2070 6163 6b61 6765 ulticast package\n-000101b0: 7f33 3634 3035 0a4e 6f64 653a 2043 7265 .36405.Node: Cre\n-000101c0: 6174 655f 4d75 6c74 6963 6173 745f 536f ate_Multicast_So\n-000101d0: 636b 6574 2028 6675 6e63 7469 6f6e 297f cket (function).\n-000101e0: 3337 3235 300a 4e6f 6465 3a20 536f 636b 37250.Node: Sock\n-000101f0: 6574 732e 4e61 6d69 6e67 2070 6163 6b61 ets.Naming packa\n-00010200: 6765 7f34 3039 3433 0a4e 6f64 653a 2043 ge.40943.Node: C\n-00010210: 6f6e 7472 6962 7574 6f72 737f 3431 3131 ontributors.4111\n-00010220: 350a 4e6f 6465 3a20 5265 736f 7572 6365 5.Node: Resource\n-00010230: 7320 6f6e 2074 6865 2049 6e74 6572 6e65 s on the Interne\n-00010240: 747f 3432 3533 360a 4e6f 6465 3a20 496e t.42536.Node: In\n-00010250: 6465 787f 3432 3937 300a 1f0a 456e 6420 dex.42970...End \n-00010260: 5461 6720 5461 626c 650a 0a1f 0a4c 6f63 Tag Table....Loc\n-00010270: 616c 2056 6172 6961 626c 6573 3a0a 636f al Variables:.co\n-00010280: 6469 6e67 3a20 7574 662d 380a 456e 643a ding: utf-8.End:\n-00010290: 0a .\n+0000fd00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fd10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fd20: 2020 2020 2020 286c 696e 6520 2036 290a (line 6).\n+0000fd30: 2a20 5265 706f 7274 696e 6720 6120 6275 * Reporting a bu\n+0000fd40: 673a 2020 2020 2020 2020 2020 2020 2020 g: \n+0000fd50: 2020 2020 2020 2020 2052 6573 6f75 7263 Resourc\n+0000fd60: 6573 206f 6e20 7468 6520 496e 7465 726e es on the Intern\n+0000fd70: 6574 2e0a 2020 2020 2020 2020 2020 2020 et.. \n+0000fd80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fd90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fda0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fdb0: 2020 2028 6c69 6e65 2020 3629 0a2a 2052 (line 6).* R\n+0000fdc0: 6570 7265 7365 6e74 696e 6720 4950 2061 epresenting IP a\n+0000fdd0: 6464 7265 7373 6573 3a20 2020 2020 2020 ddresses: \n+0000fde0: 2020 2020 2020 496d 6167 6520 2866 756e Image (fun\n+0000fdf0: 6374 696f 6e29 2e20 2020 2020 286c 696e ction). (lin\n+0000fe00: 6520 2036 290a 2a20 5265 7072 6573 656e e 6).* Represen\n+0000fe10: 7469 6e67 2049 5020 6164 6472 6573 7365 ting IP addresse\n+0000fe20: 7320 3c31 3e3a 2020 2020 2020 2020 2056 s <1>: V\n+0000fe30: 616c 7565 2028 6675 6e63 7469 6f6e 292e alue (function).\n+0000fe40: 2020 2020 2028 6c69 6e65 2020 3629 0a2a (line 6).*\n+0000fe50: 2052 6574 7269 6576 696e 6720 736f 636b Retrieving sock\n+0000fe60: 6574 206f 7074 696f 6e73 3a20 2020 2020 et options: \n+0000fe70: 2020 2020 2020 2020 4765 7473 6f63 6b6f Getsocko\n+0000fe80: 7074 2028 7072 6f63 6564 7572 6529 2e0a pt (procedure)..\n+0000fe90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fea0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000feb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fec0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+0000fed0: 6c69 6e65 2020 3629 0a2a 2053 656e 643a line 6).* Send:\n+0000fee0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000fef0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ff00: 2020 5365 6e64 2028 7072 6f63 6564 7572 Send (procedur\n+0000ff10: 6529 2e20 2020 2020 286c 696e 6520 2039 e). (line 9\n+0000ff20: 290a 2a20 5365 6e64 203c 313e 3a20 2020 ).* Send <1>: \n+0000ff30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ff40: 2020 2020 2020 2020 2020 2053 6875 7464 Shutd\n+0000ff50: 6f77 6e20 2870 726f 6365 6475 7265 292e own (procedure).\n+0000ff60: 2028 6c69 6e65 2031 3729 0a2a 2053 656e (line 17).* Sen\n+0000ff70: 6469 6e67 2064 6174 613a 2020 2020 2020 ding data: \n+0000ff80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ff90: 2020 2020 5365 6e64 696e 6720 616e 6420 Sending and \n+0000ffa0: 7265 6365 6976 696e 6720 6461 7461 2e0a receiving data..\n+0000ffb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ffc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ffd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+0000ffe0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+0000fff0: 6c69 6e65 2020 3629 0a2a 2053 656e 6469 line 6).* Sendi\n+00010000: 6e67 2064 6174 6120 3c31 3e3a 2020 2020 ng data <1>: \n+00010010: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010020: 2020 4765 745f 5365 6e64 5f51 7565 7565 Get_Send_Queue\n+00010030: 5f53 697a 6520 2866 756e 6374 696f 6e29 _Size (function)\n+00010040: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n+00010050: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010060: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010070: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010080: 2028 6c69 6e65 2020 3629 0a2a 2053 656e (line 6).* Sen\n+00010090: 6469 6e67 2064 6174 6120 3c32 3e3a 2020 ding data <2>: \n+000100a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000100b0: 2020 2020 4e65 775f 4c69 6e65 2028 7072 New_Line (pr\n+000100c0: 6f63 6564 7572 6529 2e20 286c 696e 6520 ocedure). (line \n+000100d0: 2036 290a 2a20 5365 6e64 696e 6720 6461 6).* Sending da\n+000100e0: 7461 203c 333e 3a20 2020 2020 2020 2020 ta <3>: \n+000100f0: 2020 2020 2020 2020 2020 2020 2050 7574 Put\n+00010100: 2028 7072 6f63 6564 7572 6529 2e20 2020 (procedure). \n+00010110: 2020 2028 6c69 6e65 2020 3629 0a2a 2053 (line 6).* S\n+00010120: 656e 6469 6e67 2064 6174 6120 3c34 3e3a ending data <4>:\n+00010130: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010140: 2020 2020 2020 5075 745f 4c69 6e65 2028 Put_Line (\n+00010150: 7072 6f63 6564 7572 6529 2e20 286c 696e procedure). (lin\n+00010160: 6520 2036 290a 2a20 5365 6e64 696e 6720 e 6).* Sending \n+00010170: 6461 7461 203c 353e 3a20 2020 2020 2020 data <5>: \n+00010180: 2020 2020 2020 2020 2020 2020 2020 2053 S\n+00010190: 656e 6420 2870 726f 6365 6475 7265 292e end (procedure).\n+000101a0: 2020 2020 2028 6c69 6e65 2020 3629 0a2a (line 6).*\n+000101b0: 2053 656e 6469 6e67 2070 6174 6368 6573 Sending patches\n+000101c0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+000101d0: 2020 2020 2020 2020 5265 736f 7572 6365 Resource\n+000101e0: 7320 6f6e 2074 6865 2049 6e74 6572 6e65 s on the Interne\n+000101f0: 742e 0a20 2020 2020 2020 2020 2020 2020 t.. \n+00010200: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010210: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010220: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010230: 2020 286c 696e 6520 2036 290a 2a20 5365 (line 6).* Se\n+00010240: 745f 4275 6666 6572 3a20 2020 2020 2020 t_Buffer: \n+00010250: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010260: 2020 2020 2053 6574 5f42 7566 6665 7220 Set_Buffer \n+00010270: 2870 726f 6365 6475 7265 292e 0a20 2020 (procedure).. \n+00010280: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010290: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000102a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000102b0: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n+000102c0: 6520 2039 290a 2a20 5365 7473 6f63 6b6f e 9).* Setsocko\n+000102d0: 7074 3a20 2020 2020 2020 2020 2020 2020 pt: \n+000102e0: 2020 2020 2020 2020 2020 2020 2020 2053 S\n+000102f0: 6574 736f 636b 6f70 7420 2870 726f 6365 etsockopt (proce\n+00010300: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n+00010310: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010320: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010330: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010340: 2020 2020 2020 286c 696e 6520 2039 290a (line 9).\n+00010350: 2a20 5365 7474 696e 6720 736f 636b 6574 * Setting socket\n+00010360: 206f 7074 696f 6e73 3a20 2020 2020 2020 options: \n+00010370: 2020 2020 2020 2020 2053 6574 736f 636b Setsock\n+00010380: 6f70 7420 2870 726f 6365 6475 7265 292e opt (procedure).\n+00010390: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+000103a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000103b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000103c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000103d0: 286c 696e 6520 2036 290a 2a20 5368 7574 (line 6).* Shut\n+000103e0: 646f 776e 3a20 2020 2020 2020 2020 2020 down: \n+000103f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010400: 2020 2053 6875 7464 6f77 6e20 2870 726f Shutdown (pro\n+00010410: 6365 6475 7265 292e 2028 6c69 6e65 2020 cedure). (line \n+00010420: 3929 0a2a 2053 4f5f 5243 5642 5546 3a20 9).* SO_RCVBUF: \n+00010430: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010440: 2020 2020 2020 2020 2020 2020 4765 7473 Gets\n+00010450: 6f63 6b6f 7074 2028 7072 6f63 6564 7572 ockopt (procedur\n+00010460: 6529 2e0a 2020 2020 2020 2020 2020 2020 e).. \n+00010470: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010480: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010490: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000104a0: 2020 2028 6c69 6e65 2032 3029 0a2a 2053 (line 20).* S\n+000104b0: 4f5f 5243 5642 5546 203c 313e 3a20 2020 O_RCVBUF <1>: \n+000104c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000104d0: 2020 2020 2020 5365 7473 6f63 6b6f 7074 Setsockopt\n+000104e0: 2028 7072 6f63 6564 7572 6529 2e0a 2020 (procedure).. \n+000104f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010500: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010510: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010520: 2020 2020 2020 2020 2020 2020 2028 6c69 (li\n+00010530: 6e65 2032 3029 0a2a 2053 4f5f 5245 5553 ne 20).* SO_REUS\n+00010540: 4541 4444 523a 2020 2020 2020 2020 2020 EADDR: \n+00010550: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010560: 4765 7473 6f63 6b6f 7074 2028 7072 6f63 Getsockopt (proc\n+00010570: 6564 7572 6529 2e0a 2020 2020 2020 2020 edure).. \n+00010580: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010590: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000105a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000105b0: 2020 2020 2020 2028 6c69 6e65 2032 3029 (line 20)\n+000105c0: 0a2a 2053 4f5f 5245 5553 4541 4444 5220 .* SO_REUSEADDR \n+000105d0: 3c31 3e3a 2020 2020 2020 2020 2020 2020 <1>: \n+000105e0: 2020 2020 2020 2020 2020 5365 7473 6f63 Setsoc\n+000105f0: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n+00010600: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n+00010610: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010620: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010630: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010640: 2028 6c69 6e65 2032 3029 0a2a 2053 4f5f (line 20).* SO_\n+00010650: 5245 5553 4550 4f52 543a 2020 2020 2020 REUSEPORT: \n+00010660: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010670: 2020 2020 4765 7473 6f63 6b6f 7074 2028 Getsockopt (\n+00010680: 7072 6f63 6564 7572 6529 2e0a 2020 2020 procedure).. \n+00010690: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000106a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000106b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000106c0: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n+000106d0: 2032 3029 0a2a 2053 4f5f 5245 5553 4550 20).* SO_REUSEP\n+000106e0: 4f52 5420 3c31 3e3a 2020 2020 2020 2020 ORT <1>: \n+000106f0: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n+00010700: 7473 6f63 6b6f 7074 2028 7072 6f63 6564 tsockopt (proced\n+00010710: 7572 6529 2e0a 2020 2020 2020 2020 2020 ure).. \n+00010720: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010730: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010740: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010750: 2020 2020 2028 6c69 6e65 2032 3029 0a2a (line 20).*\n+00010760: 2053 4f5f 534e 4442 5546 3a20 2020 2020 SO_SNDBUF: \n+00010770: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010780: 2020 2020 2020 2020 4765 7473 6f63 6b6f Getsocko\n+00010790: 7074 2028 7072 6f63 6564 7572 6529 2e0a pt (procedure)..\n+000107a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000107b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000107c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000107d0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+000107e0: 6c69 6e65 2032 3029 0a2a 2053 4f5f 534e line 20).* SO_SN\n+000107f0: 4442 5546 203c 313e 3a20 2020 2020 2020 DBUF <1>: \n+00010800: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010810: 2020 5365 7473 6f63 6b6f 7074 2028 7072 Setsockopt (pr\n+00010820: 6f63 6564 7572 6529 2e0a 2020 2020 2020 ocedure).. \n+00010830: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010840: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010850: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010860: 2020 2020 2020 2020 2028 6c69 6e65 2032 (line 2\n+00010870: 3029 0a2a 2053 4f43 4b5f 4447 5241 4d3a 0).* SOCK_DGRAM:\n+00010880: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010890: 2020 2020 2020 2020 2020 2020 536f 636b Sock\n+000108a0: 6574 2028 7072 6f63 6564 7572 6529 2e20 et (procedure). \n+000108b0: 2020 286c 696e 6520 3139 290a 2a20 534f (line 19).* SO\n+000108c0: 434b 5f53 5452 4541 4d3a 2020 2020 2020 CK_STREAM: \n+000108d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000108e0: 2020 2020 2053 6f63 6b65 7420 2870 726f Socket (pro\n+000108f0: 6365 6475 7265 292e 2020 2028 6c69 6e65 cedure). (line\n+00010900: 2031 3929 0a2a 2053 6f63 6b65 743a 2020 19).* Socket: \n+00010910: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010920: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n+00010930: 7474 696e 6720 7570 2075 6e69 6361 7374 tting up unicast\n+00010940: 2073 6f63 6b65 7473 2e0a 2020 2020 2020 sockets.. \n+00010950: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010960: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010970: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010980: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line \n+00010990: 3629 0a2a 2053 6f63 6b65 7420 3c31 3e3a 6).* Socket <1>:\n+000109a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000109b0: 2020 2020 2020 2020 2020 2020 536f 636b Sock\n+000109c0: 6574 2028 7072 6f63 6564 7572 6529 2e20 et (procedure). \n+000109d0: 2020 286c 696e 6520 2039 290a 2a20 536f (line 9).* So\n+000109e0: 636b 6574 2073 6875 7464 6f77 6e3a 2020 cket shutdown: \n+000109f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010a00: 2020 2020 2053 6875 7464 6f77 6e20 2870 Shutdown (p\n+00010a10: 726f 6365 6475 7265 292e 2028 6c69 6e65 rocedure). (line\n+00010a20: 2020 3629 0a2a 2053 6f63 6b65 745f 4572 6).* Socket_Er\n+00010a30: 726f 723a 2020 2020 2020 2020 2020 2020 ror: \n+00010a40: 2020 2020 2020 2020 2020 2020 2020 4269 Bi\n+00010a50: 6e64 2028 7072 6f63 6564 7572 6529 2e20 nd (procedure). \n+00010a60: 2020 2020 286c 696e 6520 3330 290a 2a20 (line 30).* \n+00010a70: 536f 636b 6574 5f45 7272 6f72 203c 313e Socket_Error <1>\n+00010a80: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+00010a90: 2020 2020 2020 2043 6f6e 6e65 6374 2028 Connect (\n+00010aa0: 7072 6f63 6564 7572 6529 2e20 2028 6c69 procedure). (li\n+00010ab0: 6e65 2032 3729 0a2a 2053 6f63 6b65 745f ne 27).* Socket_\n+00010ac0: 4644 3a20 2020 2020 2020 2020 2020 2020 FD: \n+00010ad0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010ae0: 5365 7474 696e 6720 7570 2075 6e69 6361 Setting up unica\n+00010af0: 7374 2073 6f63 6b65 7473 2e0a 2020 2020 st sockets.. \n+00010b00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010b10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010b20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010b30: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n+00010b40: 2020 3629 0a2a 2053 6f63 6b65 745f 4644 6).* Socket_FD\n+00010b50: 203c 313e 3a20 2020 2020 2020 2020 2020 <1>: \n+00010b60: 2020 2020 2020 2020 2020 2020 2020 536f So\n+00010b70: 636b 6574 7320 7061 636b 6167 652e 2020 ckets package. \n+00010b80: 2020 2020 286c 696e 6520 2039 290a 2a20 (line 9).* \n+00010b90: 536f 636b 6574 732e 4163 6365 7074 5f53 Sockets.Accept_S\n+00010ba0: 6f63 6b65 743a 2020 2020 2020 2020 2020 ocket: \n+00010bb0: 2020 2020 2020 2041 6363 6570 745f 536f Accept_So\n+00010bc0: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+00010bd0: 2e0a 2020 2020 2020 2020 2020 2020 2020 .. \n+00010be0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010bf0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010c00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010c10: 2028 6c69 6e65 2031 3129 0a2a 2053 6f63 (line 11).* Soc\n+00010c20: 6b65 7473 2e42 696e 643a 2020 2020 2020 kets.Bind: \n+00010c30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010c40: 2020 2020 4269 6e64 2028 7072 6f63 6564 Bind (proced\n+00010c50: 7572 6529 2e20 2020 2020 286c 696e 6520 ure). (line \n+00010c60: 3131 290a 2a20 536f 636b 6574 732e 436f 11).* Sockets.Co\n+00010c70: 6e6e 6563 743a 2020 2020 2020 2020 2020 nnect: \n+00010c80: 2020 2020 2020 2020 2020 2020 2043 6f6e Con\n+00010c90: 6e65 6374 2028 7072 6f63 6564 7572 6529 nect (procedure)\n+00010ca0: 2e20 2028 6c69 6e65 2031 3129 0a2a 2053 . (line 11).* S\n+00010cb0: 6f63 6b65 7473 2e47 6574 3a20 2020 2020 ockets.Get: \n+00010cc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010cd0: 2020 2020 2020 4765 7420 2866 756e 6374 Get (funct\n+00010ce0: 696f 6e29 2e20 2020 2020 2020 286c 696e ion). (lin\n+00010cf0: 6520 3131 290a 2a20 536f 636b 6574 732e e 11).* Sockets.\n+00010d00: 4765 745f 4368 6172 3a20 2020 2020 2020 Get_Char: \n+00010d10: 2020 2020 2020 2020 2020 2020 2020 2047 G\n+00010d20: 6574 5f43 6861 7220 2866 756e 6374 696f et_Char (functio\n+00010d30: 6e29 2e20 2028 6c69 6e65 2031 3129 0a2a n). (line 11).*\n+00010d40: 2053 6f63 6b65 7473 2e47 6574 5f4c 696e Sockets.Get_Lin\n+00010d50: 653a 2020 2020 2020 2020 2020 2020 2020 e: \n+00010d60: 2020 2020 2020 2020 4765 745f 4c69 6e65 Get_Line\n+00010d70: 2028 6675 6e63 7469 6f6e 292e 2020 286c (function). (l\n+00010d80: 696e 6520 3132 290a 2a20 536f 636b 6574 ine 12).* Socket\n+00010d90: 732e 4765 745f 4c69 6e65 203c 313e 3a20 s.Get_Line <1>: \n+00010da0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010db0: 2047 6574 5f4c 696e 6520 2870 726f 6365 Get_Line (proce\n+00010dc0: 6475 7265 292e 2028 6c69 6e65 2031 3129 dure). (line 11)\n+00010dd0: 0a2a 2053 6f63 6b65 7473 2e47 6574 5f52 .* Sockets.Get_R\n+00010de0: 6563 6569 7665 5f51 7565 7565 5f53 697a eceive_Queue_Siz\n+00010df0: 653a 2020 2020 2020 2020 4765 745f 5265 e: Get_Re\n+00010e00: 6365 6976 655f 5175 6575 655f 5369 7a65 ceive_Queue_Size\n+00010e10: 2028 6675 6e63 7469 6f6e 292e 0a20 2020 (function).. \n+00010e20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010e30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010e40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010e50: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n+00010e60: 6520 3132 290a 2a20 536f 636b 6574 732e e 12).* Sockets.\n+00010e70: 4765 745f 5365 6e64 5f51 7565 7565 5f53 Get_Send_Queue_S\n+00010e80: 697a 653a 2020 2020 2020 2020 2020 2047 ize: G\n+00010e90: 6574 5f53 656e 645f 5175 6575 655f 5369 et_Send_Queue_Si\n+00010ea0: 7a65 2028 6675 6e63 7469 6f6e 292e 0a20 ze (function).. \n+00010eb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010ec0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010ed0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010ee0: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+00010ef0: 696e 6520 3132 290a 2a20 536f 636b 6574 ine 12).* Socket\n+00010f00: 732e 4765 7473 6f63 6b6f 7074 3a20 2020 s.Getsockopt: \n+00010f10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010f20: 2047 6574 736f 636b 6f70 7420 2870 726f Getsockopt (pro\n+00010f30: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n+00010f40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010f50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010f60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010f70: 2020 2020 2020 2020 286c 696e 6520 3132 (line 12\n+00010f80: 290a 2a20 536f 636b 6574 732e 4950 5f41 ).* Sockets.IP_A\n+00010f90: 4444 5f4d 454d 4245 5253 4849 503a 2020 DD_MEMBERSHIP: \n+00010fa0: 2020 2020 2020 2020 2020 2047 6574 736f Getso\n+00010fb0: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n+00010fc0: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n+00010fd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010fe0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00010ff0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011000: 2020 286c 696e 6520 3230 290a 2a20 536f (line 20).* So\n+00011010: 636b 6574 732e 4950 5f41 4444 5f4d 454d ckets.IP_ADD_MEM\n+00011020: 4245 5253 4849 5020 3c31 3e3a 2020 2020 BERSHIP <1>: \n+00011030: 2020 2020 2053 6574 736f 636b 6f70 7420 Setsockopt \n+00011040: 2870 726f 6365 6475 7265 292e 0a20 2020 (procedure).. \n+00011050: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011060: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011070: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011080: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n+00011090: 6520 3230 290a 2a20 536f 636b 6574 732e e 20).* Sockets.\n+000110a0: 4950 5f44 524f 505f 4d45 4d42 4552 5348 IP_DROP_MEMBERSH\n+000110b0: 4950 3a20 2020 2020 2020 2020 2020 2047 IP: G\n+000110c0: 6574 736f 636b 6f70 7420 2870 726f 6365 etsockopt (proce\n+000110d0: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n+000110e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000110f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011100: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011110: 2020 2020 2020 286c 696e 6520 3230 290a (line 20).\n+00011120: 2a20 536f 636b 6574 732e 4950 5f44 524f * Sockets.IP_DRO\n+00011130: 505f 4d45 4d42 4552 5348 4950 203c 313e P_MEMBERSHIP <1>\n+00011140: 3a20 2020 2020 2020 2053 6574 736f 636b : Setsock\n+00011150: 6f70 7420 2870 726f 6365 6475 7265 292e opt (procedure).\n+00011160: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+00011170: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011180: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011190: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000111a0: 286c 696e 6520 3230 290a 2a20 536f 636b (line 20).* Sock\n+000111b0: 6574 732e 4950 5f4d 554c 5449 4341 5354 ets.IP_MULTICAST\n+000111c0: 5f4c 4f4f 503a 2020 2020 2020 2020 2020 _LOOP: \n+000111d0: 2020 2047 6574 736f 636b 6f70 7420 2870 Getsockopt (p\n+000111e0: 726f 6365 6475 7265 292e 0a20 2020 2020 rocedure).. \n+000111f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011200: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011210: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011220: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n+00011230: 3230 290a 2a20 536f 636b 6574 732e 4950 20).* Sockets.IP\n+00011240: 5f4d 554c 5449 4341 5354 5f4c 4f4f 5020 _MULTICAST_LOOP \n+00011250: 3c31 3e3a 2020 2020 2020 2020 2053 6574 <1>: Set\n+00011260: 736f 636b 6f70 7420 2870 726f 6365 6475 sockopt (procedu\n+00011270: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n+00011280: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011290: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000112a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000112b0: 2020 2020 286c 696e 6520 3230 290a 2a20 (line 20).* \n+000112c0: 536f 636b 6574 732e 4950 5f4d 554c 5449 Sockets.IP_MULTI\n+000112d0: 4341 5354 5f54 544c 3a20 2020 2020 2020 CAST_TTL: \n+000112e0: 2020 2020 2020 2047 6574 736f 636b 6f70 Getsockop\n+000112f0: 7420 2870 726f 6365 6475 7265 292e 0a20 t (procedure).. \n+00011300: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011310: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011320: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011330: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+00011340: 696e 6520 3230 290a 2a20 536f 636b 6574 ine 20).* Socket\n+00011350: 732e 4950 5f4d 554c 5449 4341 5354 5f54 s.IP_MULTICAST_T\n+00011360: 544c 203c 313e 3a20 2020 2020 2020 2020 TL <1>: \n+00011370: 2053 6574 736f 636b 6f70 7420 2870 726f Setsockopt (pro\n+00011380: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n+00011390: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000113a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000113b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000113c0: 2020 2020 2020 2020 286c 696e 6520 3230 (line 20\n+000113d0: 290a 2a20 536f 636b 6574 732e 4950 5052 ).* Sockets.IPPR\n+000113e0: 4f54 4f5f 4950 3a20 2020 2020 2020 2020 OTO_IP: \n+000113f0: 2020 2020 2020 2020 2020 2047 6574 736f Getso\n+00011400: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n+00011410: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n+00011420: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011430: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011440: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011450: 2020 286c 696e 6520 3230 290a 2a20 536f (line 20).* So\n+00011460: 636b 6574 732e 4950 5052 4f54 4f5f 4950 ckets.IPPROTO_IP\n+00011470: 203c 313e 3a20 2020 2020 2020 2020 2020 <1>: \n+00011480: 2020 2020 2053 6574 736f 636b 6f70 7420 Setsockopt \n+00011490: 2870 726f 6365 6475 7265 292e 0a20 2020 (procedure).. \n+000114a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000114b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000114c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000114d0: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n+000114e0: 6520 3230 290a 2a20 536f 636b 6574 732e e 20).* Sockets.\n+000114f0: 4c69 7374 656e 3a20 2020 2020 2020 2020 Listen: \n+00011500: 2020 2020 2020 2020 2020 2020 2020 204c L\n+00011510: 6973 7465 6e20 2870 726f 6365 6475 7265 isten (procedure\n+00011520: 292e 2020 2028 6c69 6e65 2031 3129 0a2a ). (line 11).*\n+00011530: 2053 6f63 6b65 7473 2e4d 756c 7469 6361 Sockets.Multica\n+00011540: 7374 2e43 7265 6174 655f 4d75 6c74 6963 st.Create_Multic\n+00011550: 6173 745f 536f 636b 6574 3a20 5365 7474 ast_Socket: Sett\n+00011560: 696e 6720 7570 206d 756c 7469 6361 7374 ing up multicast\n+00011570: 2073 6f63 6b65 7473 2e0a 2020 2020 2020 sockets.. \n+00011580: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011590: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000115a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000115b0: 2020 2020 2020 2020 2028 6c69 6e65 2031 (line 1\n+000115c0: 3629 0a2a 2053 6f63 6b65 7473 2e4d 756c 6).* Sockets.Mul\n+000115d0: 7469 6361 7374 2e43 7265 6174 655f 4d75 ticast.Create_Mu\n+000115e0: 6c74 6963 6173 745f 536f 636b 6574 203c lticast_Socket <\n+000115f0: 313e 3a20 4372 6561 7465 5f4d 756c 7469 1>: Create_Multi\n+00011600: 6361 7374 5f53 6f63 6b65 7420 2866 756e cast_Socket (fun\n+00011610: 6374 696f 6e29 2e0a 2020 2020 2020 2020 ction).. \n+00011620: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011630: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011640: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011650: 2020 2020 2020 2028 6c69 6e65 2031 3429 (line 14)\n+00011660: 0a2a 2053 6f63 6b65 7473 2e4d 756c 7469 .* Sockets.Multi\n+00011670: 6361 7374 2e43 7265 6174 655f 4d75 6c74 cast.Create_Mult\n+00011680: 6963 6173 745f 536f 636b 6574 203c 323e icast_Socket <2>\n+00011690: 3a20 4372 6561 7465 5f4d 756c 7469 6361 : Create_Multica\n+000116a0: 7374 5f53 6f63 6b65 7420 2866 756e 6374 st_Socket (funct\n+000116b0: 696f 6e29 2e0a 2020 2020 2020 2020 2020 ion).. \n+000116c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000116d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000116e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000116f0: 2020 2020 2028 6c69 6e65 2036 3829 0a2a (line 68).*\n+00011700: 2053 6f63 6b65 7473 2e4e 616d 696e 672e Sockets.Naming.\n+00011710: 4164 6472 6573 735f 4f66 3a20 2020 2020 Address_Of: \n+00011720: 2020 2020 2020 2020 4164 6472 6573 735f Address_\n+00011730: 4f66 2028 6675 6e63 7469 6f6e 292e 0a20 Of (function).. \n+00011740: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011750: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011760: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011770: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+00011780: 696e 6520 3132 290a 2a20 536f 636b 6574 ine 12).* Socket\n+00011790: 732e 4e61 6d69 6e67 2e41 6e79 5f41 6464 s.Naming.Any_Add\n+000117a0: 7265 7373 3a20 2020 2020 2020 2020 2020 ress: \n+000117b0: 2041 6e79 5f41 6464 7265 7373 2028 6675 Any_Address (fu\n+000117c0: 6e63 7469 6f6e 292e 0a20 2020 2020 2020 nction).. \n+000117d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000117e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000117f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011800: 2020 2020 2020 2020 286c 696e 6520 3130 (line 10\n+00011810: 290a 2a20 536f 636b 6574 732e 4e61 6d69 ).* Sockets.Nami\n+00011820: 6e67 2e47 6574 5f50 6565 725f 4164 6472 ng.Get_Peer_Addr\n+00011830: 3a20 2020 2020 2020 2020 2047 6574 5f50 : Get_P\n+00011840: 6565 725f 4164 6472 2028 6675 6e63 7469 eer_Addr (functi\n+00011850: 6f6e 292e 0a20 2020 2020 2020 2020 2020 on).. \n+00011860: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011870: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011880: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011890: 2020 2020 286c 696e 6520 3132 290a 2a20 (line 12).* \n+000118a0: 536f 636b 6574 732e 4e61 6d69 6e67 2e47 Sockets.Naming.G\n+000118b0: 6574 5f50 6565 725f 506f 7274 3a20 2020 et_Peer_Port: \n+000118c0: 2020 2020 2020 2047 6574 5f50 6565 725f Get_Peer_\n+000118d0: 506f 7274 2028 6675 6e63 7469 6f6e 292e Port (function).\n+000118e0: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+000118f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011900: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011910: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011920: 286c 696e 6520 3132 290a 2a20 536f 636b (line 12).* Sock\n+00011930: 6574 732e 4e61 6d69 6e67 2e47 6574 5f53 ets.Naming.Get_S\n+00011940: 6f63 6b5f 4164 6472 3a20 2020 2020 2020 ock_Addr: \n+00011950: 2020 2047 6574 5f53 6f63 6b5f 4164 6472 Get_Sock_Addr\n+00011960: 2028 6675 6e63 7469 6f6e 292e 0a20 2020 (function).. \n+00011970: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011980: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011990: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000119a0: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n+000119b0: 6520 3132 290a 2a20 536f 636b 6574 732e e 12).* Sockets.\n+000119c0: 4e61 6d69 6e67 2e47 6574 5f53 6f63 6b5f Naming.Get_Sock_\n+000119d0: 506f 7274 3a20 2020 2020 2020 2020 2047 Port: G\n+000119e0: 6574 5f53 6f63 6b5f 506f 7274 2028 6675 et_Sock_Port (fu\n+000119f0: 6e63 7469 6f6e 292e 0a20 2020 2020 2020 nction).. \n+00011a00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011a10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011a20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011a30: 2020 2020 2020 2020 286c 696e 6520 3132 (line 12\n+00011a40: 290a 2a20 536f 636b 6574 732e 4e61 6d69 ).* Sockets.Nami\n+00011a50: 6e67 2e48 6f73 745f 4e61 6d65 3a20 2020 ng.Host_Name: \n+00011a60: 2020 2020 2020 2020 2020 2048 6f73 745f Host_\n+00011a70: 4e61 6d65 2028 6675 6e63 7469 6f6e 292e Name (function).\n+00011a80: 2028 6c69 6e65 2031 3029 0a2a 2053 6f63 (line 10).* Soc\n+00011a90: 6b65 7473 2e4e 616d 696e 672e 496d 6167 kets.Naming.Imag\n+00011aa0: 653a 2020 2020 2020 2020 2020 2020 2020 e: \n+00011ab0: 2020 2020 496d 6167 6520 2866 756e 6374 Image (funct\n+00011ac0: 696f 6e29 2e20 2020 2020 286c 696e 6520 ion). (line \n+00011ad0: 3131 290a 2a20 536f 636b 6574 732e 4e61 11).* Sockets.Na\n+00011ae0: 6d69 6e67 2e49 6e66 6f5f 4f66 5f4e 616d ming.Info_Of_Nam\n+00011af0: 655f 4f72 5f49 503a 2020 2020 2049 6e66 e_Or_IP: Inf\n+00011b00: 6f5f 4f66 5f4e 616d 655f 4f72 5f49 5020 o_Of_Name_Or_IP \n+00011b10: 2866 756e 6374 696f 6e29 2e0a 2020 2020 (function).. \n+00011b20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011b30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011b40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011b50: 2020 2020 2020 2020 2020 2028 6c69 6e65 (line\n+00011b60: 2031 3229 0a2a 2053 6f63 6b65 7473 2e4e 12).* Sockets.N\n+00011b70: 616d 696e 672e 4973 5f49 505f 4164 6472 aming.Is_IP_Addr\n+00011b80: 6573 733a 2020 2020 2020 2020 2020 4973 ess: Is\n+00011b90: 5f49 505f 4164 6472 6573 7320 2866 756e _IP_Address (fun\n+00011ba0: 6374 696f 6e29 2e0a 2020 2020 2020 2020 ction).. \n+00011bb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011bc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011bd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011be0: 2020 2020 2020 2028 6c69 6e65 2031 3229 (line 12)\n+00011bf0: 0a2a 2053 6f63 6b65 7473 2e4e 616d 696e .* Sockets.Namin\n+00011c00: 672e 4e61 6d65 5f4f 663a 2020 2020 2020 g.Name_Of: \n+00011c10: 2020 2020 2020 2020 2020 4e61 6d65 5f4f Name_O\n+00011c20: 6620 2866 756e 6374 696f 6e29 2e20 2020 f (function). \n+00011c30: 286c 696e 6520 3131 290a 2a20 536f 636b (line 11).* Sock\n+00011c40: 6574 732e 4e61 6d69 6e67 2e56 616c 7565 ets.Naming.Value\n+00011c50: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+00011c60: 2020 2056 616c 7565 2028 6675 6e63 7469 Value (functi\n+00011c70: 6f6e 292e 2020 2020 2028 6c69 6e65 2031 on). (line 1\n+00011c80: 3129 0a2a 2053 6f63 6b65 7473 2e4e 6577 1).* Sockets.New\n+00011c90: 5f4c 696e 653a 2020 2020 2020 2020 2020 _Line: \n+00011ca0: 2020 2020 2020 2020 2020 2020 4e65 775f New_\n+00011cb0: 4c69 6e65 2028 7072 6f63 6564 7572 6529 Line (procedure)\n+00011cc0: 2e20 286c 696e 6520 3131 290a 2a20 536f . (line 11).* So\n+00011cd0: 636b 6574 732e 5075 743a 2020 2020 2020 ckets.Put: \n+00011ce0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011cf0: 2020 2020 2050 7574 2028 7072 6f63 6564 Put (proced\n+00011d00: 7572 6529 2e20 2020 2020 2028 6c69 6e65 ure). (line\n+00011d10: 2031 3129 0a2a 2053 6f63 6b65 7473 2e50 11).* Sockets.P\n+00011d20: 7574 5f4c 696e 653a 2020 2020 2020 2020 ut_Line: \n+00011d30: 2020 2020 2020 2020 2020 2020 2020 5075 Pu\n+00011d40: 745f 4c69 6e65 2028 7072 6f63 6564 7572 t_Line (procedur\n+00011d50: 6529 2e20 286c 696e 6520 3131 290a 2a20 e). (line 11).* \n+00011d60: 536f 636b 6574 732e 5265 6365 6976 653a Sockets.Receive:\n+00011d70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011d80: 2020 2020 2020 2052 6563 6569 7665 2028 Receive (\n+00011d90: 6675 6e63 7469 6f6e 292e 2020 2028 6c69 function). (li\n+00011da0: 6e65 2031 3229 0a2a 2053 6f63 6b65 7473 ne 12).* Sockets\n+00011db0: 2e52 6563 6569 7665 203c 313e 3a20 2020 .Receive <1>: \n+00011dc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011dd0: 5265 6365 6976 6520 2870 726f 6365 6475 Receive (procedu\n+00011de0: 7265 292e 2020 286c 696e 6520 3131 290a re). (line 11).\n+00011df0: 2a20 536f 636b 6574 732e 5265 6365 6976 * Sockets.Receiv\n+00011e00: 655f 536f 6d65 3a20 2020 2020 2020 2020 e_Some: \n+00011e10: 2020 2020 2020 2020 2052 6563 6569 7665 Receive\n+00011e20: 5f53 6f6d 6520 2870 726f 6365 6475 7265 _Some (procedure\n+00011e30: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n+00011e40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011e50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011e60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011e70: 2020 286c 696e 6520 3133 290a 2a20 536f (line 13).* So\n+00011e80: 636b 6574 732e 5365 6e64 3a20 2020 2020 ckets.Send: \n+00011e90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011ea0: 2020 2020 2053 656e 6420 2870 726f 6365 Send (proce\n+00011eb0: 6475 7265 292e 2020 2020 2028 6c69 6e65 dure). (line\n+00011ec0: 2031 3129 0a2a 2053 6f63 6b65 7473 2e53 11).* Sockets.S\n+00011ed0: 6574 5f42 7566 6665 723a 2020 2020 2020 et_Buffer: \n+00011ee0: 2020 2020 2020 2020 2020 2020 2020 5365 Se\n+00011ef0: 745f 4275 6666 6572 2028 7072 6f63 6564 t_Buffer (proced\n+00011f00: 7572 6529 2e0a 2020 2020 2020 2020 2020 ure).. \n+00011f10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011f20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011f30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011f40: 2020 2020 2028 6c69 6e65 2031 3129 0a2a (line 11).*\n+00011f50: 2053 6f63 6b65 7473 2e53 6574 736f 636b Sockets.Setsock\n+00011f60: 6f70 743a 2020 2020 2020 2020 2020 2020 opt: \n+00011f70: 2020 2020 2020 2020 5365 7473 6f63 6b6f Setsocko\n+00011f80: 7074 2028 7072 6f63 6564 7572 6529 2e0a pt (procedure)..\n+00011f90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011fa0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011fb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00011fc0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+00011fd0: 6c69 6e65 2031 3229 0a2a 2053 6f63 6b65 line 12).* Socke\n+00011fe0: 7473 2e53 6875 7464 6f77 6e3a 2020 2020 ts.Shutdown: \n+00011ff0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012000: 2020 5368 7574 646f 776e 2028 7072 6f63 Shutdown (proc\n+00012010: 6564 7572 6529 2e20 286c 696e 6520 3131 edure). (line 11\n+00012020: 290a 2a20 536f 636b 6574 732e 534f 5f52 ).* Sockets.SO_R\n+00012030: 4356 4255 463a 2020 2020 2020 2020 2020 CVBUF: \n+00012040: 2020 2020 2020 2020 2020 2047 6574 736f Getso\n+00012050: 636b 6f70 7420 2870 726f 6365 6475 7265 ckopt (procedure\n+00012060: 292e 0a20 2020 2020 2020 2020 2020 2020 ).. \n+00012070: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012080: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012090: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000120a0: 2020 286c 696e 6520 3230 290a 2a20 536f (line 20).* So\n+000120b0: 636b 6574 732e 534f 5f52 4356 4255 4620 ckets.SO_RCVBUF \n+000120c0: 3c31 3e3a 2020 2020 2020 2020 2020 2020 <1>: \n+000120d0: 2020 2020 2053 6574 736f 636b 6f70 7420 Setsockopt \n+000120e0: 2870 726f 6365 6475 7265 292e 0a20 2020 (procedure).. \n+000120f0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012100: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012110: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012120: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n+00012130: 6520 3230 290a 2a20 536f 636b 6574 732e e 20).* Sockets.\n+00012140: 534f 5f52 4555 5345 4144 4452 3a20 2020 SO_REUSEADDR: \n+00012150: 2020 2020 2020 2020 2020 2020 2020 2047 G\n+00012160: 6574 736f 636b 6f70 7420 2870 726f 6365 etsockopt (proce\n+00012170: 6475 7265 292e 0a20 2020 2020 2020 2020 dure).. \n+00012180: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012190: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000121a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000121b0: 2020 2020 2020 286c 696e 6520 3230 290a (line 20).\n+000121c0: 2a20 536f 636b 6574 732e 534f 5f52 4555 * Sockets.SO_REU\n+000121d0: 5345 4144 4452 203c 313e 3a20 2020 2020 SEADDR <1>: \n+000121e0: 2020 2020 2020 2020 2053 6574 736f 636b Setsock\n+000121f0: 6f70 7420 2870 726f 6365 6475 7265 292e opt (procedure).\n+00012200: 0a20 2020 2020 2020 2020 2020 2020 2020 . \n+00012210: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012220: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012230: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012240: 286c 696e 6520 3230 290a 2a20 536f 636b (line 20).* Sock\n+00012250: 6574 732e 534f 5f52 4555 5345 504f 5254 ets.SO_REUSEPORT\n+00012260: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+00012270: 2020 2047 6574 736f 636b 6f70 7420 2870 Getsockopt (p\n+00012280: 726f 6365 6475 7265 292e 0a20 2020 2020 rocedure).. \n+00012290: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000122a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000122b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000122c0: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n+000122d0: 3230 290a 2a20 536f 636b 6574 732e 534f 20).* Sockets.SO\n+000122e0: 5f52 4555 5345 504f 5254 203c 313e 3a20 _REUSEPORT <1>: \n+000122f0: 2020 2020 2020 2020 2020 2020 2053 6574 Set\n+00012300: 736f 636b 6f70 7420 2870 726f 6365 6475 sockopt (procedu\n+00012310: 7265 292e 0a20 2020 2020 2020 2020 2020 re).. \n+00012320: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012330: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012340: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012350: 2020 2020 286c 696e 6520 3230 290a 2a20 (line 20).* \n+00012360: 536f 636b 6574 732e 534f 5f53 4e44 4255 Sockets.SO_SNDBU\n+00012370: 463a 2020 2020 2020 2020 2020 2020 2020 F: \n+00012380: 2020 2020 2020 2047 6574 736f 636b 6f70 Getsockop\n+00012390: 7420 2870 726f 6365 6475 7265 292e 0a20 t (procedure).. \n+000123a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000123b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000123c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000123d0: 2020 2020 2020 2020 2020 2020 2020 286c (l\n+000123e0: 696e 6520 3230 290a 2a20 536f 636b 6574 ine 20).* Socket\n+000123f0: 732e 534f 5f53 4e44 4255 4620 3c31 3e3a s.SO_SNDBUF <1>:\n+00012400: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012410: 2053 6574 736f 636b 6f70 7420 2870 726f Setsockopt (pro\n+00012420: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n+00012430: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012440: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012450: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012460: 2020 2020 2020 2020 286c 696e 6520 3230 (line 20\n+00012470: 290a 2a20 536f 636b 6574 732e 536f 636b ).* Sockets.Sock\n+00012480: 6574 3a20 2020 2020 2020 2020 2020 2020 et: \n+00012490: 2020 2020 2020 2020 2020 2053 6574 7469 Setti\n+000124a0: 6e67 2075 7020 756e 6963 6173 7420 736f ng up unicast so\n+000124b0: 636b 6574 732e 0a20 2020 2020 2020 2020 ckets.. \n+000124c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000124d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000124e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000124f0: 2020 2020 2020 286c 696e 6520 2036 290a (line 6).\n+00012500: 2a20 536f 636b 6574 732e 536f 636b 6574 * Sockets.Socket\n+00012510: 203c 313e 3a20 2020 2020 2020 2020 2020 <1>: \n+00012520: 2020 2020 2020 2020 2053 6f63 6b65 7420 Socket \n+00012530: 2870 726f 6365 6475 7265 292e 2020 2028 (procedure). (\n+00012540: 6c69 6e65 2031 3229 0a2a 2053 6f63 6b65 line 12).* Socke\n+00012550: 7473 2e53 4f4c 5f53 4f43 4b45 543a 2020 ts.SOL_SOCKET: \n+00012560: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012570: 2020 4765 7473 6f63 6b6f 7074 2028 7072 Getsockopt (pr\n+00012580: 6f63 6564 7572 6529 2e0a 2020 2020 2020 ocedure).. \n+00012590: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000125a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000125b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000125c0: 2020 2020 2020 2020 2028 6c69 6e65 2032 (line 2\n+000125d0: 3029 0a2a 2053 6f63 6b65 7473 2e53 4f4c 0).* Sockets.SOL\n+000125e0: 5f53 4f43 4b45 5420 3c31 3e3a 2020 2020 _SOCKET <1>: \n+000125f0: 2020 2020 2020 2020 2020 2020 5365 7473 Sets\n+00012600: 6f63 6b6f 7074 2028 7072 6f63 6564 7572 ockopt (procedur\n+00012610: 6529 2e0a 2020 2020 2020 2020 2020 2020 e).. \n+00012620: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012630: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012640: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012650: 2020 2028 6c69 6e65 2032 3029 0a2a 2053 (line 20).* S\n+00012660: 6f63 6b65 7473 2e55 6e73 6574 5f42 7566 ockets.Unset_Buf\n+00012670: 6665 723a 2020 2020 2020 2020 2020 2020 fer: \n+00012680: 2020 2020 2020 556e 7365 745f 4275 6666 Unset_Buff\n+00012690: 6572 2028 7072 6f63 6564 7572 6529 2e0a er (procedure)..\n+000126a0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000126b0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000126c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000126d0: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+000126e0: 6c69 6e65 2031 3129 0a2a 2053 4f4c 5f53 line 11).* SOL_S\n+000126f0: 4f43 4b45 543a 2020 2020 2020 2020 2020 OCKET: \n+00012700: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012710: 2020 4765 7473 6f63 6b6f 7074 2028 7072 Getsockopt (pr\n+00012720: 6f63 6564 7572 6529 2e0a 2020 2020 2020 ocedure).. \n+00012730: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012740: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012750: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012760: 2020 2020 2020 2020 2028 6c69 6e65 2032 (line 2\n+00012770: 3029 0a2a 2053 4f4c 5f53 4f43 4b45 5420 0).* SOL_SOCKET \n+00012780: 3c31 3e3a 2020 2020 2020 2020 2020 2020 <1>: \n+00012790: 2020 2020 2020 2020 2020 2020 5365 7473 Sets\n+000127a0: 6f63 6b6f 7074 2028 7072 6f63 6564 7572 ockopt (procedur\n+000127b0: 6529 2e0a 2020 2020 2020 2020 2020 2020 e).. \n+000127c0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000127d0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000127e0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+000127f0: 2020 2028 6c69 6e65 2032 3029 0a2a 2053 (line 20).* S\n+00012800: 7472 6561 6d5f 456c 656d 656e 745f 4172 tream_Element_Ar\n+00012810: 7261 793a 2020 2020 2020 2020 2020 2020 ray: \n+00012820: 2020 2020 2020 5261 7720 6461 7461 206d Raw data m\n+00012830: 616e 6970 756c 6174 696f 6e2e 0a20 2020 anipulation.. \n+00012840: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012850: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012860: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012870: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n+00012880: 6520 2036 290a 2a20 5374 7265 616d 5f45 e 6).* Stream_E\n+00012890: 6c65 6d65 6e74 5f41 7272 6179 203c 313e lement_Array <1>\n+000128a0: 3a20 2020 2020 2020 2020 2020 2020 2052 : R\n+000128b0: 6563 6569 7665 2028 6675 6e63 7469 6f6e eceive (function\n+000128c0: 292e 2020 2028 6c69 6e65 2032 3229 0a2a ). (line 22).*\n+000128d0: 2053 7472 6561 6d5f 456c 656d 656e 745f Stream_Element_\n+000128e0: 4172 7261 7920 3c32 3e3a 2020 2020 2020 Array <2>: \n+000128f0: 2020 2020 2020 2020 5265 6365 6976 6520 Receive \n+00012900: 2870 726f 6365 6475 7265 292e 2020 286c (procedure). (l\n+00012910: 696e 6520 3138 290a 2a20 5374 7265 616d ine 18).* Stream\n+00012920: 5f45 6c65 6d65 6e74 5f41 7272 6179 203c _Element_Array <\n+00012930: 333e 3a20 2020 2020 2020 2020 2020 2020 3>: \n+00012940: 2052 6563 6569 7665 5f53 6f6d 6520 2870 Receive_Some (p\n+00012950: 726f 6365 6475 7265 292e 0a20 2020 2020 rocedure).. \n+00012960: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012970: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012980: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012990: 2020 2020 2020 2020 2020 286c 696e 6520 (line \n+000129a0: 3231 290a 2a20 5374 7265 616d 5f45 6c65 21).* Stream_Ele\n+000129b0: 6d65 6e74 5f41 7272 6179 203c 343e 3a20 ment_Array <4>: \n+000129c0: 2020 2020 2020 2020 2020 2020 2053 656e Sen\n+000129d0: 6420 2870 726f 6365 6475 7265 292e 2020 d (procedure). \n+000129e0: 2020 2028 6c69 6e65 2031 3729 0a2a 2053 (line 17).* S\n+000129f0: 7472 6561 6d5f 456c 656d 656e 745f 436f tream_Element_Co\n+00012a00: 756e 743a 2020 2020 2020 2020 2020 2020 unt: \n+00012a10: 2020 2020 2020 5265 6365 6976 6520 2866 Receive (f\n+00012a20: 756e 6374 696f 6e29 2e20 2020 286c 696e unction). (lin\n+00012a30: 6520 3232 290a 2a20 5374 7265 616d 5f45 e 22).* Stream_E\n+00012a40: 6c65 6d65 6e74 5f43 6f75 6e74 203c 313e lement_Count <1>\n+00012a50: 3a20 2020 2020 2020 2020 2020 2020 2052 : R\n+00012a60: 6563 6569 7665 5f53 6f6d 6520 2870 726f eceive_Some (pro\n+00012a70: 6365 6475 7265 292e 0a20 2020 2020 2020 cedure).. \n+00012a80: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012a90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012aa0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012ab0: 2020 2020 2020 2020 286c 696e 6520 3231 (line 21\n+00012ac0: 290a 2a20 5374 7269 6e67 5f41 6363 6573 ).* String_Acces\n+00012ad0: 733a 2020 2020 2020 2020 2020 2020 2020 s: \n+00012ae0: 2020 2020 2020 2020 2020 2053 6f63 6b65 Socke\n+00012af0: 7473 2e4e 616d 696e 6720 7061 636b 6167 ts.Naming packag\n+00012b00: 652e 0a20 2020 2020 2020 2020 2020 2020 e.. \n+00012b10: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012b20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012b30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012b40: 2020 286c 696e 6520 3334 290a 2a20 5374 (line 34).* St\n+00012b50: 7269 6e67 5f41 7272 6179 3a20 2020 2020 ring_Array: \n+00012b60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012b70: 2020 2020 2053 6f63 6b65 7473 2e4e 616d Sockets.Nam\n+00012b80: 696e 6720 7061 636b 6167 652e 0a20 2020 ing package.. \n+00012b90: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012ba0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012bb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012bc0: 2020 2020 2020 2020 2020 2020 286c 696e (lin\n+00012bd0: 6520 3337 290a 2a20 5375 6767 6573 7469 e 37).* Suggesti\n+00012be0: 6e67 2061 2066 6561 7475 7265 3a20 2020 ng a feature: \n+00012bf0: 2020 2020 2020 2020 2020 2020 2020 2052 R\n+00012c00: 6573 6f75 7263 6573 206f 6e20 7468 6520 esources on the \n+00012c10: 496e 7465 726e 6574 2e0a 2020 2020 2020 Internet.. \n+00012c20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012c30: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012c40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012c50: 2020 2020 2020 2020 2028 6c69 6e65 2020 (line \n+00012c60: 3629 0a2a 2054 4350 2073 6f63 6b65 743a 6).* TCP socket:\n+00012c70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012c80: 2020 2020 2020 2020 2020 2020 5365 7474 Sett\n+00012c90: 696e 6720 7570 2075 6e69 6361 7374 2073 ing up unicast s\n+00012ca0: 6f63 6b65 7473 2e0a 2020 2020 2020 2020 ockets.. \n+00012cb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012cc0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012cd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012ce0: 2020 2020 2020 2028 6c69 6e65 2020 3629 (line 6)\n+00012cf0: 0a2a 2055 4450 2073 6f63 6b65 743a 2020 .* UDP socket: \n+00012d00: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012d10: 2020 2020 2020 2020 2020 5365 7474 696e Settin\n+00012d20: 6720 7570 2075 6e69 6361 7374 2073 6f63 g up unicast soc\n+00012d30: 6b65 7473 2e0a 2020 2020 2020 2020 2020 kets.. \n+00012d40: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012d50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012d60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012d70: 2020 2020 2028 6c69 6e65 2020 3629 0a2a (line 6).*\n+00012d80: 2055 6e69 6361 7374 2073 6f63 6b65 7473 Unicast sockets\n+00012d90: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+00012da0: 2020 2020 2020 2020 5365 7474 696e 6720 Setting \n+00012db0: 7570 2075 6e69 6361 7374 2073 6f63 6b65 up unicast socke\n+00012dc0: 7473 2e0a 2020 2020 2020 2020 2020 2020 ts.. \n+00012dd0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012de0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012df0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012e00: 2020 2028 6c69 6e65 2020 3629 0a2a 2055 (line 6).* U\n+00012e10: 6e73 6574 5f42 7566 6665 723a 2020 2020 nset_Buffer: \n+00012e20: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012e30: 2020 2020 2020 556e 7365 745f 4275 6666 Unset_Buff\n+00012e40: 6572 2028 7072 6f63 6564 7572 6529 2e0a er (procedure)..\n+00012e50: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012e60: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012e70: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012e80: 2020 2020 2020 2020 2020 2020 2020 2028 (\n+00012e90: 6c69 6e65 2020 3929 0a2a 2056 616c 7565 line 9).* Value\n+00012ea0: 3a20 2020 2020 2020 2020 2020 2020 2020 : \n+00012eb0: 2020 2020 2020 2020 2020 2020 2020 2020 \n+00012ec0: 2020 5661 6c75 6520 2866 756e 6374 696f Value (functio\n+00012ed0: 6e29 2e20 2020 2020 286c 696e 6520 2039 n). (line 9\n+00012ee0: 290a 0a0a 1f0a 5461 6720 5461 626c 653a ).....Tag Table:\n+00012ef0: 0a4e 6f64 653a 2054 6f70 7f38 3136 0a4e .Node: Top.816.N\n+00012f00: 6f64 653a 2057 6861 7420 6973 2041 6461 ode: What is Ada\n+00012f10: 536f 636b 6574 733f 7f31 3338 390a 4e6f Sockets?.1389.No\n+00012f20: 6465 3a20 496e 7374 616c 6c69 6e67 2041 de: Installing A\n+00012f30: 6461 536f 636b 6574 737f 3232 3930 0a4e daSockets.2290.N\n+00012f40: 6f64 653a 2055 7369 6e67 2041 6461 536f ode: Using AdaSo\n+00012f50: 636b 6574 737f 3332 3937 0a4e 6f64 653a ckets.3297.Node:\n+00012f60: 2043 6f6d 7069 6c69 6e67 2061 6e20 4164 Compiling an Ad\n+00012f70: 6120 6170 706c 6963 6174 696f 6e7f 3335 a application.35\n+00012f80: 3838 0a4e 6f64 653a 2053 6574 7469 6e67 88.Node: Setting\n+00012f90: 2075 7020 756e 6963 6173 7420 736f 636b up unicast sock\n+00012fa0: 6574 737f 3432 3335 0a4e 6f64 653a 2053 ets.4235.Node: S\n+00012fb0: 6574 7469 6e67 2075 7020 6d75 6c74 6963 etting up multic\n+00012fc0: 6173 7420 736f 636b 6574 737f 3535 3439 ast sockets.5549\n+00012fd0: 0a4e 6f64 653a 2053 656e 6469 6e67 2061 .Node: Sending a\n+00012fe0: 6e64 2072 6563 6569 7669 6e67 2064 6174 nd receiving dat\n+00012ff0: 617f 3639 3032 0a4e 6f64 653a 2052 6177 a.6902.Node: Raw\n+00013000: 2064 6174 6120 6d61 6e69 7075 6c61 7469 data manipulati\n+00013010: 6f6e 7f37 3236 340a 4e6f 6465 3a20 5374 on.7264.Node: St\n+00013020: 7269 6e67 2d6f 7269 656e 7465 6420 6578 ring-oriented ex\n+00013030: 6368 616e 6765 737f 3736 3732 0a4e 6f64 changes.7672.Nod\n+00013040: 653a 2053 6f63 6b65 7473 2070 6163 6b61 e: Sockets packa\n+00013050: 6765 7f38 3830 350a 4e6f 6465 3a20 4163 ge.8805.Node: Ac\n+00013060: 6365 7074 5f53 6f63 6b65 7420 2870 726f cept_Socket (pro\n+00013070: 6365 6475 7265 297f 3131 3038 380a 4e6f cedure).11088.No\n+00013080: 6465 3a20 4269 6e64 2028 7072 6f63 6564 de: Bind (proced\n+00013090: 7572 6529 7f31 3237 3739 0a4e 6f64 653a ure).12779.Node:\n+000130a0: 2043 6f6e 6e65 6374 2028 7072 6f63 6564 Connect (proced\n+000130b0: 7572 6529 7f31 3430 3536 0a4e 6f64 653a ure).14056.Node:\n+000130c0: 2047 6574 2028 6675 6e63 7469 6f6e 297f Get (function).\n+000130d0: 3135 3434 390a 4e6f 6465 3a20 4765 745f 15449.Node: Get_\n+000130e0: 4368 6172 2028 6675 6e63 7469 6f6e 297f Char (function).\n+000130f0: 3136 3635 300a 4e6f 6465 3a20 4765 745f 16650.Node: Get_\n+00013100: 4c69 6e65 2028 6675 6e63 7469 6f6e 297f Line (function).\n+00013110: 3137 3531 350a 4e6f 6465 3a20 4765 745f 17515.Node: Get_\n+00013120: 4c69 6e65 2028 7072 6f63 6564 7572 6529 Line (procedure)\n+00013130: 7f31 3838 3236 0a4e 6f64 653a 2047 6574 .18826.Node: Get\n+00013140: 5f52 6563 6569 7665 5f51 7565 7565 5f53 _Receive_Queue_S\n+00013150: 697a 6520 2866 756e 6374 696f 6e29 7f31 ize (function).1\n+00013160: 3939 3935 0a4e 6f64 653a 2047 6574 5f53 9995.Node: Get_S\n+00013170: 656e 645f 5175 6575 655f 5369 7a65 2028 end_Queue_Size (\n+00013180: 6675 6e63 7469 6f6e 297f 3230 3836 330a function).20863.\n+00013190: 4e6f 6465 3a20 4765 7473 6f63 6b6f 7074 Node: Getsockopt\n+000131a0: 2028 7072 6f63 6564 7572 6529 7f32 3137 (procedure).217\n+000131b0: 3230 0a4e 6f64 653a 204c 6973 7465 6e20 20.Node: Listen \n+000131c0: 2870 726f 6365 6475 7265 297f 3233 3038 (procedure).2308\n+000131d0: 360a 4e6f 6465 3a20 4e65 775f 4c69 6e65 6.Node: New_Line\n+000131e0: 2028 7072 6f63 6564 7572 6529 7f32 3339 (procedure).239\n+000131f0: 3632 0a4e 6f64 653a 2050 7574 2028 7072 62.Node: Put (pr\n+00013200: 6f63 6564 7572 6529 7f32 3436 3838 0a4e ocedure).24688.N\n+00013210: 6f64 653a 2050 7574 5f4c 696e 6520 2870 ode: Put_Line (p\n+00013220: 726f 6365 6475 7265 297f 3235 3432 330a rocedure).25423.\n+00013230: 4e6f 6465 3a20 5265 6365 6976 6520 2866 Node: Receive (f\n+00013240: 756e 6374 696f 6e29 7f32 3632 3133 0a4e unction).26213.N\n+00013250: 6f64 653a 2052 6563 6569 7665 2028 7072 ode: Receive (pr\n+00013260: 6f63 6564 7572 6529 7f32 3734 3236 0a4e ocedure).27426.N\n+00013270: 6f64 653a 2052 6563 6569 7665 5f53 6f6d ode: Receive_Som\n+00013280: 6520 2870 726f 6365 6475 7265 297f 3238 e (procedure).28\n+00013290: 3435 370a 4e6f 6465 3a20 5365 6e64 2028 457.Node: Send (\n+000132a0: 7072 6f63 6564 7572 6529 7f32 3936 3438 procedure).29648\n+000132b0: 0a4e 6f64 653a 2053 6574 5f42 7566 6665 .Node: Set_Buffe\n+000132c0: 7220 2870 726f 6365 6475 7265 297f 3330 r (procedure).30\n+000132d0: 3339 310a 4e6f 6465 3a20 5365 7473 6f63 391.Node: Setsoc\n+000132e0: 6b6f 7074 2028 7072 6f63 6564 7572 6529 kopt (procedure)\n+000132f0: 7f33 3136 3034 0a4e 6f64 653a 2053 6875 .31604.Node: Shu\n+00013300: 7464 6f77 6e20 2870 726f 6365 6475 7265 tdown (procedure\n+00013310: 297f 3332 3935 300a 4e6f 6465 3a20 536f ).32950.Node: So\n+00013320: 636b 6574 2028 7072 6f63 6564 7572 6529 cket (procedure)\n+00013330: 7f33 3336 3030 0a4e 6f64 653a 2055 6e73 .33600.Node: Uns\n+00013340: 6574 5f42 7566 6665 7220 2870 726f 6365 et_Buffer (proce\n+00013350: 6475 7265 297f 3334 3939 300a 4e6f 6465 dure).34990.Node\n+00013360: 3a20 536f 636b 6574 732e 4d75 6c74 6963 : Sockets.Multic\n+00013370: 6173 7420 7061 636b 6167 657f 3335 3638 ast package.3568\n+00013380: 390a 4e6f 6465 3a20 4372 6561 7465 5f4d 9.Node: Create_M\n+00013390: 756c 7469 6361 7374 5f53 6f63 6b65 7420 ulticast_Socket \n+000133a0: 2866 756e 6374 696f 6e29 7f33 3635 3334 (function).36534\n+000133b0: 0a4e 6f64 653a 2053 6f63 6b65 7473 2e4e .Node: Sockets.N\n+000133c0: 616d 696e 6720 7061 636b 6167 657f 3430 aming package.40\n+000133d0: 3236 300a 4e6f 6465 3a20 4164 6472 6573 260.Node: Addres\n+000133e0: 735f 4f66 2028 6675 6e63 7469 6f6e 297f s_Of (function).\n+000133f0: 3432 3738 370a 4e6f 6465 3a20 416e 795f 42787.Node: Any_\n+00013400: 4164 6472 6573 7320 2866 756e 6374 696f Address (functio\n+00013410: 6e29 7f34 3336 3831 0a4e 6f64 653a 2047 n).43681.Node: G\n+00013420: 6574 5f50 6565 725f 4164 6472 2028 6675 et_Peer_Addr (fu\n+00013430: 6e63 7469 6f6e 297f 3434 3039 360a 4e6f nction).44096.No\n+00013440: 6465 3a20 4765 745f 5065 6572 5f50 6f72 de: Get_Peer_Por\n+00013450: 7420 2866 756e 6374 696f 6e29 7f34 3436 t (function).446\n+00013460: 3638 0a4e 6f64 653a 2047 6574 5f53 6f63 68.Node: Get_Soc\n+00013470: 6b5f 4164 6472 2028 6675 6e63 7469 6f6e k_Addr (function\n+00013480: 297f 3435 3235 380a 4e6f 6465 3a20 4765 ).45258.Node: Ge\n+00013490: 745f 536f 636b 5f50 6f72 7420 2866 756e t_Sock_Port (fun\n+000134a0: 6374 696f 6e29 7f34 3538 3530 0a4e 6f64 ction).45850.Nod\n+000134b0: 653a 2048 6f73 745f 4e61 6d65 2028 6675 e: Host_Name (fu\n+000134c0: 6e63 7469 6f6e 297f 3436 3433 340a 4e6f nction).46434.No\n+000134d0: 6465 3a20 496d 6167 6520 2866 756e 6374 de: Image (funct\n+000134e0: 696f 6e29 7f34 3639 3530 0a4e 6f64 653a ion).46950.Node:\n+000134f0: 2049 6e66 6f5f 4f66 5f4e 616d 655f 4f72 Info_Of_Name_Or\n+00013500: 5f49 5020 2866 756e 6374 696f 6e29 7f34 _IP (function).4\n+00013510: 3734 3236 0a4e 6f64 653a 2049 735f 4950 7426.Node: Is_IP\n+00013520: 5f41 6464 7265 7373 2028 6675 6e63 7469 _Address (functi\n+00013530: 6f6e 297f 3438 3135 360a 4e6f 6465 3a20 on).48156.Node: \n+00013540: 4e61 6d65 5f4f 6620 2866 756e 6374 696f Name_Of (functio\n+00013550: 6e29 7f34 3836 3730 0a4e 6f64 653a 2056 n).48670.Node: V\n+00013560: 616c 7565 2028 6675 6e63 7469 6f6e 297f alue (function).\n+00013570: 3439 3235 370a 4e6f 6465 3a20 436f 6e74 49257.Node: Cont\n+00013580: 7269 6275 746f 7273 7f34 3937 3039 0a4e ributors.49709.N\n+00013590: 6f64 653a 2052 6573 6f75 7263 6573 206f ode: Resources o\n+000135a0: 6e20 7468 6520 496e 7465 726e 6574 7f35 n the Internet.5\n+000135b0: 3131 3330 0a4e 6f64 653a 2049 6e64 6578 1130.Node: Index\n+000135c0: 7f35 3135 3634 0a1f 0a45 6e64 2054 6167 .51564...End Tag\n+000135d0: 2054 6162 6c65 0a0a 1f0a 4c6f 6361 6c20 Table....Local \n+000135e0: 5661 7269 6162 6c65 733a 0a63 6f64 696e Variables:.codin\n+000135f0: 673a 2075 7466 2d38 0a45 6e64 3a0a g: utf-8.End:.\n"}]}]}]}]}]}