473,503 Members | 12,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

7 New Member
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 1092
Ganon11
3,652 Recognized Expert Specialist
What have you done so far? What language will you be using?
Feb 28 '07 #2
luchyloo
7 New Member
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 Recognized Expert Moderator MVP
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 Recognized Expert Moderator MVP
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
luchyloo
7 New Member
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
1913
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
1761
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
1679
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
2363
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
1372
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
2145
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
2264
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
3140
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
1520
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
3282
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
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7296
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
7364
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
5604
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.