Attention is currently required from: daniel, dexter, laforge. Hoernchen has posted comments on this change by Hoernchen. ( https://gerrit.osmocom.org/c/pysim/+/43545?usp=email ) Change subject: smpp2sim: make the SCP81 BIP relay work ...................................................................... Patch Set 3: (10 comments) File pySim/bip.py: https://gerrit.osmocom.org/c/pysim/+/43545/comment/6e70c94e_68208659?usp=ema... : PS2, Line 30: # Without them the handler builds and logs what it would send.
I would move such documentation into the API docstrings of the class. […] Done
https://gerrit.osmocom.org/c/pysim/+/43545/comment/416f3b7a_c648c6f4?usp=ema... : PS2, Line 64: bandwidth..
This explains why we have moved away from twisted. I would put this into a normal comment. […] Done
https://gerrit.osmocom.org/c/pysim/+/43545/comment/9c937f71_4fa3fff5?usp=ema... : PS2, Line 119: if was_empty and not self._closing:
I think its important to document why we only notify when the buffer was empty. […] Done
https://gerrit.osmocom.org/c/pysim/+/43545/comment/a05d4efc_05f7a4ac?usp=ema... : PS2, Line 126: def rx_available(self) -> int:
Missing API doc […] Done
https://gerrit.osmocom.org/c/pysim/+/43545/comment/8bb1c38a_c85b58d3?usp=ema... : PS2, Line 175: def __init__(self, on_data_available=None):
I think here it is in particular important to put an API docstring and to document the on_data_avail […] Done
https://gerrit.osmocom.org/c/pysim/+/43545/comment/be87285d_3a8521fb?usp=ema... : PS2, Line 189: def channel_delete(self, chan_nr: int):
maybe add a docstring? Done
https://gerrit.osmocom.org/c/pysim/+/43545/comment/0a24f9e9_ab12230c?usp=ema... : PS2, Line 192: def notify_data_available(self, chan: ProactChannel):
The ProactChannel object is created by the channel_create method in this class. […] The back reference is not only for the notification, ProactChannel.close() also removes itself from ProactChannels via channel_delete. Dropping it would move that bookkeeping into every caller of close() so I kept it as is.
https://gerrit.osmocom.org/c/pysim/+/43545/comment/c7ef8ff0_248828fb?usp=ema... : PS2, Line 199: def __init__(self, data_available_sink=None, sms_sink=None):
Explain the parameters in an API docstring. In particular the data_available_sink is important here. […] Done
https://gerrit.osmocom.org/c/pysim/+/43545/comment/bcce6e4f_eea65298?usp=ema... : PS2, Line 268: def build_data_available_envelope(self, chan: ProactChannel) -> bytes:
As far as I can see this is called from _on_channel_data_available only. […] Done
https://gerrit.osmocom.org/c/pysim/+/43545/comment/a4180bcc_31e1fd05?usp=ema... : PS2, Line 392: def handle_ReceiveData(self, pcmd: ProactiveCommand):
maybe add some more API doc on how to use this function? As far as I understood, this is to be calle […] Done
-- To view, visit https://gerrit.osmocom.org/c/pysim/+/43545?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: If96c768f2e35c20ea3753e601059410121517b60 Gerrit-Change-Number: 43545 Gerrit-PatchSet: 3 Gerrit-Owner: Hoernchen <ewild@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Attention: laforge <laforge@osmocom.org> Gerrit-Attention: daniel <dwillmann@sysmocom.de> Gerrit-Attention: dexter <pmaier@sysmocom.de> Gerrit-Comment-Date: Wed, 23 Sep 2026 16:07:55 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: dexter <pmaier@sysmocom.de>