asyncsocket

What is stopping data flow with .NET 3.5 asynchronous System.Net.Sockets.Socket?

I have a .NET 3.5 client/server socket interface using the asynchronous methods. The client connects to the server and the connection should remain open until the app terminates. The protocol consists of the following pattern: send stx receive ack send data1 receive ack send data2 (repeat 5-6 while more data) receive ack send etx S...

sending data packet just before closing socket

Before disconnect the client, the server wants to send some info to the client - why do I(server) disconnect you(client). If I send packet to the info and close the client socket immediately, closesocket() returns -1 and if I use linger option to work closesocket() successfully, the info cannot be sent completely. How can I complete t...

asyncsocket Write Issue

I am attempting to use asyncsocket to communicate GPS data from a server app on my iPhone to a client app on my macbook. The two devices connect without any problems, and when the first data is sent from the iPhone to the laptop in asyncsocket's didConnectToHost method, the data is sent without hiccup. When I subsequently try to write ...

AsyncSocket Delay Sending Data

So I'm writing an application for my iphone that networks to my computer running a java application using AsyncSocket. But when I try sending data from my iPhone to the java application, the data only prints out when I exit the iPhone application. Why does this happen and how can I fix it? ...

AsyncSocket Delay

So I'm writing an application for my iphone that networks to my computer running a java application using AsyncSocket. On the java side, it should print out "Ok" when the iPhone connects to the server. I also added a sleep() command to the iphone side, so after it connects to the server, it sends some data and then sleeps for 5 seconds. ...

Cocoa Asynsocket multithreaded problem

Hi all, I'm using Cocoa AsynSocket class (http://code.google.com/p/cocoaasyncsocket/) in my iPhone application which interacts with a remote server to send and and receive data. I have 1 problems. When I create the AsynSocket instance from a thread other than the main thread it doesn't get connect. didConnectToHost:Port delegate doesn...

boost::asio fails to close TCP connection cleanly.

I am trying to implement a simple HTTP server. I am able to send the HTTP response to clients but the issue is that on Firefox I get "Connection Reset" error. IE too fails, while Chrome works perfectly and displays the HTML I sent in the response. If I telnet to my server then I get "Connection Lost" message, just after the response. So...

How to use asyncsocket setRunLoopModes with separate thread?

I am new to cocoa and in my cocoa application, I'm trying to create the websocket in a new thread but it is not working. I'm doing the following when initializing mySocket class, NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(runEventLoop) object:nil]; [thread start]; .... - (void) runEve...

sometimes during net inconsistency appropriate delegates are not called

Hi all, Using AsyncSocket I made a simple text chat. I have found that sometimes during net inconsistency following delegate at server and at client code: - (void)onSocket:(AsyncSocket *)sock willDisconnectWithError:(NSError *)err, does not get called. In this method, at client side, I am disposing socket connection established w...

How to associate each user visiting a web app with a separate, temporary process allocated by a service?

Hi all, I want to develop a web application using ASP.NET running on IIS. If a user submits a MAXIMA input command, the code behind will ask a custom windows service to create a new distinct temporary process executing an external assembly. More precisely, there is only one windows service serving for all users, but each user will be...

Why is Objective-C converting JSON values to a hash of ASCII character codes?

We are building an iPhone chat application. When sending from the browser to the iPhone a JSON chat message: {"content":"Hi"} The iPhone receives: {"content":{"0":72,"1":105,"length":2}} But, we intend for it to receive the same exact message. To reproduce this issue, first install node.js & redis. Then: Get the code: ...

kCFStreamErrorDomainSSL error -9844

A customer of mine is reporting error "kCFStreamErrorDomainSSL error -9844" when trying to connect to a particular location using "stunnel" - is anyone familiar with this error or knows where I can find more information? Google turned up nothing. ...

How to declare AsyncSocket instance as Global.

I am using AsyncSocket class for a chat application. But i want to use the AsyncSocket instance creating in the Login page for the entire project. That means i want to reuse the instance of AsyncSocket which created in the Login page for the chatViewControl Class. Can anyone help me to find a solution for this? ...

iPhone and Node.js, multiple packets in single read

I feel like I'm doing this wrong, or it's just a result of my novice with sockets. I'm using asyncSocket on the iPhone to send data to node.js. My problem is that every so often, the app will hang, and then I'll get like 5 or 10 messages at once in one data read, rather than separate, more timely reads. Is this a network hiccup and the ...

Include asyncsocket in iPad project

Hey all, I am having a heck of time loading asyncsocket into my iPad project so I can start using it. So far I added the AsyncSocket.h and .m classes and loaded CFNetwork.framework and made sure all the paths line up - but I'm getting 6522 errors as I try to build. The first error is Block.h: no such file or directory. Any suggestions...