Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a static sockaddr_storage for rpc.udp_dest
There is no need to allocate and deallocate this structue every time we update the udp destinateion. For the client side, where we set the destination just once per lifetime of the context it might not matter too much but once we add udp server support we will need to update the sockaddr for every rpc we receive. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
- Loading branch information
Showing
4 changed files
with
5 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters