eyalabraham / 8bit-TCPIP

An 8bit Intel 8088/8086 campatible TCP/IP stack
MIT License
4 stars 0 forks source link

Add stack shut down functionality #8

Open eyalabraham opened 4 years ago

eyalabraham commented 4 years ago

When the stack is use to drive network connectivity on a platform like a PC-XT with SLIP, it is desirable to close the serial connection before exiting back to a DOS prompt. Add a stack shut down functionality: (1) stack_close() function (2) #1 will call registered clean up function, for example driver close function. This can be used to call a SLIP driver's shut down/clean up that disabled interrupts etc.