Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > CF C# .NET Programming Question
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 13th March 18:42
jasmina
External User
 
Posts: 1
Default CF C# .NET Programming Question



I would like to write a code in C# that a choosen file on one mobile device
(for example PPC) will send to another device (another PPC) using 802.11,
i.e. the user selects a file, clicks on "send" and the file is sent to the
other device. Optionally the receiver will receive a notification that a file
is being sent to him. Can you provide any guidlines for this? Any example?


Thank you so much!
  Reply With Quote


 


2 14th March 12:33
paul g. tobey [emvp]
External User
 
Posts: 1
Default CF C# .NET Programming Question



You'll have to write a program on *both* ends and those programs will have
to be responsible for sending/receiving the file contents, presumably via a
socket. There is no service automatically running on a PPC device which you
can simply 'hook-up' to and send a file. I'd say that you want to open a
TCP socket on one or both ends, depending on whether you want any PPC in
your system to be a potential receiver or not. When a connection occurs,
have the sender authenticate itself (you've just opened a *huge*, no *HUGE*
security hole), send some information about the file (name, size), and then
the binary bytes from the file. The server application would open the
target file and write the received bytes to it. The client application
would open the file, read it, a block at a time (1024 bytes, maybe, per
send), and drop the binary data into the socket.

Paul T.
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666