Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ Developer Release Notes: BeOS Release 4, The Network Kit and Net Add-ons

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Developer Release Notes: BeOS Release 4, The Network Kit and Net Add-ons


The Network Kit and Network Add-ons
Developer Release Notes
BeOS Release 4

Bug Fixes

  • getservbyname(), which returns the port number of a network service that's identified by name, now looks in the /etc/services file for service entries.  Each entry in the file gives the name, port number, and protocol for a service:

        serviceName portNumber/protocol
    For example...

    ismtp       25/tcp
    smtp        25/udp
    nsw-fe      27/tcp
    nsw-fe      27/udp

    As before, the ftp and telnet entries are hard-coded into the function: You can ask for ftp and telnet info even if you don't have an /etc/services file.


BNetDevice

  • The new get_nth_netcard_info() function returns information about a network interface card:

    status_t get_nth_netcard_info(int16 n, netcard_info_t *ni)

    The function returns B_OK or B_ERROR.

  • The netcard_info_t structure looks like this:

    typedef struct netcard_info {
       net_device_type netcard_type;
       char netcard_addr[255];
    } netcard_info_t;
    • netcard_type is B_PPP_NET_DEVICE, B_ETHER_NET_DEVICE, or B_LOOP_NET_DEVICE.

    • netcard_addr is the card's hardware address.  The address format depends on the card's device type.






BeOS Release 4




Copyright © 1998 Be, Inc.  All rights reserved.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026