User Tools

Site Tools


module:python:udpclientserver:udpclientserverbidirectional

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
module:python:udpclientserver:udpclientserverbidirectional [2021/12/11 21:43] – [Aufruf ohne Übergabe-Parameter:] omdevelopmodule:python:udpclientserver:udpclientserverbidirectional [2022/09/13 11:58] (current) – external edit 127.0.0.1
Line 16: Line 16:
   * Identische SourceCodes in zwei Terminals mit unterschiedlichen Übergabe-Parametern   * Identische SourceCodes in zwei Terminals mit unterschiedlichen Übergabe-Parametern
  
-==== Aufruf ohne Übergabe-Parameter: ====+Aufruf in der Kommandozeile mit Argumenten: \\ 
 +** python CheckUdpClientServer.py <headerid> <rxipport> <txipaddress> <txipport> ** \\ 
 +\\ 
 +Beispiel: 
 +<code> 
 +>python CheckUdpClientServer.py PCID 5555 192.168.178.123 4444 
 +</code> 
 + 
 +==== Single PC: Aufruf ohne Übergabe-Parameter: ====
 <code python> <code python>
 >python UdpClientServer.py >python UdpClientServer.py
Line 28: Line 36:
 </code> </code>
  
-==== Aufruf mit Übergabe-Parametern====+==== Single PC: Aufruf mit Übergabe-Parametern ====
   * Sender / Empfänger mit identischer IPAddress[192.168.178.33](lokal)   * Sender / Empfänger mit identischer IPAddress[192.168.178.33](lokal)
   * Rx-Port[4321] und Tx-Port[4321] identisch    * Rx-Port[4321] und Tx-Port[4321] identisch 
 <code python> <code python>
 >python UdpClientServer.py Windows 4321 192.168.178.33 4321 >python UdpClientServer.py Windows 4321 192.168.178.33 4321
-*** PcUdpClientServerThread: begin+*** UdpClientServer: begin
 Windows: TxIP-Address[192.168.178.33]-Port[4321] Windows: TxIP-Address[192.168.178.33]-Port[4321]
 Windows: RxIP(local)-Address[192.168.178.33]-Port[4321] Windows: RxIP(local)-Address[192.168.178.33]-Port[4321]
Line 42: Line 50:
 CBOnTxData[Windows]<2> CBOnTxData[Windows]<2>
 CBOnRxData[Windows]<2> CBOnRxData[Windows]<2>
-*** PcUdpClientServerThread: end+*** UdpClientServer: end 
 +</code> 
 + 
 +==== Single PC: Aufruf an alle UdpReceiver ==== 
 +  * Sendung an alle IPAddresses[192.168.178.255] (auch an sich selbst!) 
 +  * Rx-Port[4321] und Tx-Port[4321] identisch  
 +<code python> 
 +>python UdpClientServer.py Windows 4321 192.168.178.255 4321 
 +*** UdpClientServer: begin 
 +Windows: TxIP-Address[192.168.178.255]-Port[4321] 
 +Windows: RxIP(local)-Address[192.168.178.33]-Port[4321] 
 +CBOnTxData[Windows]<0> 
 +CBOnRxData[Windows]<0> 
 +CBOnTxData[Windows]<1> 
 +CBOnRxData[Windows]<1> 
 +CBOnTxData[Windows]<2> 
 +CBOnRxData[Windows]<2> 
 +*** UdpClientServer: end
 </code> </code>
  
 +==== Dual PC: ====
 +=== WindowPC[192.168.178.33] ===
 <code python> <code python>
 +>python CheckUdpClientServer.py Windows 5001 192.168.178.48 5000
 +*** CheckUdpClientServer: begin
 +Windows: TxIP-Address[192.168.178.48]-Port[5000]
 +Windows: RxIP(local)-Address[192.168.178.33]-Port[5001]
 +CBOnRxData[Windows]<0[Ubuntu]>
 +CBOnTxData[Windows]<0[Windows]>
 +CBOnRxData[Windows]<1[Ubuntu]>
 +CBOnTxData[Windows]<1[Windows]>
 +CBOnRxData[Windows]<2[Ubuntu]>
 +CBOnTxData[Windows]<2[Windows]>
 +CBOnRxData[Windows]<3[Ubuntu]>
 +CBOnTxData[Windows]<3[Windows]>
 +CBOnRxData[Windows]<4[Ubuntu]>
 +CBOnTxData[Windows]<4[Windows]>
 +CBOnRxData[Windows]<5[Ubuntu]>
 +CBOnTxData[Windows]<5[Windows]>
 +*** CheckUdpClientServer: end
 </code> </code>
  
 +=== UbuntuPC[192.168.178.48] ===
 <code python> <code python>
 +>python CheckUdpClientServer.py Ubuntu  5000 192.168.178.33 5001
 +*** CheckUdpClientServer: begin
 +Ubuntu: TxIP-Address[192.168.178.33]-Port[5001]
 +Ubuntu: RxIP(local)-Address[192.168.178.48]-Port[5000]
 +CBOnTxData[Ubuntu]<0[Ubuntu]>
 +CBOnTxData[Ubuntu]<1[Ubuntu]>
 +CBOnRxData[Ubuntu]<0[Windows]>
 +CBOnTxData[Ubuntu]<2[Ubuntu]>
 +CBOnRxData[Ubuntu]<1[Windows]>
 +CBOnRxData[Ubuntu]<2[Windows]>
 +CBOnTxData[Ubuntu]<3[Ubuntu]>
 +CBOnRxData[Ubuntu]<3[Windows]>
 +CBOnTxData[Ubuntu]<4[Ubuntu]>
 +CBOnRxData[Ubuntu]<4[Windows]>
 +CBOnTxData[Ubuntu]<5[Ubuntu]>
 +*** CheckUdpClientServer: end
 </code> </code>
  
module/python/udpclientserver/udpclientserverbidirectional.1639255401.txt.gz · Last modified: 2021/12/11 22:43 (external edit)