From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-29 10:08:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X (Ada.Sockets) References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc51.ops.asp.att.net 1054228112 12.234.13.56 (Thu, 29 May 2003 17:08:32 GMT) NNTP-Posting-Date: Thu, 29 May 2003 17:08:32 GMT Organization: AT&T Broadband Date: Thu, 29 May 2003 17:08:32 GMT Xref: archiver1.google.com comp.lang.ada:38003 Date: 2003-05-29T17:08:32+00:00 List-Id: >One could also add a layer to the socket library in order to simplify socket >programming for ordinary mortals. e.g. add a tcp client and server library. >... >How simple should such a library be? Just four procedures: open_tcp_client, >open_tcp_server, read_tcp, write_tcp. That's it. The latter should ideally I sent a socket library to www.adapower.com recently, and had previously posted there a SMTP and HTTP client and HTTP server (the latter using Claw, but the change being trivial). A call to Open and one to Write is the minimum needed for a client (initialization, closing, and finalization being handled internally by controlled types). A server needs Open and Greet (accept an incoming client and hand it off to a worker).