CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: Actual TCP code

  1. #1
    Join Date
    Feb 2017
    Posts
    2

    Actual TCP code

    Is there anyway to find the actual TCP source code? I know we can find the different operations TCP performs but what is the actual code?

    Thanks,

    - KRD

  2. #2
    2kaud's Avatar
    2kaud is offline Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,822

    Re: Actual TCP code

    Is there anyway to find the actual TCP source code?
    For what? TCP is a protocol and vendors implement the protocol themselves according to the relevent RFCs. Microsoft has theirs, Apple has theirs, Google has theirs etc etc. There are various open source implementations available. The Linux version is at http://lxr.linux.no/#linux+v2.6.37/net/ipv4/tcp_ipv4.c
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Actual TCP code

    Is there anyway to find the actual TCP source code? I know we can find the different operations TCP performs but what is the actual code?
    Rather than ask about "the actual TCP source code" you should have better described your actual problem!
    Victor Nijegorodov

  4. #4
    Join Date
    Feb 2017
    Posts
    2

    Re: Actual TCP code

    Quote Originally Posted by VictorN View Post
    Rather than ask about "the actual TCP source code" you should have better described your actual problem!

    My problem is this, I'm a studying Network Specialist at an IT college and I've been wondering for awhile, how TCP is actually implemented. We all hear about TCP, IP, DHCP, but I want to know the actual code behind them. Thankfully, I know that TCP is actually observed in RFC's which are then translated into some sort of usable code per OS.

  5. #5
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Actual TCP code

    Well, presuming there is a TCP/IP Protocol Architecture ( see https://technet.microsoft.com/en-us/.../cc958821.aspx ) what layer do you mean to have source code for?
    Victor Nijegorodov

  6. #6
    Join Date
    Sep 2017
    Posts
    2

    Re: Actual TCP code

    Hello guys! So where is solution? I need help with this issue too, can't find anything at the links you have posed. Best
    Last edited by 2kaud; December 6th, 2017 at 03:31 AM. Reason: Removed advertisment link

  7. #7
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Actual TCP code

    Quote Originally Posted by crystalkranz View Post
    Hello guys! So where is solution? I need help with this issue too, can't find anything at the links you have posed. Best
    "solution" for what?
    Please, define your "this issue"
    Last edited by 2kaud; December 6th, 2017 at 03:32 AM.
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured