Erwtisi gia socket programming

Tassos Bassoukos abas at aix.meng.auth.gr
Wed Apr 11 19:42:01 EEST 2001


On Wed, 11 Apr 2001, Michalis Kabrianis wrote:

> Γειά σας.
> Μία ερώτηση για socket programming.
> Αν ανοίξω ένα socket σε ένα μηχάνημα με 2 IPs (στο ίδιο δίκτυο) και μετά
> κάνω connect υπάρχει τρόπος να ξέρω από ποια IP θα κάνει το connect?
> Αν την κάνω (πριν το connect) bind με IN_ADDRANY υπάρχει τρόπος να ξέρω
> ποια IP θα κάνει το connect?
> Τι είναι αυτό που καθορίζει το ποια IP χρησιμοποιείται?
>
> Ευχαριστώ εκ των προτέρων

Gia na eisai sigouros gia to IP pou 8a exei to local port, sto bind anti
gia INADDR_ANY bazeis thn IP addr pou 8es na exei :-)

Tassos

-- 
Bassoukos Tassos   +30 31 996011 / +30 93 7109954       IT Generalist

When you design user interfaces, it's a good idea to keep two principles in mind:
1.Users don't have the manual, and if they did, they wouldn't read it.
2.In fact, users can't read anything, and if they could, they wouldn't want to.




More information about the Linux-greek-users mailing list