Java application using sockets!
I am developing an application that uses the socket to transfer files from client to server.
In the server there is a module(say ChatServerModule) that is responsible to read the data from the socket and write to the file.
In the client there is a module (module Login) that validates the user,Graphmodule which is a simple GUI that shows who all are using the system currently.
There is mechanism of clicking on the name of the present user in Graphmodule which in turn will call another module say FileSendModule which is responsible to send the file to the user whose name was clicked.
Everything is ok with files size<=64KB but when larger files are tried to send then the application hangs out.
To be noted: when the chatServerModule is run and the FileSendModule is directly run(providing static name or ip of the online user) then it works for files even larger too.
I am very much confused what is happening with?
Is this the problem with the calling of the FileSendModule?Or is this the problem with Threading or what.Can anyone provide me some suggestions?Please help me.