Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizog committed Oct 26, 2024
1 parent 892b5c0 commit d5cb14a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ The project underwent a major maintenance shift in March 2022.

Code changes to `master` that are *not* in the latest release:

## Release v0.0.10
- Fix Python3.8 issue from version 0.0.9 (Set of asyncio.Task typing)
- Properly handle major version (interface version) of services
- Handle session ids and client ids
- Allow multiple asynchronous method calls from a client and handle out of order method responses

## Release v0.0.9
- Enable asynchronous method handlers

## Release v0.0.8
- Improved method error handling
- Update of method handler function signature
Expand Down
3 changes: 2 additions & 1 deletion offering_methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ In the next step, we will implement the method handler. This function will recei

For details about error handling in SOME/IP, read chapter 4.2.6 in the [SOME/IP protocol specification](https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_PRS_SOMEIPProtocol.pdf).

The method handler is an asynchronous function (`async def`). This allows for io-bound calls using `await` inside the method handler, e.g. calling another SOME/IP method or querying from a database, without blocking other tasks or method handlers from running.

```python
def add_method_handler(input_data: bytes, addr: Tuple[str, int]) -> MethodResult:
async def add_method_handler(input_data: bytes, addr: Tuple[str, int]) -> MethodResult:
print(
f"Received data: {' '.join(f'0x{b:02x}' for b in input_data)} from IP: {addr[0]} Port: {addr[1]}"
)
Expand Down

0 comments on commit d5cb14a

Please sign in to comment.