Since Some people asked, and well I decided to say screw it and look at the socket code and figure it out lol, which is the only thing I borrowed from rom but have recently overhauled myself, so I figured it out.
In the file which contains your main, you do this: You should have a line like this: int port, control; add port2, control2 to this. now inside your int main function, you need to setup the port. Either you can read in from a file, just hard code it into the mud or take it in as a argument. Just setup port2 to be the new port which the mud will also listen to. Then look for a line that says: control = init_socket( port ); and add: control2 = init_socket( port2 ); then this is where it gets tricky. You need to modify the function which contains your main loop. In Stock rom it is game_loop_unix, for my mud its different since I handle things differently but, I opened up stock rom to try to figure this out. You need to change the line game_loop_unix( control ); to game_loop_unix( control, control2 ); remember to change your local function declarations also. Now in game_loop_unix, add control2 next to control in your list of arguments for the function. /* * New Connection? */ if ( FD_ISSET( control, &in_set ) ) init_descriptor( control ); just add if ( FD_ISSET( control2, &in_set ) ) init_descriptor( control2 ); now I think this should work, I don't see why not. But it should work, I haven't tested it yet, but it seems simple enough. I don't see anywhere else that would need modifications for this. with mention if you wanted to do something where its just outputting, like running a name generator or some sort on seperate port, or handle web traffic, you would change the init_descriptor call to whatever call for whatever function you wanted to deal with here. I would imagine for the most part anyways. Anyways have fun. Steven Radziul __________________________________________________________________ Steven ICQ#: 2711015 Current ICQ status: + More ways to contact me __________________________________________________________________

