Đã Hủy

Java Messenger File Transfer

We've made an instant messenger as our school project.

It has methods like getMSg, sendMSG etc. for sending messages from one client to another client.

But we also want to add file-transfer functionality to it.

So here is what I need:

1. Incoming File Transfer Handler: Recieves an Output Stream connected to another client and open file from local hard disk and send file using this output stream.

2. Outgoing File Transfer Handler: Recieves an Input Stream connected to another client and recieves file using this input stream, save it in local hard disk.

3. Supply 2 code fragments to show how to call above two handlers. These code-fragments will be integrated into existing getMSG and sendMSG methods.

To describe code-fragments, let me write pseudocode here:

if incomingMessageStartsWith("/send")


call incoming fileHandler(filename, filesize)


system.out.println"file transfer done");


Kỹ năng: Java

Xem thêm: java messenger file transfer, java messenger call, transfer methods, project handler, java messenger write, file transfer project java, we stream, pseudocode, open school, java messenger, java file, file transfer, disk, connected, code java, java using, open input file, instant messenger java, code disk, project file, call transfer project, fragments, outgoing call, messenger code project, file system java

Về Bên Thuê:
( 84 nhận xét ) Plano, Canada

Mã Dự Án: #34369