GithubHelp home page GithubHelp logo

Support for domains about supersimpletcp HOT 4 CLOSED

OpNop avatar OpNop commented on May 23, 2024
Support for domains

from supersimpletcp.

Comments (4)

jchristn avatar jchristn commented on May 23, 2024 1

Integrated! Thanks again for the suggestion, @OpNop !

NuGet: https://www.nuget.org/packages/SuperSimpleTcp/2.0.2
Commit: 54826ef

from supersimpletcp.

jchristn avatar jchristn commented on May 23, 2024

Hi @OpNop - is the use case on this to automatically determine the server address on which to listen?

from supersimpletcp.

OpNop avatar OpNop commented on May 23, 2024

no, this is on the client side, im my example, the app has a default server address of chat.domain.com but accepts a user provided server from the command line. But I could see it just being useful to use a domain in the client and is also supported by the normal TcpClient supports hostname normally
public TcpClient (string hostname, int port);
https://docs.microsoft.com/en-us/dotnet/api/system.net.sockets.tcpclient.-ctor?view=netframework-4.8#System_Net_Sockets_TcpClient__ctor_System_String_System_Int32_

but in your code you are forcing an IP address at https://github.com/jchristn/SimpleTcp/blob/master/SimpleTcp/TcpClient.cs#L160

Hope that makes sense :)

from supersimpletcp.

jchristn avatar jchristn commented on May 23, 2024

Hi @OpNop thanks for the clarification, this is an excellent suggestion and I'll move it into the library right now!

from supersimpletcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.