Thanks everyone and especially to Mr. Quinn and Mike Kluev for their
advise - it helped me solve the problem.
The application now works identically on both Classic and Mac OS X.
The only thing that surprises me a bit is that on Classic I get
'network lost' events repeatedly, whereas on Mac OS X it happens only
once. The workaround for this is trivial to implement, but I am still
curious if it's the way it's meant to be or am I doing something
wrong... However, it's not that important.