1DeviceOffline(3z) z88dk Programmer's Manual DeviceOffline(3z)
2
3
4
6 DeviceOffline - turn the network device online
7
9 #include <net/misc.h>
10
11 void DeviceOffline(int flag);
12
14 The DeviceOffline() function turns the packet driver offline so that
15 other application may utilise the resources that it is using.
16
17 For example for the built in SLIP driver, turning the device online
18 prevents polling of the serial port for incoming bytes and the sending
19 of queued packets, thus allowing another program (e.g. Terminal) to use
20 the serial port.
21
22 The parameter flag specifies how the device is to be turned offline,
23 with current device drivers this has no significence. However it is
24 envisaged that the value NOHANGUP the device will simply suspend send‐
25 ing and receiving packets. Whilst with HANGUP the device will hangup
26 the line and terminate the telephone connection.
27
28
30 None.
31
32
34 DeviceOnline(3z)
35
36
38 Dominic Morris <dom@jb.man.ac.uk>
39
40
41
42
43 18 February 2000 DeviceOffline(3z)