[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: P2P IM (Attn : Rahul and Ajay Dwivedi)



On Sat, Feb 10, 2001 at 08:20:04AM -0800, shantanu_gwl@xxxxxxxxxxxx merrily said:
> The "worthwhile" post seems to work. Hope it results in more ventures like this, even better ones !!
> 
> This project is a part of my final-year BCA. But it's in the starting phase. However, I've already designed the protocol by hand. DFD's too are ready. Beginning to implementing it now. Will soon communicate with something solid (with code) if you wish. Can you suggest me some way to work around the setups with proxy-servers and/or firewalls ?

you can get through 90% of the firewalls if you can encapsulate
outgoing data in http. Ofcourse socks server support is much more
advantagous for the programmers.  And, yes, if your protocol is based
on the push design instead of the pull design, you can give up getting
through firewalls. You can't have a server-initiated connection
through firewalls.(unless you plan to write modules for every popular
firewall to allow the server to do so).

> 
> Currently I'm writing the server. Only wondering if my decision to fork off 3 threads (one each for input, output and the connection-manager) per connection is superior to performing round-robin access over the array of sockets with just three threads in total. But chose the former because I didn't want my server to hang due to blocking read() or write() calls.

What's wrong with select() and poll() ? I haven't used them myself,
but I have read they are good for this very reason.
> 
> Can you get some references as to where from can I download the JIT compilers (of course free of cost) for Linux and Windoze. I'm using JDK 1.3, and residing at Gwalior now.

Try the ShuJIT compiler(I think shudo.net). I have used it and it was
quite adequate. However the HotSpot JDK1.3 compilers from Sun are
superior to any JITs, according to comparisons at shudo.net itself.

Regards,
 Sandip

-- 
-------------------------------------
Sandip Bhattacharya 
sandipb @ bigfoot.com
http://www.sandipb.net
-------------------------------------