/* Retrieves the current state of a given TCP port, specified in big endian. */
uint8_t TCP_GetPortState(const uint16_t Port)
/* Retrieves the current state of a given TCP port, specified in big endian. */
uint8_t TCP_GetPortState(const uint16_t Port)
{
	for (uint8_t PTableEntry = 0; PTableEntry < MAX_OPEN_TCP_PORTS; PTableEntry++)
	{
		if (PortStateTable[PTableEntry].Port == Port)
		  return PortStateTable[PTableEntry].State;
	}
	return TCP_Port_Closed;
}