sending files thru the Lan

Previous topic - Next topic

mentalthink

Hi I don´t know if I´m confused or I dream it  :S, well whit netsendmsg it´s posible send a file like a .txt, I think I read somthing about this in an update at log, but now I don´t find (ctrl+F)   :-[

I tri something, but I dont know is it´s correct, becuse from mobile device to PC don´t works, really it´s easy, it´s open the txt and send every info thru the netsendmsg, but in my case from the celular to Pc don´t worked  :'(

And if I want send anohter tipe of file, .ZIP or an image... sometime ago MASTERS OF UNIVERSE  ;) tell me, to convert the file in binary, but , I have a trouble, I don´t be a professional coder, and I don´t have any idea about too much things,  :'(

Kinds Regards,
Iván J.

jboadas

Well if you need to tranfer files over a Lan you first have to choose a protocol, then you need a computer acting like a server (to receive or share your files) and a a computer acting like a client (to send and download your files from the server), If your lan is a windows only, you could use netbios (the protocol that use windows explorer to show all machines in your lan) if your lan is a Mac, Linux or crossplatform based lan you should use FTP that is a protocol from the TCP/IP family, I dont know if GLBasic can send and receive files out-of-the-box but I was reading the documentation and GLBasic have a basic implementation of berkeley sockets and with this you can do every network task you want but you have to write your own library based on sockets to manage the file transfer.

Im also interested on the network implementation that GLBasic have.

Maybe the GLBasic gurus could point us on the right direction with this.

Best regards

mentalthink

HI Jboadas, thanks for your help, I have to see the Sockets commands, but I don´t try never, I have to take a look, becuase it´s something I don´t use never, from I buy the GlBasic.

Thanks boadas...
Kinds Regards,
Iván J.

Kitty Hello

You want to send a file from the mobile device to your PC?
You must have an App running on the PC that "gets" the file. Otherwise everyone could copy you a file somewhere.

If you want that program to be a GLBasic progamm, it's pretty easy. Take a look at this:
http://www.glbasic.com/forum/index.php?topic=3753.msg27399#msg27399
untested, but it should work well.

mentalthink

Thanks Gernnot I take a look...