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

Manually Reload webPage Tornado

Is it possible to make reload the page when the data is updated? import socket import tornado.ioloop import tornado.web import tornado.gen import tornado.ioloop import tornado.iostream import tornado.tcpserver import os import…
Kirill
  • 33
  • 5
0
votes
1 answer

Asyncsocket error in ios 9 - Attempting to connect while connected or accepting connections. Disconnect first

This code carry on some communication to server on app device. It worked fine until clients upgrade their iOS to version 9. clientSocket = [[AsyncSocket alloc] initWithDelegate:self]; @try { NSString *msg = [NSString…
irmorteza
  • 1,576
  • 3
  • 19
  • 32
0
votes
2 answers

Java listening on multiple server ports for client attempt to connect

OK. I feel dumb. I cannot find what I'm looking for. I am opening 50 ServerSockets and adding them to a List of ServerSockets: ServerSocket ss = new ServerSocket(getPortNumber()); SOCKETS.add(ss); I get that I need a new thread for each…
Patricia
  • 5,019
  • 14
  • 72
  • 152
0
votes
3 answers

What is the fastest way to send data between client and server?

I want to implement a communication between 2 servers. On the client side: one thread prepares the data and enqueues it. The second thread dequeues data, serializes it and sends to the server. On the server side: receives the data (bytes) and…
theateist
  • 13,879
  • 17
  • 69
  • 109
0
votes
1 answer

Persist a C# socket inside ASP.NET Webservice

First of all lets discuss my case below: I have three part comes and play in my case: 1- Client HTML page 2- ASP.NET API that hosted on windows 2008 Web server 3- Black-Box TCP Socket Server (Hosted on internal zone and does not accessible from out…
0
votes
0 answers

Client/server network code only working over localhost

I have a simple client/server set up that works fine if the client and server are running on the same machine over localhost. The code I am using for now can be seen here: https://msdn.microsoft.com/en-us/library/bew39x2a(v=vs.110).aspx…
Justin
  • 533
  • 1
  • 7
  • 18
0
votes
2 answers

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…
0
votes
1 answer

How to develope IP Messenger in iOS?

I am doing small demo on IP messenger in iOS using Objective-C. Can anyone help me how to do this ? The server side was developed in C#.Net. So I have to communicate with that server like IP Messenger. How can I approach ? Is there any demo projects…
Karthik Mandava
  • 507
  • 1
  • 14
  • 27
0
votes
1 answer

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.…
0
votes
2 answers

How to distribute the server Load

I'm trying to get my head around this... I have an application composed of one Server(basically a N tier console application with TCP Async socket programming in C#), One MSSQL database and several clients. Now the problem is thousands of clients is…
Syed
  • 91
  • 1
  • 4
0
votes
1 answer

Send data from server using c# async

I am referring to .net asyn example here https://msdn.microsoft.com/en-us/library/system.net.sockets.socketasynceventargs.aspx In this code server responds to client when a message is received. My question 1) How can server send data to a required…
pats
  • 1,273
  • 2
  • 20
  • 43
0
votes
0 answers

Poco ParallelSocketAcceptor crash

I use Poco-libraries parallel socket acceptor in my application and it sometimes crashes. Here is the backtrace of my application: Program terminated with signal SIGABRT, Aborted. #0 0x00007f9ed30ee107 in __GI_raise (sig=sig@entry=6) at…
Behrooz
  • 468
  • 5
  • 14
0
votes
1 answer

ios asyncsocket cannot call readdata method

I create a socket client using asyncsocket and i can get the connection and the data in the server, but i cannot get the data on the client end, which means the onSocket: didReadData method have not been called. -(void) connectToServer { NSError…
FisherMartyn
  • 826
  • 1
  • 8
  • 17
0
votes
0 answers

Port SSL Communcation from Windows to Mac

I have a TCP Server and Client for Windows, written in Delphi. I am trying to port them to Mac, but can't seem to be able to properly configure SSL. In Windows the application has the method set to SSLv2 and a self signed openssl certificate file…
Nostradamus
  • 668
  • 6
  • 18
0
votes
0 answers

C# Socket Exception while creating async server for IPv4 private network

Ok this is kind of frustrating, from past few hours i was struggling with .Net Socket based application, in short this application acts a async server, and this server can be instantiated in 2 ways :- First way is to start the server is by getting…
Saubar
  • 135
  • 11