tcpdump on iOS / Jailbreak - objective-c

Is there an iOS-compatible Objective-C-port of the tcpdump C-sources or a working tcpdumpbinary for iOS? And if so, does it capture the traffic from all network devices? Or does it capture only an Ethernet device? Is there libpcap for iOS? I am aware, that this requires a jailbroken Phone.

Yes to both:
http://planet-iphones.com/cydia/id/tcpdump
http://planet-iphones.com/cydia/id/libpcap
However I don't understand why you want an Objective-C port?

Related

Can WebRTC work over an Android USB Ethernet connection?

I am trying to use WebRTC on an Android App to stream to a media server running on my workstation using a USB tethering connection. I see have good signaling, with an offer and an answer that seem to make sense with respect to the IP addresses, but I do not get any UDP streaming traffic.
Is there something in the Android WebRtc library that would omit this rndis0 interface? Over Wi-Fi, everything works as intended, but not if the tethered ethernet is the only connection.

Connect Mac with iPhone using bonjour

I am trying to make a connection using bonjour and bluetooth between my mac and my iPhone.
I´ve been reading a bit and from these sites I have learned that I cannot use NSNetService as I did on my first attempt.
Bonjour over bluetooth WITHOUT Gamekit ?
Bonjour over Bluetooth on iOS 5.0
So I have modded the DNSSDObjects sample code to use the kDNSServiceInterfaceIndexP2P flag instead.
DNSSDObjects
But I still cant connect my iPhone with my mac. If I change the flag back to kDNSServiceInterfaceIndexAny I can make a connection over Wifi (lan). But no luck using kDNSServiceInterfaceIndexP2P or kDNSServiceFlagsIncludeP2P using bluetooth.
Is there something missing, is it even possible to connect OSX and iOS using bonjour and bluetooth?

NSNetService on WiFi instead of bluetooth

I have 2 iOS devices and an application which starts or connects to a NSNetService.
When both devices have have bluetooth turned on the data stream will automatically be done over the bluetooth interface.
I do not want that, i want both devices to communicate over the WiFi. Is there a way to force a NSNetService to communicate over the WiFi?
Thanks
I don't think there is, I haven't looked into the docs, but I know a ton of games recommend disabling Bluetooth and ensuring WiFi is enabled for local multiplayer.

Printing the data

i am developing an ipad app where i need to print to a bluetooth printer. The printer does not have any other mechanism like wi-fi , it only has bluetooth.
i guess the ipads dont have bluetooth. it only has wi-fi. is there an app which prints to bluetooth printers?
Can ios4.2 detect bluetooth enabled printers?
Thanks in advance.
The iPad has bluetooth, however, AirPrint currently only works via WiFi.

Sending a Message from a iPhone to a Mac

How would I send a message to an App on my mac (which I develop) from my iPhone via WiFi?
This message would then make something happen in the Mac App.
This is just a fun app for myself so it doesn't need any security like SSL.
I'd recommend looking into a tutorial on Bonjour.
http://www.mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/
http://www.macresearch.org/cocoa-scientists-part-xxviii-bonjour-and-how-do-you-do
Use TCP to create a connection. Here's a tutorial: http://dev.im.ethz.ch/wiki/Socket_communication_on_the_iPhone
But TCP is extremely common protocol, so on the Mac side you can probably just read up on TCP sockets and be fine.