In this post I wish to discuss a common coding error that can result in a module running out of or at least seriously depleting the available number of stcp device clones for use in creating TCP sockets.
Don’t worry, despite the title I haven’t reverted to math nerd mode. The topic is not number theory but socket programming and a coding mistake that I have seen way too often. The code fragment in figure 1 demonstrates the mistake. There is a main while loop that loops forever calling select and waiting for [...]
Did you miss the webinar? Well, we have the video right here for you! Watch an overview of the steps that you can follow to port open-source code to the Stratus OpenVOS operating system. I review the OpenVOS POSIX environment, explain how to find and download open-source packages, discusses the process for building and installing [...]
Under STCP when you have multiple processes listening on the same port number only the first process that bound to the port number is notified when a connection is requested. One common way to slip around this restriction is to close the listening socket when a connection is completed and then create a new socket [...]
Ever wonder how STCP knows what its name is? In the >system>stcp directory is a file called host. The file contains one line which is the name of the module. You can edit or display the file directly but I recommend that you use the hostname command. Without arguments it will display the contents of [...]