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
1
vote
1 answer

Inconsistent Read Behavior With AsyncSocket

I am writing a RubyMotion app using GCDAsyncSocket, and am experiencing inconsistent results when reading data to a specific term (in my case, CRLF). Rather than always read up until and including the next CRLF, it sometimes reads past multiple CRLF…
Mike F
  • 129
  • 2
  • 8
1
vote
1 answer

UDP socket not work with 3G network in iOS?

I was using GCDAsyncUdpSocket , it was working fine with wifi network but when I testing in 3g network, it seems not work. is possible using GCDAsyncUdpSocket with 3G network ?
PatrickSCLin
  • 1,419
  • 3
  • 17
  • 45
1
vote
1 answer

Reading data from CocoaAsyncSocket

I am using CocoaAsyncSocket , I need to make a function which sends a message to the server and wait until the server replies, in delegate methods it does receive server response but I need the function that is sending the message wait for the…
Raheel Sadiq
  • 9,847
  • 6
  • 42
  • 54
1
vote
2 answers

TCP data before session closing

Is there anyway that will allow to get all data sent via tcp before the session gets closed? What I am getting is I have to close the session from server only after that data is received, and moreover I have to manually pass EOL or carriage-return…
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
1
vote
2 answers

Having trouble programming streams

So here's the issue: The stream isn't writing at the right time and is unable to get a response from my server. I know I'm writing the right data, because when I stop the build, it writes to the server and the server is happy. I'm confused to as…
khaliq
  • 3,125
  • 4
  • 17
  • 23
1
vote
1 answer

cocoaasynsocket to c sharp server

I want to communicate between iPhone and C# server through Sockets, When I try to create socket from iPhone to my C Sharp server over a LAN using cocoaasynsockets, but it does not create any socket on my server. I tried giving different IPs like…
Raheel Sadiq
  • 9,847
  • 6
  • 42
  • 54
1
vote
2 answers

Why aren't library (delegate) methods getting invoked? CocoaAsyncSocket

I have been stuck on this issue for a few days now and seem to be getting closer to a resolution (with help from the great users @ SO). I'm using the CocoaAsyncSocket library to create a TCP socket connection to a Windows server. The connection…
Skizz
  • 1,211
  • 5
  • 17
  • 28
1
vote
1 answer

Cocoa Async Socket java implementation

On an iPhone project I'm using AsyncUdpSocket and AsyncSocket which I've found here. Do you know if there is something similar for Android? I've tried to search on google for a java verion of these classes but I haven't found any. By the way I've…
VansFannel
  • 45,055
  • 107
  • 359
  • 626
1
vote
1 answer

Starting with CocoaAsyncSocket

I've been looking for ways to send files (small sound recorded on the iphone) over TCP to a server and from the server to other devices. It seems like the easiest way to do so would be using the CocoaAsyncSocket project. (Is it true?) However, while…
La bla bla
  • 8,558
  • 13
  • 60
  • 109
0
votes
1 answer

AsyncSocket connection works only at home network

I am using AsyncSocket to make my iPhone send data to my Mac. Mac works as a server to accept the connection from iPhone. However, it only works when both of devices are in my home network. It never works out in public networks such as Starbucks or…
user516759
  • 85
  • 1
  • 9
0
votes
1 answer

Socket tags in PHP?

I am using cocoaasyncsocket as socket receiver on my mac and send the data in the socket from a PHP file. How can I add a tag in the PHP socket so that I can retrieve the tag with the didReadData method?
Laurent Crivello
  • 3,809
  • 6
  • 45
  • 89
0
votes
1 answer

Difference between AsyncSocket and AsyncUdpSocket

I'm absolute beginner to socket programming and i need to work with UDP packets in my application. I'm going to CocoaAsyncSocket library as it's famous for its good qualities. There is a documentation which seems to be helpful for that library but…
Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161
0
votes
1 answer

GCDAsyncSocket send message

I have issues sending messages over socket using GCDAsyncSocket. I establish a connection and try to send a message to server, but message is being sent when application quits. I need a way to do it before. I tried [asyncSocket disconnect]; but it…
iblagajic
  • 71
  • 2
  • 9
0
votes
0 answers

Swift TCP connection receiving not working

With my iPad as a TCP client, using CocoaAsync I am able to send utf-8 messages successfully to the other device (none iOS), but unable to receive them. None of the print statements nor the text I have even worked: Message Receiver: import…
0
votes
1 answer

asyncsocket accepts socket but doesn't connect to host

I've just started running (what I thought was) a basic asyncsocket in my objective-c app and I'm getting the didAcceptNewSocket: message when connecting with telnet, but then I'm abruptly disconnected ("Connection closed by foreign host") without…
Nick
  • 9,792
  • 7
  • 50
  • 60