Questions tagged [asyncsocket]

Asynchronous sockets allow for multiple simultaneous non-blocking socket connections.

Asynchronous sockets allow for multiple socket connections within a single thread. While more complicated than synchronous sockets, asyncsockets allow for more efficient use of cpu scheduling. These connections are non-blocking, which allows the main program thread to continue running, while a socket thread manages network traffic.

589 questions
0
votes
1 answer

Can't get an NSString from one file to another

I'm developing an application which is connecting to another device and in order to connect to it my app has to find the IP of it. I'm doing it through UDP socket. I'm sending a message to the server application in the other device and then the…
WWJD
  • 1,104
  • 4
  • 12
  • 31
0
votes
2 answers

iOS AsyncSocket to notify to two UIViewController

I am using AsyncSocket for a TCP connection. I have one TCP socket, but I have two UIViewControllers use this socket. As I know, there is only one delegate while I init the AsyncSocket. These two UIViewControllers both need to handle the callback…
srjohnhuang
  • 232
  • 5
  • 18
0
votes
1 answer

boost::asio async_accept kill ioservice

can you help me with little problem? I have 2 class: Form1 async_srv When i start application, Form1 create async_srv instance. And listening my socket, all recieved data sending to main class and return answer from her. When get -1, i want destoy…
r1se
  • 67
  • 1
  • 1
  • 6
0
votes
1 answer

IRC /TOPIC command trimming issue in iOS

I am using Cocoa async socket library in my iOS application to make connection with an IRC server via Tcp sockets. All the IRC commands are working perfectly except /TOPIC command. When I send a topic command it always trim the first two characters…
Clement Prem
  • 3,112
  • 2
  • 23
  • 43
0
votes
2 answers

Java.lang.NullPointerException Error in the code

I am getting an error which says as Java Null Point Exception. I tried debugging and saw that the error is persisting only. I think there is a problem with the printwriter or the client object. Is it any initialization error ? I have even closed…
0
votes
1 answer

Android Asynctask method does not display the data

I tried to display data(string) from android device to java desktop server application. I was successful in that. I tried to find wifi signal strength from wifi access point to android device. I did that too. Now, I need to integrate this both…
0
votes
1 answer

Data from Android Mobile to Java Application through Socket

I want to transfer data from Android device to the java desktop server. I have a text and button. As I press the button on the device, the text should be displayed on the java desktop server. I also have added AsyncTask in the client. The error code…
0
votes
1 answer

asyncio project. What am I missing?

I've been working on a client for this chat server but I am running into a bit of a challenge. The server uses Python's 3.4RC1 asyncio module. Behavior: My client connects. My second client connects. Either can send messages to the server BUT, the…
suchislife
  • 4,251
  • 10
  • 47
  • 78
0
votes
1 answer

Transfer data from android to java desktop application

I run an application in Android and a string value as an answer. Now I want to pass this result to the Java server which is on my localhost, i.e pass the value from Android code to Java desktop application. I tried using this code, but when I run…
0
votes
2 answers

Wireless Socket file transfer c#

I've a code that send messages between server and client via 'WLAN', I am trying to send files between server and client (large files) wireless.Tried some codes this code send messages ` string msg = richTextTxMessage.Text; NetworkStream…
0
votes
1 answer

AsyncSocket crash on sleep mode for iPad

I am using robbiehanson/CocoaAsyncSocket for async socket, when my iPad goes into background state i disconnect and close all the ports, but some times when iPad awakes from sleep it crashes, happened same with simulator when mac goes to sleep mode.…
Prerna chavan
  • 3,179
  • 7
  • 35
  • 77
0
votes
1 answer

How to install xsock?

I downloaded library from http://sourceforge.net/projects/xsock/. In INSTALL file are steps to run this libs. I changed location to xsock/libxsock and type in terminal ./configure Nothing happend... How to solve this? cd' to the directory…
Piotr Wera
  • 49
  • 1
  • 2
  • 7
0
votes
1 answer

Not redirecting the nodejs page while adding heavy data in mongodb

I am adding heavy data to mongo db through looping as below function updateData() { for (l = 0; l < 10000 ,l++) { db.fbpost.update({pagename:page,'post.id': postsId},{'post.data': posts.data[l]}},{upsert: true},function (err,data){ …
AMT
  • 701
  • 2
  • 6
  • 7
0
votes
1 answer

How do I reply asynchronously to a client using sockets in C#?

I have basically implemented this asynchronous server socket example (and the corresponding client). Using it, I can respond to the client if I follow the example exactly, i.e., if the call to Send() the response is in the ReadCallback() method. If,…
Ed King
  • 1,833
  • 1
  • 15
  • 32
0
votes
3 answers

Creating an MJPEG Viewer Iphone

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…
Tony
  • 23
  • 1
  • 4