TomeNET MIPS binary..

Discussion about topics that don't fit elsewhere.
Post Reply
ezdagor
Posts: 4
Joined: Tue Jul 06, 2010 8:47 pm

TomeNET MIPS binary..

Post by ezdagor »

I've noticed there is a TOME binary for the MIPS architecture... anyone know if there is one for TomeNET?

Much appreciated,
ezdagor
relsiet
Developer
Posts: 8
Joined: Mon Dec 14, 2009 9:28 am

Re: TomeNET MIPS binary..

Post by relsiet »

Nope. But you should have no trouble building it from source. Just disable the irrelevant stuff (like: probably X11) in the make file.

I was running tomenet on one of these for a long time. On the other hand, if you're looking for a windows CE binary, that might be more difficult to get up and running.
ezdagor
Posts: 4
Joined: Tue Jul 06, 2010 8:47 pm

Re: TomeNET MIPS binary..

Post by ezdagor »

Well.. I compiled the server, and upon initialization of tomenet.server, I get the following..
[snip]
./tomenet.server: Create TCP socket on port 18348...
./tomenet.server: Set Non-Blocking...
ioctl FIONBIO failed in socklib.c line 945: Invalid argument
./tomenet.server: Can't make contact socket non-blocking
./tomenet.server: Couldn't set SO_LINGER on the socket
./tomenet.server: Couldn't set SO_LINGER on the console socket
ioctl FIONBIO failed in socklib.c line 945: Invalid argument
./tomenet.server: Can't make GM socket non-blocking
[snip]

So... I am unable to connect to the local server.. Anyone know what's going on?

TIA,
ezdagor
mikaelh
Developer
Posts: 217
Joined: Sun Dec 13, 2009 3:18 pm

Re: TomeNET MIPS binary..

Post by mikaelh »

Well, if you're ready to poke around in the source code, there are a couple of things you could try. Setting the sockets non-blocking is very important, setting SO_LINGER not so much.

I don't know why the FIONBIO iotctl is failing on your system, but you could try using one of the alternative methods for making a socket non-blocking.

Line 894 in src/common/net-unix.c says:

Code: Select all

#ifndef USE_FCNTL_O_NONBLOCK
What you need to do is put this before that line:

Code: Select all

#define USE_FCNTL_O_NONBLOCK
This will enable the code that uses the O_NONBLOCK flag together with the fcntl function. This is the standardized POSIX way of making sockets non-blocking so hopefully it should work.

Even if the above fixes the sockets, I can't guarantee that the server is going to work. I have never tried running the server on a MIPS system.
Post Reply