[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
AndroidGreece.gr - View topic - Μοντέλο Server-Client
View unanswered posts | View active topics It is currently 27 Apr 2024, 10:36



Reply to topic  [ 10 posts ] 
 Μοντέλο Server-Client 
Author Message

Joined: 25 Jan 2009, 22:17
Posts: 2
Post Μοντέλο Server-Client
Γεια χαρά Ventrix,

έστειλες και στο blog ένα σχόλιο το οποίο δυστχώς είδα μόνο σήμερα.

Το θέμα μας τώρα είναι το εξής. Έφτασα στο σημείο να τρέξω έναν Server, Client και Worker στο emulator του Android και μόλις κατάφερα να στείλω 2 αριθμούς και να τους προσθέσει ο worker. Δεν γνωρίζουμε όμως πως θα κάνουμε τον Server να τρέχει στο Android χωρίς να τον μαζεύει ο GC. Τρέχει κανονικά σε δικό του Thread αλλά τερματίζει. Αποτέλεσμα δεν μπορώ να τρέξω δεύτερο Client πχ χωρίς να μαζέψει ο GC τον πρώτο.

Επίσης αν ξέρεις πως θα γίνει στο ίδιο δίκτυο (ή στο ίδιο pc) να βλέπει ο Worker που τρέχει στο pc τον Server που τρέχει στο Android.

ΥΓ Worker είναι αυτός που κάνει τη δουλειά που ζητάει ο client. Το συγκεκριμένο σύστημα θα έχει ως αποτέλεσμα να τρέχει Server (1) και Client (1) στο Android και να κάνει τη δουλειά pc (Worker 1~...) .

:D


25 Jan 2009, 22:30
Profile WWW
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Μοντέλο Server-Client

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


26 Jan 2009, 14:12
Profile WWW

Joined: 25 Jan 2009, 22:17
Posts: 2
Post Re: Μοντέλο Server-Client


26 Jan 2009, 16:50
Profile WWW
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Μοντέλο Server-Client

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


26 Jan 2009, 17:57
Profile WWW

Joined: 05 Apr 2009, 09:26
Posts: 8
Post Re: Μοντέλο Server-Client
Γεια σε όλους!!!!

Υλοποιώ μία Client/Server εφαρμογή.... ο client σε Android emulator....
Τι πρέπει να βάλω στο manifest για να εκτελέσει το παρακάτω κώδικα?
d = InetAddress.getLocalHost();
String ss = d.getHostAddress() +","+ d.getHostName();

το ss επιστρέφει 127.0.0.1, localhost

ενώ η IP είναι άλλη....


05 Apr 2009, 09:33
Profile
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Μοντέλο Server-Client

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


05 Apr 2009, 17:48
Profile WWW

Joined: 05 Apr 2009, 09:26
Posts: 8
Post Re: Μοντέλο Server-Client
Γεια...
δεν ειναι αυτή η διεύθυνση του localhost....einai 192.168.1.64
Γιατί δε την βγάζει?


05 Apr 2009, 19:53
Profile
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Μοντέλο Server-Client
εαν το τρέχεις στον emulator, τότε θα επιστρέφει πάντα 127.0.0.1.
το δοκίμασες σε πραγματική συσκευή;

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


06 Apr 2009, 00:55
Profile WWW

Joined: 05 Apr 2009, 09:26
Posts: 8
Post Re: Μοντέλο Server-Client
Δεν έχω δυστυχώς...
Αλλά μάλλον θα βγάλει την κανονική διότι μετα του λέω να ανοίξει Socket στην 192.168.1.64 και το κάνει...


06 Apr 2009, 16:08
Profile
Site Admin
User avatar

Joined: 24 May 2008, 23:50
Posts: 626
Location: Athens
Post Re: Μοντέλο Server-Client
αυτό ήταν τότε :)

_________________
Chief Software Engineer @ PinApps.com
Κωνσταντίνος Πολυχρόνης
Πρόσθεσε την εφαρμογή σου:


06 Apr 2009, 17:39
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 251 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.