At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers for both connection-oriented and connectionless protocols.Sockets may communicate within a process, between processes on the same machine, or between processes on different continents.The socket library provides specific classes for handling the common transports as well as a generic interface for handling the rest.
These values are constants such as AFINET, PFINET, PFUNIX, PFX25, and so on. A port may be a Fixnum port number, a string containing a port number, or the name of a service. A socket object is then used to call other functions to setup a socket server. This method waits until a client connects to the port you specified, and then returns a connection object that represents the connection to that client. This is very simple to create a socket client using Pythons socket module function. Once you have a socket open, you can read from it like any IO object. It is recommended to go through the following link to find more detail. Auto complete on a lot of code, auto indents, auto color insertion. I am done discussing OSs GUIs unless you have a specific question you desire to ask me, at which point I will be happy to answer your questions. Bruce. Programmers: Conio.H'S Kbhit Equivalent Simulator Thats ItSo unless Dave is interested in a GUI for his simulator thats it. It was actually Dave that I had some of these discussions with. Anyhow Dave, sorry for taking your thread off track, and Heater, just ask anytime. Ive been programming for 40 years, but Ive never done much GUI stuff. Im more comfortable with the programming style used in Qt versus the method used in Microsofts MFC. The portability of Qt is perfect for developing an app that will work on multiple platforms. I work mostly on Windows machines, but I have used UnixLinux at work for the past 22 years. I have to admit that I very rarely use a GUI with UnixLinux systems. I almost always use a command line interface with those platforms. Dave. Im kind of a command line guy as well, what with having a 100 Linux at work and home. But we do need GUIs for those schematics editors, PCB layout progs etc etc. I have even softened up and become addicted to syntax highlighting editors. One of my favourite programs is LTSpice from Linear Technology, draw your schematic, simulate it, look at the signals or spectra produced. Its a Windows program but it works perfectly under Linux using Wine. Its as if over the years and many versions Linear has always gone out their way to ensure LTSpice never uses any Windows features that are broken in Wine and will therefore run on Linux and BSD etc. So someone like idbruce who is happy with Windows could still widen his audience and produce useful open source apps just by ensuring that his Windows code always works under Wine. This is not my preferred solution as Im sure it is more limiting than using Qt and besides any Linux users with a mind to help in development will be put of by having to look at Windows code. Programmers: Conio.H'S Kbhit Equivalent Free For MyHowever LTSpice is free for my amateur experiments with analog circuits. I can only dream of moving up to something more professional. I have one for Catalina and it has sections for xmodem transfers, downloads, multiple compile options, color highlighting and a terminal. I dont think I could code without it. But it is.net and it is Windows. So if I were to recode this it would make a lot of sense to do it in a cross platform way. One advantage would be the ability to share code - eg the terminal part would be very useful for others and that sort of code tends to be self contained. As things evolve, one could envisage an open source GUI with Catalina, BCX basic, Big Spin all on separate tabs. I really need to get the BCX Basic to C project finished so I can port over some of the vb.net code. Addit - downloading Qt now.
0 Comments
Leave a Reply. |