====== 07 Networking ====== ===== TCP ===== === TCP Listen VI === Set the ''resolve remote address'' boolean to FALSE unless you really need this feature. Resolving the name might take a long time if no DNS is available: {{:kb:bestpractices:codingconventions:tcp-listen-vi.jpeg?400|}} ===== UDP ===== === UDP Read === Always wire an adequate ''max size'' for the datagram to the UDP Read VI. Ideally, make it a configuration setting. The default size is 548 bytes, which is very often too small and might lead to problems that are very difficult to track down. {{:kb:bestpractices:codingconventions:udp-read-size.png?400|}} > //max size is the maximum number of bytes to read. The default is 548. (Windows) If you wire a value other than 548 to this input, Windows might return an error because the function cannot read fewer bytes than are in a packet.// ---- **[[https://createbettersoftware.com|The HSE Way of Working]]:** \\ A set of guidelines that recommend programming style, better practices, and methods for all our LabVIEW projects. We ask all our peers to follow these guidelines to help improve the readability of our shared source code and make software maintenance easier. |< 100% 50% >| |[[kb:bestpractices:codingconventions:lvoop|<< 06 LVOOP]] | [[kb:bestpractices:codingconventions:database|08 Databases >>]]|