So we were given an assignment for software today. It's going to be used to teach us promala and spin and good multi-threaded software practices. The overall goal is to make a simple GUI based multi-user instant messager system in C++. I haven't used allot of concurrency before so I thought I would investigate by trying some stuff out in python. Also I haven't used sockets directly before - so wanted to have a look at them. Firstly taking a read of the Socket Programming HOWTO guide - there is plenty of information there. And also handy is the Socket documentation for python. For now I just want a echoing server that can service multiple clients at once. So the server will be the difficult part - might as well dive in there! Firstly creating a socket and echoing any data it recieves is pretty easy with this loop: while True: data = self.conn.recv(1024) i...
Ramblings about developing software. May contain traces of Java, Python, Scala, Typescript.