Network Component
Version 7.19.0
MDK Middleware for IPv4 and IPv6 Networking
|
Functions of the SLIP interface. More...
Functions | |
netStatus | netSLIP_Listen (void) |
Start SLIP interface to accept incoming SLIP connections. [thread-safe]. More... | |
netStatus | netSLIP_Connect (const char *dial_num) |
Start a dial-up connection to remote SLIP server. [thread-safe]. More... | |
netStatus | netSLIP_Close (void) |
Disconnect SLIP link between two modems. [thread-safe]. More... | |
bool | netSLIP_LinkUp (void) |
Determine the state of SLIP link. [thread-safe]. More... | |
Functions of the SLIP interface.
To start a dial-up connection to a remote SLIP server, use netSLIP_Connect (client mode). If you want to wait for an incoming connection, use netSLIP_Listen instead (server mode). To check the link status, use netSLIP_LinkUp. This can be done in client and server mode and can be used to continuously monitor the SLIP link. To disconnect the SLIP link, use netSLIP_Close (for client and server mode). Usually, this is done by the client. Note that the netSLIP_Close function does not change the running mode of the SLIP daemon. If the SLIP daemon was in server mode, SLIP daemon re-initializes the modem driver to accept further incoming calls.
netStatus netSLIP_Close | ( | void | ) |
Disconnect SLIP link between two modems. [thread-safe].
The function netSLIP_Close disconnects the SLIP link between the two modems.
Possible netStatus return values:
Code Example
netStatus netSLIP_Connect | ( | const char * | dial_num | ) |
Start a dial-up connection to remote SLIP server. [thread-safe].
[in] | dial_num | phone number of remote SLIP server. |
The function netSLIP_Connect starts a dial-up connection to the remote SLIP server by starting the SLIP daemon in client mode.
The argument dial_num points to a null-terminated string containing the phone number of the remote SLIP server.
Possible netStatus return values:
Code Example
bool netSLIP_LinkUp | ( | void | ) |
Determine the state of SLIP link. [thread-safe].
The function netSLIP_LinkUp determines the state of SLIP link between the two modems. It returns true if IP frames can be exchanged over the SLIP link.
Code Example
netStatus netSLIP_Listen | ( | void | ) |
Start SLIP interface to accept incoming SLIP connections. [thread-safe].
The function netSLIP_Listen configures the SLIP interface to accept incoming SLIP connections by starting the SLIP daemon in server mode.
Possible netStatus return values:
Code Example