private bool sendMsg( Message msg ) { List<Vertex> psblNxtStp = this.config.RouteFunc( this.Handler, msg.Destination ); foreach ( Vertex vrt in psblNxtStp ) { if ( vrt.Recieve( msg ) ) return true; } return false; }
public bool Recieve( Message msg ) { if ( this.IsFull() ) return false; memory.Enqueue( msg.Handler ); msg.CurrentVrt = this.Handler; return true; }