Announcement

Collapse
No announcement yet.

TCP OPEN SERVER questions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TCP OPEN SERVER questions

    Let's say I want a telnet server listening to port 9000. Using PB's TCP statements, would only one user be able to use the server at a time, or is it possible to manage multiple connections without resorting to a super-server (like (x)inetd)?

    Also, it possible to control which interface(s) the server will bind to?
    Erich Schulman (KT4VOL/KTN4CA)
    Go Big Orange

  • #2
    Yes, you can handle multiple connections at a time but you'll probably need to use threads to do so. There are multiple examples of doing this available including a simple web server. Check the source code forum.

    As to binding to a particular interface, I believe I wrote code for one of my brother's projects that would give a list of all the available IP addresses on the machine using the TCP HOST ADDR(index) command. The user could then pick which one to listen on. I needed this because of running on a machine with two network cards. One connected to the LAN the other connected to the internet.
    Jeff Blakeney

    Comment

    Working...
    X