• 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: Blackhole netsocket warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Blackhole netsocket warnings


  • Subject: Re: Blackhole netsocket warnings
  • From: AgentM <email@hidden>
  • Date: Tue, 7 Feb 2006 09:02:35 -0600

NetSocket hasn't been updated in a while. It also has a bug concerning the detection (actually, the lack thereof) of a failed connection. I would recommend netclasses instead:
http://netclasses.aeruder.net/


To answer your question, the signature for accept is:
int accept(int s, struct sockaddr *addr, socklen_t *addrlen);

so the third argument should be a socklen_t pointer instead of an int pointer. If you change the type declaration in NetSocket.m like this:

socklen_t socketAddressSize; //change to socklen_t
....
// Accept pending connection
socketDescriptor = accept( nativeSocket, (struct sockaddr*) &socketAddress, &socketAddressSize );


then the warnings disappear. There is more than one case of this you need to change. Good luck!

On Feb 7, 2006, at 4:15 AM, Andrea Salomoni wrote:

Hi to all,

I'm using a class named NetSocket by Blackhole.
When I try to compile my app, the compiler returns me some warnings about NetSocket
This is the line:


socketDescriptor = accept( nativeSocket, (struct sockaddr*) &socketAddress, &socketAddressSize );

The warning tell:
pointer targets in passing argument 3 of 'accept' differ in signedness

There some others warning , but all are similar to this one.

Thank you all
Andrea
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40themactionfaction.com


This email sent to email@hidden

|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|- AgentM email@hidden |-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Blackhole netsocket warnings (From: Andrea Salomoni <email@hidden>)

  • Prev by Date: Re: Searching for socket API thread based
  • Next by Date: Re: File permissions when copying files using NSFileManager
  • Previous by thread: Blackhole netsocket warnings
  • Next by thread: Searching for socket API thread based
  • Index(es):
    • Date
    • Thread