Questions tagged [cocoaasyncsocket]

CocoaAsyncSocket is a TCP/IP socket networking library that wraps CFSocket and CFStream for Cocoa/Objective-C.

CocoaAsyncSocket is a TCP/IP socket networking library that wraps CFSocket and CFStream for Cocoa/Objective-C. More information at GitHub page

151 questions
3
votes
1 answer

semaphore_wait_trap, GCD and CocoaAsyncSocket

I am currently building an App using CocoaAsyncSocket. I connect to a TCP server and read/write some data. I create the socket using self.socket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:dispatch_get_main_queue()]; When data is…
3
votes
1 answer

Is it possible to build socket connection between 2 iOS devices

Is it possible to build a socket connection between 2 iOS devices connected to the same network (Without net)? if it's possible .. Is (CocoaAsyncSocket project) useful for me? I just want to send a message from Device A to Device B which put the app…
Husam
  • 8,149
  • 3
  • 38
  • 45
3
votes
2 answers

Which is better to use for XMPP framework OR CocoaAsyncSocket for real time communication for an iOS application?

I want to implement real time communication(like chat) in my app. I am confuse what should be used either XMPP framework or CocoaAsyncSocket ? As CocoaAsyncSocket works is mention here…
Archana Chaurasia
  • 1,396
  • 3
  • 19
  • 35
2
votes
1 answer

How to transfer large files/directories over network using AsyncSocket

I've tried the NSTask > NSData method, but the CPU/memory overhead is extremely large for anything over 1GB, so I need to find a way to do this like, say, an FTP server does it. EDIT: How does remote desktop's copy files do it?
Aditya Vaidyam
  • 6,259
  • 3
  • 24
  • 26
2
votes
0 answers

Cannot allocate memory error using GCDAsyncSocket

I'm trying to upload videos to a server via TCP/IP using GCDAsyncSocket. Sometimes, the socket disconnects with an error that I haven't been able to eliminate: 2011-12-17 11:39:25.073 Hadza[433:707] socketDidDisconnect, error: Error…
2
votes
2 answers

How to flush CocoaAsyncSocket?

Is there a way to flush the internal buffers/queues/etc. of CocoaAsyncSocket (GCDasyncSocket)? I want to setup the environment that when I call the [... readDataWithTimeout ..] method, I don't want it to read any left over garbage data from a…
2
votes
1 answer

CocoaAsyncSocket doesn't work after being in background

I have an instance of AsyncSocket which I've been using as a server on an iPad, and then an AsyncSocket socket running on another iPad which is acting as the client. I have all the necessary code to exchange data between the client and server --…
Jonathan Ellis
  • 5,221
  • 2
  • 36
  • 53
2
votes
1 answer

Why am I getting an EXC_ARITHMETIC error in iOS app?

My app is crashing and getting an EXC_ARITHMETIC error and I don't know why. Here is where the error is happening: int main(int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; int retVal =…
tsdexter
  • 2,911
  • 4
  • 36
  • 59
2
votes
1 answer

cocoa asyncudpsockets don't send bytestream

I have a little MAC OS X Application that should send a UDP Datagram to a server. I want to use the cocoa asyncudpsockets (http://code.google.com/p/cocoaasyncsocket/) to do this, but i have the problem that i call the "sendData" method but nothing…
mabstrei
  • 1,200
  • 3
  • 13
  • 28
2
votes
1 answer

cocoaasyncsocket sending data >128bytes (google protocol buffers)

I'm using cocoaasyncsocket to send data Google Protocol Buffers (using http://code.google.com/p/metasyntactic/wiki/ProtocolBuffers) to a Java server. This is all fine BUT for messages (protoToSend) >128bytes I'm running into issues as the Java…
2
votes
1 answer

'DDLog.h' file not found

I am trying to enable the logging inside CocoaAsyncSocket by doing the following inside GCDAsyncSocket.m: #ifndef GCDAsyncSocketLoggingEnabled #define GCDAsyncSocketLoggingEnabled 1 #endif However, when I build the project I receive the following…
MohamMad Salah
  • 971
  • 2
  • 14
  • 31
2
votes
1 answer

How can I stream audio using UDP sockets in iOS swift?

I am really new to this networking concept, but I have to stream a audio file using the UDP socket, and after searching for a week I have not really got anything useful. I have used CocoaAsyncSocket, and tried to send a string from the sender app to…
K. Mitra
  • 483
  • 7
  • 17
2
votes
1 answer

Unable in build in Xcode: "Code object is not signed at all In subcomponent ... CocoaAsyncSocket.framework"

I'm attempting to build a MacOS app that contains a framework (SwiftyHue 0.4.1) which in itself has a nested dependency (CocoaAsyncSocket 7.6.3). I'm importing SwiftyHue using Carthage. There are no errors during import, however when I hit "run"…
Abushawish
  • 1,466
  • 3
  • 20
  • 35
2
votes
1 answer

CocoaAsyncSocket in swift3 to create tcp server/Client?

I am newly to networks in iOS, I want to create tcp server/Client and I try many libraraies such as SwiftSocket, CocoaAsyncSocket, BlueSocket but I fail to reach my target, any one can provide me any example in swift to achieve my goal?
Ali A. Jalil
  • 873
  • 11
  • 25
2
votes
1 answer

Tcp communication in swift

I want to exchange data between iPad and an embedded device through TCP. I am using the TCP frame work CocoaAsyncSocket. Using this i created a client and server which are actually two different ipads. I am able to connect from the client to the…
nuteron
  • 531
  • 2
  • 8
  • 26
1 2
3
10 11