• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Aaron's Network Progr With Sockets chapter questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aaron's Network Progr With Sockets chapter questions


  • Subject: Re: Aaron's Network Progr With Sockets chapter questions
  • From: Francis Derive <email@hidden>
  • Date: Thu, 10 May 2007 20:30:45 +0200

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:

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>)

  • Prev by Date: Re: Aaron's Network Progr With Sockets chapter questions
  • Next by Date: Re(2): NKE tcp redirect socket filter 10.4+
  • Previous by thread: Re: Aaron's Network Progr With Sockets chapter questions
  • Next by thread: Re: Aaron's Network Progr With Sockets chapter questions
  • Index(es):
    • Date
    • Thread