|
From: | Iordan Neshev |
Subject: | [lwip-devel] [task #10374] struct sockaddr_in can be typedef-ed |
Date: | Tue, 11 May 2010 11:12:22 +0000 |
User-agent: | Opera/9.80 (Windows NT 5.1; U; en) Presto/2.2.15 Version/10.00 |
URL: <http://savannah.nongnu.org/task/?10374> Summary: struct sockaddr_in can be typedef-ed Project: lwIP - A Lightweight TCP/IP stack Submitted by: iordan_neshev Submitted on: Tue 11 May 2010 11:12:21 AM GMT Category: None Should Start On: Tue 11 May 2010 12:00:00 AM GMT Should be Finished on: Tue 11 May 2010 12:00:00 AM GMT Priority: 5 - Normal Status: None Privacy: Public Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None Effort: 0.00 _______________________________________________________ Details: Recently struct ip_addr was typedef-ed to ip_addr_t and the code now looks much more clear and readable. The same can be done with struct sockaddr_in in sockets.h: typedef struct { u8_t sin_len; u8_t sin_family; u16_t sin_port; struct in_addr sin_addr; char sin_zero[8]; } sockaddr_in_t; _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/task/?10374> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |