Re: Raw sockets
Re: Raw sockets
- Subject: Re: Raw sockets
- From: Quinn <email@hidden>
- Date: Mon, 19 Jul 2004 12:10:36 +0100
At 0:13 +0200 19/7/04, Enrico lupsyn Del Zotto wrote:
So i want to ask you: is there some syscall or methods to build a raw socket,?
( in linux i used this headers:
Cocoa is a high-level frameworks and doesn't have direct support for
this low-level stuff (direct device access, raw sockets, etc).
However, Mac OS X supports a standard BSD sockets API (Mac OS X
network is, after all, based on BSD), so code written to sockets
should work just fine, including inside a Cocoa application. Two
points to note:
1. Different platforms have subtle differences in how they implement
the 'sockets' API, especially when it comes to low-level stuff like
raw sockets and ARP. You may encounter some of these differences
when porting your code to a BSD-based platform, like Mac OS X. If
so, try searching the net for hints. For example:
<
http://www.whitefang.com/rin/rawfaq.html>
2. Cocoa does have support for integrating a socket, any type of
socket, into the Cocoa runloop using CFSocket. Also, there are a
variety of non-Apple Cocoa networking frameworks available. See the
URL below for a good summary.
<
http://www.stepwise.com/Articles/Technical/2003-04-22.01.html>
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.
References: | |
| >Raw sockets (From: Enrico "lupsyn" Del Zotto <email@hidden>) |