473,657 Members | 2,513 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%2 0%61%74%65%20%7 4%68%65%20%61%7 0%70%6C%65%2E%2 0”
Splitting the message in two renders the following two strings:
“%41%64%61%6D%2 0%61%74%65%20%7 4”
“%68%65%20%61%7 0%70%6C%65%2E%2 0”
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 1101
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
1924
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 o the views, which has subqueries to the other views is VERY slow and it needs to be speeded up, but am unsure how, can anyone help... below is the sql?
6
1785
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" valign="top"><form name="booknow"><select
0
1694
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 browser that Hotmail does not support. If you continue to use your current browser software we cannot guarantee that Hotmail will work correctly for you". Please help, this is very annoying. I have been searching for help on
7
2383
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 me. This was inspired by Exercise 7 and Programming Problem 8 in Chapter 3 of our text. I have done Exercise 7 for you: Below you will find the ADT specification for a string of characters. It represents slightly more that a minimal string...
1
1378
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 help me out with this because this is a very serious issue for me and I need to learn more about this. And here it is again: I've been running postgres on my server for over a year now and the tables have become huge. I have 3 tables that have...
22
2177
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 grabbed, BUT it doesn't. I have tried and tried.....please help example: C:\Projects\Darryl\Queue Review Files\2-24\Cam 7\Cam7-20060224170000-01.jpg Cam7 but all I keep getting is Cam1, as the beginning of the jpg name,...:( HELP!
17
2280
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 scripts. each when clicked i am able to run the script. so HOW and what do i do to call and run the .sql Thanks
8
3154
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. The link to the document is http://www.surveymonkey.com/s.asp?u=689952259313 I have spent 15 hours trying to sort this but to no avail.
1
1528
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: =================================== 1: #!/usr/bin/perl 2: 3: $cr = '???';
6
3310
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, EmpName,DeptID,DateOfJoin, Sal, Addr) Finance (EmpID, Sal) Club (Clubname, EmpID, Fee, DateOfJoin) Leave (EmpID, Date) Department (DeptID, DeptName, NoOfEmployees)...
0
8413
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7352
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.