views:

105

answers:

0

I want to desing an application to send/receive a file with xmodem (written in java, I found the source code at http://stackoverflow.com/questions/606074/implementation-of-x-modem-protocol-in-java). I've decided to modify this code. First I should dial a number on the client-side and listen on the server-side. My problem is that I don't know wheter I should use events or lock-steep. I've written some code with events and I achieved the goal of connecting, but after that I don't know how to use the Jmodem code after the connection is stablished because of the events... I suppose that the DataAvailable event will trigger if I get the jmodem to work...

Should I forget the event-driven connection and use lock-step? or is there any way of using this implementation of xmodem with events?

Thanks a lot