24 Jun 2002
(updated 24 Jun 2002 at 16:22 UTC) »
So I'm trying really hard to use iterators when I'm using STL containers. That way if I need to switch to a hash for speed or something it should be alot easier but I'm getting some wierd behavior out of it. There's an object Mud that iterates through all the current connections and polls them to see if there yaking at it. If they are it's appended to there buffer and then the interpret command is called on that object so it can handle the command all by it's lonesome. Well, I put in a really simple command system for now, just split off the first word and run it through an if/else structure. The only command for now is chat(just for testing, they'll be a Command class later) well, I try calling sendAllPlayers(Player *personWhoIsTryingToChat, std::string whatTheyreTryingToSay); which iterates through all the player objects in the list inside the Mud object and appends the text to the connections buffer so next time the Mud decides it can send them data it'll get sent out. I keep getting a seg fault when I call playerList->begin(). playerList is well within the scope of sendAllPlayers() and I've used assert to check that the list does exist and is valid. I'm going to attempt to make a smaller example to illustrate exactly what it's doing. Hopefully the seg fault persists in the example.
Java Terminal Emulator
I'm doing an internship at an insurance company this summer that uses an IBM mainframe and TN3270 emulators on the pc's to connect to it. Well, there's a movement away from dialing in from home into the mainframe modem bank and onto VPN. The problem is that they haven't given the beta testers liscenses for the current terminal emulators we use here. I found one that Sun came out with written very well in java but it's only free until September 2002 for me now. I'm attempting to write my own Java Bean that'll the same emulation that Sun's bean does. I'll try to match their API pretty closly. I've been working on this in my spare time at work but I've only made progress on the application it will eventually plug into. Anyone have any technical documents on TN3270 emulation? I've worked with telnet a little bit but this is quite a different system.