Skip to content

Commit 95a3d6b

Browse files
committed
More clean up. Removing obsolete files.
1 parent 4090dba commit 95a3d6b

23 files changed

+442
-4906
lines changed

docs/ptk_ideas.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -89,27 +89,6 @@ typedef struct {
8989
uint32_t read_timeout_ms;
9090
} ptk_serial_connection_t;
9191
92-
/* Protocol connections - much larger, contain transport reference + protocol state */
93-
typedef struct {
94-
ptk_event_source_t base; /* Must be first - enables polymorphism */
95-
ptk_tcp_connection_t* transport;
96-
uint32_t session_handle; /* Persistent session state */
97-
uint16_t connection_id; /* Persistent connection state */
98-
uint8_t sequence_number; /* Persistent sequence tracking */
99-
uint32_t registration_timeout_ms;
100-
uint8_t sender_context[8]; /* EIP sender context */
101-
uint16_t encap_sequence; /* Encapsulation sequence number */
102-
} ptk_eip_connection_t;
103-
104-
typedef struct {
105-
ptk_event_source_t base; /* Must be first - enables polymorphism */
106-
ptk_tcp_connection_t* transport;
107-
uint16_t transaction_id; /* Persistent transaction tracking */
108-
uint8_t unit_id; /* Persistent unit identifier */
109-
uint8_t function_code; /* Last function code used */
110-
uint16_t retry_count; /* Protocol retry handling */
111-
uint32_t response_timeout_ms; /* Protocol-specific timeout */
112-
} ptk_modbus_connection_t;
11392
11493
typedef enum {
11594
PTK_CONN_DATA_READY = 1, /* Data available to read */
@@ -138,9 +117,6 @@ ptk_status_t ptk_init_tcp_connection(ptk_tcp_connection_t* conn, const char* hos
138117
ptk_status_t ptk_init_udp_connection(ptk_udp_connection_t* conn, const char* host, uint16_t port);
139118
ptk_status_t ptk_init_serial_connection(ptk_serial_connection_t* conn, const char* device, int baud);
140119
141-
/* Protocol-specific connection initialization - takes event source (any connection) */
142-
ptk_status_t ptk_init_eip_connection(ptk_eip_connection_t* eip_conn, ptk_tcp_connection_t* tcp_conn);
143-
ptk_status_t ptk_init_modbus_connection(ptk_modbus_connection_t* mb_conn, ptk_event_source_t* transport_conn);
144120
145121
/* Type-Safe Slice System */
146122

0 commit comments

Comments
 (0)