• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with modifying code.

 
john mater
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Modify the code to add a second Physical Layer object to represent a return path for messages. Write the code for a new class called Echo which loops indefinitely, receiving and then transmitting messages between the two Physical Layers.




















I know this is a lot of code. am not looking for the answer just want a push in the right direction with this, how do I go about the task?

Thanks
 
Henry Wong
author
Marshal
Pie
Posts: 21227
81
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
john mater wrote:Modify the code to add a second Physical Layer object to represent a return path for messages. Write the code for a new class called Echo which loops indefinitely, receiving and then transmitting messages between the two Physical Layers.


Sometimes in working with a project (or domain), you get into project specific (or domain specific) terminology. It is generally a good idea to not allow this terminology to leak out -- because quite frankly, most people not working on the project (or in your domain) will have no idea what you are actually talking about.

I read the topic three times, and don't have any idea what you are asking. Tossing in a wad of code doesn't help either.

Henry
 
john mater
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Henry thanks,

I'm really confused but i'll try and explain it as I see it without any terminology.

PhysicalLayer class has a delayedQueue that sends using a thread the elements(DPDU) of this queue to the consumer via the class datalink layer , What I need to do is to create a class echo that loops the elements of the queue so that the elements of the queue are sent to a new class PhysicalLayer2

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic