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

GWT server<->client message bus?

Errai provides one, for example. Are there any other solutions providing event bus implementations that allow the client to receive realtime events from the server and share client events with the server?
user1050755
  • 11,218
  • 4
  • 45
  • 56
0
votes
2 answers

Read whole html string Asyncsocket iOS

Hi I want to read from a server the whole html not only the request like "HTTP/1.1 200 OK" I mean the html code too. But I dont know how. I am using the Asyncsocket library from "https://github.com/roustem/AsyncSocket" have someone an idea how can…
0
votes
1 answer

Send socket from C# to iOS app

I'm having some problems sending a string from my C# app to my iOS app. I tried to send the data using a socket from C# to SocketTest and it receives, I've sent the data using a socket from Socktest to my iOS app and all goes well! The problem is…
user1782638
  • 130
  • 1
  • 13
0
votes
1 answer

update SQLite data from tablet to mobile in android

I am creating an app that is for my grandmother as she suffers from Alzheimer. I would like to have a feature where I could remotely update the schedules from my mobile to her tablet .Now I am thinking of various possibilities to have the same set…
0
votes
2 answers

Async Sockets work Locally but not over internet

It is working really good except sometimes (noticed on vista only so far) I am trying to create a robust Async Socket.BeginReceive process. Currently all I do is connect to the server, server acknowledges connection and sends a file to the client.…
clamchoda
  • 4,411
  • 2
  • 36
  • 74
0
votes
1 answer

Async Socket listener sending data error

I'm creating a wrapper class around the Socket class. I have a connect async callback which does this: public void StartConnecting() { // Connect to a remote device. try { //_acceptIncomingData = acceptIncomingData; //…
Callum Linington
  • 14,213
  • 12
  • 75
  • 154
0
votes
1 answer

boost::asio::async_read_some run in parent thread

I am writing an efficient socket server. The intention is good overall throughput. I use the main thread as the listener. It async_accept a client and add the socket to a queue. There's a dispatcher threads picks up a socket, who is ready to be read…
eltonsky
  • 367
  • 2
  • 11
0
votes
2 answers

How do I accept any number of connections using `accept()` during a certain time period?

For example, I don't how many clients will connect, but I'd like for any number of clients to be able to connect during a time period, say 10 seconds. Right now I have something like this: unsigned int currentTime = (unsigned int)time(NULL); int…
trusktr
  • 44,284
  • 53
  • 191
  • 263
0
votes
1 answer

Reading buffer asynchronously over TCPIP client connection

I wrote a client which connect to a medical machine over TCP/IP. That machine send me XML files based on internal triggered event. I have to catch those XML and store on filesystem. I used a class which provide asynchronous connection and works fine…
Ras
  • 628
  • 1
  • 11
  • 29
0
votes
1 answer

How to send messages in background(press the "Home" key) by AsyncSocket(in IOS)

I want to send GPS information when the program is running in the background of iPad.Thanks for your help.
ling rong
  • 1
  • 2
0
votes
1 answer

async_read() of a maximum size

I have an issue with boost::async_read(). Online, I found that there is a function read_at_least(n). But I'm looking for a function like read_max() which would read a maximum amount of bytes. The thing is that I have different structures to read,…
DKF
  • 407
  • 3
  • 5
  • 10
0
votes
1 answer

Async Client/Server Communication C#

I am learning about client/server programming and I am making an Asynchronous Client/Server Chat application. I can connect the client to the server and send a message but I am having a problem sending the same message back (just for testing…
Colin Roe
  • 774
  • 1
  • 18
  • 35
0
votes
0 answers

Windows Phone 7 Socket Class giving Host Not Found Error

I am using Socket class in Windows Phone SDK, the thing is my application works fine on the emulator, but giving exceptation in the receive , saying // Make an asynchronous Send request over the socket …
Amitg2k12
  • 3,765
  • 10
  • 48
  • 97
0
votes
1 answer

Async Socket in Android

I'm building an android monitoring application, In my application I want a dedicated thread for all socket tasks. Meaning that in this thread I want to use Async socket that will send and recieve all the data in the server. I tried searching for a…
Daniel L.
  • 5,060
  • 10
  • 36
  • 59
0
votes
1 answer

AsyncSocket doesn't work for me

I'll start by saying i did look and searched everywhere before asking here I'm trying to write a simple app for iphone the simply connect to an IP and port via telnet, I tried everything i'm new to obj-c (in java it took me four min), I don't want…
reut
  • 21
  • 9