473,394 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Please Can Any One Help!!!!!!!!

What you have to implement
You have a message that can be sent on a port. Before sending the message you have to encode the
message to ASCII or Unicode as hexadecimal. Sending the message over the network as a continuous
string stream is quite simple. The recipient simply has to decode the hexadecimal string and will know
what the message is.
The problem must now be expanded as follows. Split the message in two and send it over the network to
another computer, where it receives the message over a range (predefined by yourself) of ports randomly.
You now have two parts of the message that need to be reconstructed to create the original message.
For instance, if your message is: “Adam ate the apple.” It should first be converted to a hexadecimal string
in either ASCII or Unicode. (% indicated the beginning of a new character.) The following is the new
hexadecimal string that has been converted to ASCII:
“%41%64%61%6D%20%61%74%65%20%74%68%65%20%61%70%70% 6C%65%2E%20”
Splitting the message in two renders the following two strings:
“%41%64%61%6D%20%61%74%65%20%74”
“%68%65%20%61%70%70%6C%65%2E%20”
Choosing a port range of 1000 – 1010, the message is split in two, randomly selecting two means that the
first string will be sent to port 1002 and the second to port 1007. The receiving computer gets two messages
on two different ports, not knowing the order. Decoding the message on the other side will render the
following two strings:
“Adam ate t”
“he apple.”
They will have to be reconstructed either as:
“Adam ate the apple.” or “he apple.Adam ate t”.
You have to ensure that the message is reconstructed as closely to the original message by using any
programmatic means possible. The difficulty of reconstruction increases as the message is split into
increasing number of chunks. 3 chunks over 3 ports will render 3 Permutation 3, resulting in 6 possible
permutations. nPn is the formula for the total number of permutations for n number of chunks. Make sure
that you are aware of the granularity of your message as it will have an influence on reconstruction. The
message “abc” might seem logical but you will not know what the original message is if it was divided into
3 chunks. Taking the same message and dividing it into two chunks will render another problem.
Bonus marks will be awarded for where ports are blocked by the receiving computer, these message chunks
will have to be resent to ensure that all the chunks have been received. You may make use of either UDP or
TCP transfer protocols. You may also make use of any Programming language that suits your needs. Code
reuse is one of the OO characteristics that you should make use of in this project.
Feb 28 '07 #1
5 1091
Ganon11
3,652 Expert 2GB
What have you done so far? What language will you be using?
Feb 28 '07 #2
What have you done so far? What language will you be using?
Thanx so much for your reply, but i dont have a clue on how to implement the project, any language is ok to solve the the problem.
Mar 1 '07 #3
acoder
16,027 Expert Mod 8TB
Thanx so much for your reply, but i dont have a clue on how to implement the project, any language is ok to solve the the problem.
The reason why the language is important is that it can be moved to the appropriate forum where you can get more help, but see next post...
Mar 1 '07 #4
acoder
16,027 Expert Mod 8TB
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread.

MODERATOR
Mar 1 '07 #5
Thanx again for ur mail, be the problem is that i would want u to please explain what am suppose to do in the project and i dont understand programimming and sending them to ports. thanx



The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread.

MODERATOR
Mar 7 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: m3ckon | last post by:
Hi there, had to rush some sql and am now going back to it due to a slow db performance. I have a db for sales leads and have created 3 views based on the data I need to produce. However one...
6
by: James Walker | last post by:
Can some one help I get an error of 'checkIndate' is null or not an object can someone please help. I can't work out why Thanks in advance James <form> <td height="24" colspan="7"...
0
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web...
7
by: Alan Bashy | last post by:
Please, guys, In need help with this. It is due in the next week. Please, help me to implement the functions in this programm especially the first three constructor. I need them guys. Please, help...
1
by: Steve | last post by:
Hi, I've asked this question a couple of times before on this forum but no one seems to be nice enough to point me to the right direction or help me out with any information, if possible. Please...
22
by: KitKat | last post by:
I need to get this to go to each folders: Cam 1, Cam 2, Cam 4, Cam 6, Cam 7, and Cam 8. Well it does that but it also needs to change the file name to the same folder where the file is being...
17
by: Saps | last post by:
Hi all. Can anyone help me here. I have loads of .sql files and i need a way to call these from my asp page so the user can run them from the browser. Meaning i have a page with a list of all...
8
by: CM | last post by:
Hi, Could anyone please help me? I am completing my Master's Degree and need to reproduce a Webpage in Word. Aspects of the page are lost and some of the text goes. I would really appreciate it....
1
SKJoy2001
by: SKJoy2001 | last post by:
PLEASE HELP ME!!! P E R L!!! I have a CGI (PERL) file namely 'test.cgi' and it has the correct permission (755) on the FTP server and it is within the CGI path. I have the following code in it:...
6
by: jenipriya | last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors... The table structures i hav Employee (EmpID,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.