Sockets are the most basic level of network communications. A socket acts in a similar manner to a telephone jack. It allows you to connect to another socket (either locally or over a network) and send data to that socket.
Questions tagged [cfsocket]
43 questions
0
votes
1 answer
How to access UI from CFRunLoopRun in ios
how can i pop up a new view when i get commands in CFRunloop (connectCallBack) in CFSocket class.

sps
- 81
- 5
0
votes
1 answer
iPhone CFSocket Incoming/Outgoing Messages
From my understanding you cannot socket a connection between two iPhones (correct me if I'm wrong). So what I would like to do is have one server sitting between the client application that accepts messages and redistributes them to the appropriate…

spots
- 2,483
- 5
- 23
- 38
0
votes
2 answers
How to resolved Multiple Address in Bonjour based ios application?
I am trying to Implement Banjour based application in ios. I implement success fully also sending and receiving data to one iphone to another iphone.
After browsing the services all other device in the work. and display in to the Table.
Now i…

Musthafa P P
- 645
- 3
- 7
- 21
0
votes
1 answer
How to stop CFSocket from sending callbacks?
I have a server app which creates an object for every client that connects. In this object's init method I use this code to create a CFSocket to communicate with the client:
CFSocketContext context = {
.info = self
};
socket =…

Sven
- 22,475
- 4
- 52
- 71
0
votes
0 answers
Does NSURLSession use CFSocket internally?
I have been facing issue while using NSURLSession many times and hence wanted to know does NSURLSession internally uses CFSocket?
Is there any reference document from Apple on this? If yes, references would be appreciated.

sia
- 1,872
- 1
- 23
- 54
0
votes
1 answer
Enable broadcast on CFSocket in Xamarin.iOS
I need your help.
I have this Xamarin app, that is sending a multicast on the network using System.Net.UdpClient, but it seems pretty unstable and crashes a lot in background threads that I don't control. So I though why not go low-level.
Everything…

tougher
- 499
- 1
- 3
- 13
0
votes
1 answer
Warn"use of undeclared identifier self" when use c function
this is my code in ViewController.h in CoCoa to implement "CFsocket"
@interface ViewController : NSViewController
-(IBAction)start:(id)sender;
@property (strong, nonatomic) IBOutlet NSTextView *CommandDisplay;
this is…

林子勤
- 29
- 6
0
votes
2 answers
CFSocket crashes on successful connection
This is my Client and Server code for CFSocket communication but on successful connection this code crashes.
Client.m
-(void)createConnection
{
CFSocketContext socketContext = {0,(__bridge void *)(self),NULL,NULL,NULL};
_socket…

Arun_
- 1,806
- 2
- 20
- 40
0
votes
1 answer
Using Sockets with NSXPCConnection
Running into an issue when using sockets with an NSXPCConnection.
Basically, there is a main process and a helper process running, established via NSXPCConnection. That helper process needs to act as a server and listen to a particular port (say…

Live2Enjoy7
- 1,075
- 2
- 11
- 22
0
votes
1 answer
Debug Packet Loss In TCP Communication in iOS/iPad Application
I have an iOS application that remotely connects to 3 sockets(of some hardware). Each Socket has its own priority. One channel is only used for transferring messages between iPad App & hardware, one for Tx/Rx Images, another one for Tx/Rx Videos. I…

Pranav Jaiswal
- 3,752
- 3
- 32
- 50
0
votes
0 answers
Send binary data with cfsocketsenddata
I try to send a UDP package for Wake on Lan. The first part of the package needs to be 6*FF in hexadecimal code followed by 16 * mac address in hex. How can I send the NSString in hex value? As now it sends the value 255 as 32 35 35 instead of FF.
I…

Dweezahr
- 190
- 1
- 9
0
votes
1 answer
How to fix naive server implementation with CFSocket to allow multiple connections
I have been studying the bonjour/NSStream sample code from lecture #17 of Stanford's CS193p course (iOS programming) on iTunes U from the winter of 2010. The example code is available here.
In a nut shell, the sample code creates a socket and binds…

RyanM
- 4,474
- 4
- 37
- 44
-1
votes
1 answer
Potential memory leak after CFSocketCreateWithNative
This is driving me mad! What is wrong here?

RyanM
- 4,474
- 4
- 37
- 44