build a dhcpd with Rebol?
[1/6] from: burnout:heathers:stdio at: 27-Oct-2003 13:25
Ok, I'm mostly a newbie to Rebol but not programming in general. Anyway,
I'm looking for info as to whether it could be possible to build a dhcp
daemon with Rebol. I know I could use the standard dhcpd's included in a
million other OSes but I'm looking to create a special implementation so
I have to find a decent language that I can create this in and Rebol
offers everything we could ever need in all the other arenas soooo....
IF this is possible, does anyone have any pointers where to start
looking(besides the RFC's that I'm already starting to tear apart)...a
simple code example wouldn't be unwelcome.
--
Learn to protect your company from industrial espionage.
http://www.peoplehacking.com
[2/6] from: jason:cunliffe:verizon at: 27-Oct-2003 14:16
This seems like a good place to start, source, book etc...
http://www.isc.org/products/DHCP/
good luck
- Jason
[3/6] from: jason:cunliffe:verizon at: 27-Oct-2003 14:21
http://www.allaboutjake.com/network/linksys/befw11s4/
search down the page for "rebol"
[4/6] from: jason:cunliffe:verizon at: 27-Oct-2003 14:26
... and a nice article in French on multicasting in Rebol
http://www.rebolfrance.net/articles/multicast/multicast.html
- Jason
[5/6] from: andreas:bolka:gmx at: 27-Oct-2003 20:43
Monday, October 27, 2003, 7:25:44 PM, Eric wrote:
> a simple code example wouldn't be unwelcome.
an ultra simple echo server + client:
-- server --
REBOL [ title: 'server ]
srv: open udp://:9001
forever [
cli: wait srv
print copy cli
]
-- client --
REBOL [ title: 'client ]
foo: open udp://127.255.255.255:9001
insert foo "bar"
close foo
--
Best regards,
Andreas
[6/6] from: andreas::bolka::gmx::net at: 27-Oct-2003 20:30
Monday, October 27, 2003, 7:25:44 PM, Eric wrote:
> Ok, I'm mostly a newbie to Rebol but not programming in general.
> Anyway, I'm looking for info as to whether it could be possible to
> build a dhcp daemon with Rebol.
DHCP uses UDP as transport protocol, afair. REBOL does support UDP, so
building a DHCP daemon should be possible :)
> IF this is possible, does anyone have any pointers where to start
> looking(besides the RFC's that I'm already starting to tear
> apart)...a simple code example wouldn't be unwelcome.
I suggest that you take a look at the networking stuff in the
REBOL/Core Users Guide (http://www.rebol.com/docs-core.html)
There is a tip how to use server ports in REBOL in the REBOL Cookbook,
(http://www.rebol.net/cookbook/) and it might be helpful even though
it's about TCP server ports.
--
Best regards,
Andreas