forked from simonvetter/modbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: rework the RequestHandler interface
This changes the RequestHandler interface to: - pass an object to each handler (containing all previously passed request parameters), - add an additional ClientAddr string to this object, to allow handlers to log or discriminate on source IP addresses. Passing a unique object instead of multiple parameters should make extending the server easier in the future. The code change is tiny, accomodating for it should require minimal effort. Apologies if it breaks anything.
- Loading branch information
1 parent
c8aaf9e
commit 45da107
Showing
3 changed files
with
179 additions
and
129 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
Oops, something went wrong.