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

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -