Attention is currently required from: Hoernchen, laforge.

dexter has posted comments on this change by Hoernchen. ( 
https://gerrit.osmocom.org/c/pysim/+/43716?usp=email )

Change subject: bip: UDP channels for CAT_TP
......................................................................


Patch Set 1: Code-Review+1

(3 comments)

File pySim/bip.py:

https://gerrit.osmocom.org/c/pysim/+/43716/comment/feef6573_d1b2b115?usp=email :
PS1, Line 83: class ProactChannel:
I see below you are just overloading entire methods (e.g. the connect method), 
without ever calling the related method in this superclass.

How about an abstract ProactChannel(abc.ABC) class that has the skeleton with 
abstract methods. Then you can have a ProactTcpChannel(ProactChannel). I think 
this would be a lot cleaner.


https://gerrit.osmocom.org/c/pysim/+/43716/comment/3a1e9fb4_4fd2c567?usp=email :
PS1, Line 233:                                         name='bip-rx-%d' % 
self.chan_nr, daemon=True)
This (thread creation) is a code dup you could easily get rid off with the 
approach I mentioned above.


https://gerrit.osmocom.org/c/pysim/+/43716/comment/ca4f0e0d_07a78fa8?usp=email :
PS1, Line 297:         """Create a new proactive channel, allocating its 
integer number."""
I recommend to document proto in the apidoc.



--
To view, visit https://gerrit.osmocom.org/c/pysim/+/43716?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: I015c5eb8768c70751b198d9259c58dab22e4a8ff
Gerrit-Change-Number: 43716
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Attention: Hoernchen <[email protected]>
Gerrit-Attention: laforge <[email protected]>
Gerrit-Comment-Date: Thu, 24 Sep 2026 13:55:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes

Reply via email to