Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hi there,
I am a newbie in C++, I'm asked to run TCP which uses UDP packets while sending a message. Could anyone help me with writing the code in c++?
Posted
Comments
CHill60 4-Oct-15 16:37pm    
This is a forum for quick answers to questions. We can help you solve specific problems, but we will not write the code for you.
Have you tried researching the topic using a Google search[^] or the Codeproject articles[^] on the subject?
payam_p 4-Oct-15 17:58pm    
Okay.. thanks man
nv3 4-Oct-15 17:51pm    
This is not a 5-minute job, but more like a real project. I would start by reading the RFPs on TCP and google for other implementations of TCP. After understanding the various concepts and problems, I would start writing a first version.

As Chill60 pointed out, this is a quick answer forum. Talk to your tutor or teacher, he is the one who can most likely help you.
payam_p 4-Oct-15 17:58pm    
Thanks NV3.. unfortunately my tutor is out of the country and I don't have time.
nv3 4-Oct-15 18:37pm    
Just for clarification: Did your tutor ask you to implement the TCP protocol based on an existing UDP implementation, or did he want you send some packets via TCP (which as he commented uses UDP internally to do the work)? The latter is a lot easier. Implementing the TCP protocol is no beginners task and I can't imagine you tutor wanting you to do that while is out of the country for a couple of days.

That is a big task for a C-newbie. At first you must understand the networking architecture and second the coding. I would advise you, to study this article which will give you some insight to that topic.

But you better ask for some assistance of an experienced programmer, or you will spend a lot of time. It is definitly: NO JOB FOR A NEWBIE. ;-)
 
Share this answer
 
Comments
payam_p 7-Oct-15 16:14pm    
Thanks Karstenk! The link is very good to read.
Patrice T 7-Oct-15 18:09pm    
+5
 
Share this answer
 
Comments
[no name] 7-Oct-15 11:24am    
I like this push, my 5.
Richard MacCutchan 7-Oct-15 11:59am    
I think the 5 is due to the person who wrote the article.
[no name] 7-Oct-15 12:20pm    
No, for the Person who mentioned the link.
payam_p 7-Oct-15 16:13pm    
Thanks for the link.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900