python - How should method names be named in a send/receive environment? -


This question appears in a python context but spreads in other languages. What I'm doing is generating a simulation for the distribution system in a network and I have the ability to send other adjacent nodes in the message network from the nodes. For this I have written a node class.

I understand how to overcome the problem of emulating the network, but my problem is this: If I want to send a node message to a node, then how best to readability Do I name the methods? I currently have something like this:

  class node: def send_message (self, other node, message): othernode.receive_message (self, message) def recem_message (self, other node, message ): Something with the message #  

but something about the word "receive_message" seems wrong, is there any standard for this situation?


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -