Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aaron's Network Progr With Sockets chapter questions



Fred - firewalls ? Let me think - as this happens many times that I forget to open the adequate port.

The code is there http://borkware.com/corebook/second-edition-source-code - 2 pages for the client -, but I find these lines :
   [...]

    serverAddress.sin_port = htons (PORT_NUMBER);
   [...]
    result = socket (AF_INET, SOCK_STREAM, 0);

I was looking for the adequate port - PORT_NUMBER is defined as 2342 : I am doing this immediately.

Thanks a lot !

Francis


On May 10, 2007, at 7:53 PM, Frederick Cheung wrote:


On 10 May 2007, at 18:49, Francis Derive wrote:

Bonjour à tous et à toutes,


I am talking about Chapter 13 in the old "Core Mac OS X and Unix Programming" book from Marc Dalrymple and Aaron Hillegass OR their new chapter 11 of "Advanced Mac OS X Programming".

If I launch the simpleserver and, then, simpleclient from two different machines of my local network, then :
- the server remains "silent" ( doesn't do any "accepted connection from 192.168.1.10:51035" )
- the EOF character (^D) can't be sent from the client properly ( no "EOF" on client side, but ^D in the terminal )
- the server waits for nothing to come
- at last the client shows "could not connect.  error: 60 / Operation timed out".

How could you help me - by the time I re-read and understand the code for any eventual limitations ?

Firewalls ? Although without seeing the code it's not obvious what code level things could be wrong.

Fred

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden

References: 
 >Aaron's Network Progr With Sockets chapter questions (From: Francis Derive <email@hidden>)
 >Re: Aaron's Network Progr With Sockets chapter questions (From: Frederick Cheung <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.