getsockname

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?RGF2aWQ=?=

    getsockname


    Is there a C# equivalent to getsockname?

    Or, what is the C# way of getting the port a socket is bound to if you allow
    windows to pick the port for you?

    --
    Best Regards

    "Failure is the opportunity to begin again more intelligently" – Henry Ford
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: getsockname

    On Apr 2, 4:33 pm, David <Da...@discussi ons.microsoft.c omwrote:
    Is there a C# equivalent to getsockname?
    >
    Or, what is the C# way of getting the port a socket is bound to if you allow
    windows to pick the port for you?
    >
    --
    Best Regards
    >
    "Failure is the opportunity to begin again more intelligently" - Henry Ford
    ((IpEndPoint)Tc pClient.Client. LocalEndPoint). Port

    Comment

    • =?Utf-8?B?RGF2aWQ=?=

      #3
      Re: getsockname


      Thanks Ignacio


      --
      Best Regards

      "Failure is the opportunity to begin again more intelligently" – Henry Ford


      "Ignacio Machin ( .NET/ C# MVP )" wrote:
      On Apr 2, 4:33 pm, David <Da...@discussi ons.microsoft.c omwrote:
      Is there a C# equivalent to getsockname?

      Or, what is the C# way of getting the port a socket is bound to if you allow
      windows to pick the port for you?

      --
      Best Regards

      "Failure is the opportunity to begin again more intelligently" - Henry Ford
      >
      ((IpEndPoint)Tc pClient.Client. LocalEndPoint). Port
      >

      Comment

      Working...