Close Connection (CC) instruction
|Top Previous Next|
Description (see instruction description format info here)
Close Connection instruction makes the DS close current data connection (if existed) and also reset routing buffers overflow flags (overflows are displayed by the status LEDs, overflow status is also returned by the Echo (X) command- see S and E flags).
Close Connection instruction can be used at any time, even if the data connection is already closed and if the data connection was not established by the DS itself (i.e. it was a passive open).
OK (A) reply code is returned if command is accepted. This does not mean that the connection has been shut down already, only that the DS has accepted the command. Actual connection status can be verified at any time using the Echo (X) command (see c flag).
Another instruction- Abort Connection (CA)- can be used to abort the TCP connection (using the RST packet). For UDP data "connections" there is no difference between the Close Connection instruction and the Abort Connection (CA) instruction.