Re: IP Binding

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 11/16/97


On Sun, 16 Nov 1997, Jeremy Elson wrote:

>Circle to bind.  For example, to bind to 1.2.3.4, I think you'd write:
>
>sa.sin_addr.s_addr = htonl((1 << 24) | (2 << 16) | (3 << 8) | 4);

That's icky, lets use the conversion function or write one to do it if
inet_addr is not standard.

>Maybe I'll add this to pl13+ if it's commonly required, but I've never
>heard of anyone needing it before.

Sounds like it would be useful to some people and not break anything else.

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST