Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Italian Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

primo approccio con la dll network

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-15-2010, 04:27 PM
Senior Member
 
Join Date: May 2008
Posts: 163
Default primo approccio con la dll network

Salve ragazzi, devo essere sincero ma mi stò incartando di brutto con la dll network.
Ecco quello che dovrei fare (mi serve per il momento solo come prova):
Ho un pc con indirizzo "xxx.xxx.xxx.2" che sarà un server e un device con indirizzo "xxx.xxx.xxx.3" (quindi nella stessa rete) che sarà client.
Da pc devo poter inviare un file xml (al max una diecina di righe) al client(device) che usa la porta 7000 e aspettarne in seguito la risposta.
Il problema è che con l'esempio FileTrasfer di erel non riesco proprio ad approcciarmi considerando che utilizzo la dll per la prima volta.
L'altra prova è quella di restare sempre in ascolto con il server e prendermi in continuo il dato che il device (client) manda fuori ciclicamente.

Bye
Reply With Quote
  #2 (permalink)  
Old 01-15-2010, 06:42 PM
Senior Member
 
Join Date: May 2008
Posts: 163
Default

bhè la seconda prova sono riuscita a superarla grazie allo spunto di " Interprocess communication " di Erel resta adesso il problema di come inviare un file xml con la bynaryfile.dll o con altro.
Perchè utilizzando la funzione WriteString e formattando appunto come stringa il file XML il tutto non funziona nel senso che invio la stringa ottenuta ma non ricevo nulla.

Bye
Reply With Quote
  #3 (permalink)  
Old 01-16-2010, 08:55 AM
maXim's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Sesto Fiorentino - Florence (Italy)
Posts: 224
Send a message via MSN to maXim Send a message via Skype™ to maXim
Awards Showcase
Beta Tester 
Total Awards: 1
Post

Ciao micro,

non so se ho effettivamente compreso la tua richiesta ma in allegato trovi l'esempio FileTransfer prodotto da Erel modificato solo in piccola parte in modo che operi sia come client che come server sullo stesso device. Su i miei device MC3000 equipaggiati con Windows CE questo tipo di approccio funziona correttamente e con qualsiasi tipo di file XML compresi.

Saluti,

Massimo
Attached Files
File Type: zip FileTransfer (modificato).zip (12.6 KB, 27 views)

Last edited by maXim : 01-18-2010 at 07:58 AM. Reason: update
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP with Network Byak@ Questions (Windows Mobile) 8 09-24-2010 02:38 AM
Getting the TCP errorcode from network.dll brathbone Questions (Windows Mobile) 5 02-14-2009 12:05 AM
Network - getting the server IP derez Questions (Windows Mobile) 2 11-20-2008 07:37 PM
Network Heinz Questions (Windows Mobile) 1 02-24-2008 11:30 AM
network and WEB??? Brian Questions (Windows Mobile) 0 05-05-2007 08:22 AM


All times are GMT. The time now is 03:24 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0