asyncsocket

Cocoa, Stomp, ActiveMQ, iPhone, SSL, & AsyncSocket Help Needed

Well, maybe not with all 4 things, but here's my situation: I have an ActiveMQ backend (running on my desktop Mac). It's a stock Apache ActiveMQ server I have which I am basically using as an echo server to tail the logs and debug my client. The client is an iPhone project with a hacked up Stomp.framework implementation using AsyncSocke...

iPhone EDGE/3G network port range? Anybody know?

I am trying to access 61616 in my iPhone app and the SCReachability code indicates that I have a valid network, but I time out trying to write to 61616. Does anyone know: A. If the iPhone EDGE/3G network has a limited port range or isn't allowed to connect to this port? B. How I can check explicitly for access to this port. Here is my ...

iPhone/iPod receive messages from C# tcpip server using CocoaAsyncSocket

Hello, i'm trying to send/receive data over wifi to an iphone/ipodtouch app from a C# tcpip server. for this i used cocoaAsyncSocket from the google project. If i push a button and i send a request from ipod to server it returns the requested data(song title for example)..i want to know every second what song is playng...so from C# serve...

How do I use AsyncSocket in a worker thread instead of main Thread?

I have a iPhone app that connects to an IP camera and retrieve MJPEG data using GET method. Everything seems to work find on the simulator, but on the device the UI seems to be blocking: Whenever i receive an image data, I load it into uiimageview. It seems like the only way out is to have AsyncSocket running on a background thread and...

client side application not working as intended while using AsyncSocket

Hi All, I am using AsyncSocket class in a simple client-server application. As a first step I want that - as soon as connection is established between client and server, client transmit a welcome message - "connected to xyz server" to server and server displays it in textview. //The code in ClientController class is: -(void)awakeFrom...

How to make testcase for the windows asyncsocket?

Hello, Is there anyone who use testcase for the windows async socket? right now, I make a testcase as following: TEST(TestAsync) { Model* model = Model.getInstance(); Account* account = model->getAccount(); account->setId("[email protected]"); account->setPassword("password!"); MyAsyncSocket* socket = new MyAsyncSocke...

CSocket doesn't receive OnClose or OnReceive when you disable network connection on the client side

I've created a client server application with c++ CSocket. when I connect the client to the server and after that I close the client with normal X button or end task it with taskmanager , server CSocket receives the OnClose event. The problem is when I disable the internet connection on windows that the client is running on, server CSock...

peer - to - peer chat with AsyncSocket class

hi friends, I want to use AsyncSocket class for peer - to - peer chat. I have been able to make a sample chat application where one user can communicate with other user by transmitting messages to server and then from server to other user(s) by using it, but I am finding it some what difficult to manage sockets established in peer - to...

Creating an MJPEG Viewer Iphone

Hey all, I'm trying to make a MJPEG viewer in Objective C but I'm having a bunch of issues with it. First off, I'm using AsyncSocket(http://code.google.com/p/cocoaasyncsocket/) which lets me connect to the host. Here's what I got so far NSLog(@"Ready"); asyncSocket = [[AsyncSocket alloc] initWithDelegate:self]; //http://kamera5.vfp....

Socket Server: Manage client connections

Hi, I'm wondering how to implement a client management for a socket server. I'm having the case where I would like to know whether the client has just reconnected or if it's a new client. I know, it shouldn't be that way. It's a rather temporarily server, though, which is only to be used for a couple of hours. I was thinking about let...

How to implement voice chat in cocoa??

Hi all, I have made a simple chat application using AsyncSocket class where client nodes can send message to each other via chat server application. I want to integrate voice chat functionality in it but I am not getting any material over net which can show me correct direction to move on. Can anyone suggest me some useful link or ide...

Cocoa AsyncUDPSocket framework, (long)tag variable explanation and my delegate only sometimes called.

Hello Community, my first post and also my first question. I am currently playing around with the Artnet protokoll, which is based on UDP. Trying to develop an Cocoa Application that reads Artnet data. I decided to use the AsyncUDPSocket Cocoa framework and got it working somehow.. So when i try to send a packet to my listen port using...

Help eliminate loop in asynchronous receiver due to content-length = 0 in HTTP response

Some web servers return content-length set to zero in the HTTP response headers. I'd like a deterministic and performant solution for receiving all the data in that situation. URL known to exhibit this behavior (additional URLs below): http://www.washingtonpost.com/wp-dyn/content/article/2010/02/12/AR2010021204894.html?hpid=topnews he...

NSThread, AsyncSocket and object deallocation

Hi! I have a piece of network code that uses AsyncSocket but moves it to a separate runloop. I'm creating this runloop with the following piece of code: [NSThread detachNewThreadSelector:@selector(_workerLoop) toTarget:self withObject:nil]; and here's how my _workerLoop looks like (they're both in the same class): -(void)_workerLoop...

iPhone AsyncSocket always connecting on any port!

Hi there! I'm using (or trying to...) AsyncSocket to connect to a server but it always connect even if the server is not running... I'm using the SDK 3.1.2. Anyone faced this problem before? #import "mluPresenterAppDelegate.h" #import "AsyncSocket.h" @implementation mluPresenterAppDelegate @synthesize window; #pragma mark - #pragma ...

iphone/mac - how to download files with AsyncSocket

Hi guys, I have a remote server with some files. I want to use AsyncSocket to download a file, chunk by chunk. I would like to send HTTP requests with ranges through the socket and get the appropriate chunks of data. I understand how to do this on localhost, but not from a remote server. I really don't know how to use the connectToHost ...

How to send file from server to multiple clients at a time in mfc using sockets ?

I am making simple one on server side & one on client side application for transfering file from one location to another location or from one computer to another computer if computers are in network. I used the code from http://www.codeproject.com/KB/IP/SocketFileTransfer.aspx. It is working & file transfered successfully. But i need t...

C# Socket.BeginSend AsyncCallback behavior (timeout?)

Hi guys, Here is a scenario with asynchronous sockets that I dont't quite understand... I have 2 Tcp sockets, a client socket & a server socket. My server socket is bound & listening on a port. My client sockets connect to the server socket (using BeginConnect / EndConnect). I then send a message to the server using BeginSend(). ...

sendData (lib AsyncSocket) just before iPhone quit

I have an iPhone application that send datas via wifi on my mac. I would like to send a logout message to my mac when I quit the iPhone app. I tried to send it on the : -applicationWillTerminate methode but it seems that the application shut down my service before. How and where can I send my message just before the exit ? Thanks a l...

How to pull UIImages from NSData from a socket.

Hey all! I'm using ASyncSocket to move some UIImages from one device over to another. Essentially, on one device I have: NSMutableData *data = UIImageJPEGRepresentation(image, 0.1); if(isRunning){ [sock writeData:data withTimeout:-1 tag:0]; } So a new image will be added to the socket every so often (like a webcam). Then, on ...