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

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
    5,704

    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. 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/

    C++17 Compiler: Microsoft VS2017 (15.3.4)

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    18,955

    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
    Wallisellen (ZH), Switzerland
    Posts
    18,955

    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

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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)