REBOL Document

Set-net - Function Summary


Summary:

Network setup. All values after default are optional. Words OK for server names.

Usage:

set-net settings

Arguments:

settings - [email-addr default-server pop-server proxy-server proxy-port-id proxy-type] (must be: block)

Description:

See the manual for a detailed description of this function. The block contains a series of values used for network settings. Use SET-NET to establish the network settings REBOL will use to access your LAN, or WAN.

The first value is your email address and it is used when sending email and connecting to FTP. This value is stored in the REBOL system object at: SYSTEM/USER/EMAIL

The second value is your SMTP (outgoing email) server name or address. This is stored in the REBOL system object at: SYSTEM/SCHEMES/DEFAULT/HOST

The third value is an optional POP (incoming email) server name or address. This is stored at: SYSTEM/SCHEMES/POP/HOST

The fourth value is an optional proxy server name or address. See the manual for a complete description. This is at: SYSTEM/SCHEMES/DEFAULT/PROXY/HOST

The fifth value is an optional proxy port number. This is at: SYSTEM/SCHEMES/DEFAULT/PROXY/PORT-ID

The sixth value is an optional proxy protocol. It can be socks, socks5, socks4, generic, or none. This is at: SYSTEM/SCHEMES/DEFAULT/PROXY/TYPE

This is a helper function. You can always set any of the protocols directly.


    set-net [
        user@domain.name
        smtp.domain.name
    ]


    set-net [
        user@domain.name
        smtp.domain.name
        pop.domain.name
        proxy.domain.name
        1080
        socks
    ]


<Back | Index | Next>

Copyright 2004 REBOL Technologies