client-server

Netty Handler not called

感情迁移 提交于 2019-12-10 13:38:49
问题 I'm trying to get into Netty using a simple server-client application (code see below). I'm struggling with two issues: the ConfigServerHandler resp. ConfigClientHandler is called correctly. But the FeedbackServerHandler resp. FeedbackClientHandler is never called. Why? According to the documentation the Handlers should be called one after another. I'd like to have several handlers. Each of these handlers is interested in only some of the messages that are send by the other side (e.g. send by

Pushing messages to clients from a server-side application?

喜欢而已 提交于 2019-12-10 13:16:48
问题 I have a javascript-based client that is currently polling a .NET web service for new content. While polling works...I'm not happy with this approach because I'm using system resources and creating overhead when there aren't any changes to receive. My question is how do I notify my client(s) that there is new content for it to display? I am open to on any additional technologies I would have to implement this solution with. 回答1: First of all, polling is the way to go. You could do it with

Help required: zip files streaming

我与影子孤独终老i 提交于 2019-12-10 12:22:58
问题 i have problem in sending zip file in network.. all other formats i am able to send except .zip.. i tried a lot i dont no how to do this.. the code i have written at client side to upload file, this is suggested by microsoft here is the link i am able to create zip file, if i try to open it says corrupted..size of the file also varying lot. here is code public void UploadFile(string localFile, string uploadUrl) { HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uploadUrl); req.Method =

How to achieve interrupt-driven communication from server to client with servlets?

梦想的初衷 提交于 2019-12-10 12:19:10
问题 we wrote in C++ a screen sharing application based on sending screenshots. It works by establishing a TCP connection btw the server and client, where the server forwards every new screenshot received for a user through the connection, and this is popped-up by the client. Now, we are trying to host this on google app engine, and therefore need 'servlet'-ize and 'sandbox' the server code, so to implement this forwarding through HTTP requests. I immagine the following: 1. Post request with the

Client to Client communication using select() function in c

依然范特西╮ 提交于 2019-12-10 11:40:41
问题 I was trying to implement a client to client communication with a server in between them. The function of the server is that when a client suppose Client A sends a message to the server, the server should forward that message to the other client, Client B. Same way when the Client B sends a message to the server it should be forwarded to Client A. This programs involves only two clients. The error I get when I execute the code is that it says: Socket Operation on Non-socket I get this error

Air 2 ServerSocket Crossdomain problem

情到浓时终转凉″ 提交于 2019-12-10 10:26:21
问题 I wish to make an Air 2 Server via ServerSocket class (you will find below code an example about it). Constraints : Server must be in Air Client must be displayed through web browser Clients are displayed with an Web browser so when a client want to establish a connection to Air server, Flash sends a crossdomain request through socket and server sends it back but nothing hapen then. The As3Doc specifies that when flash sends crossdomain request, server must to send it back, then Flash closes

Authentication between client-side JavaScript application and Server Side HTTP API?

懵懂的女人 提交于 2019-12-10 10:14:40
问题 I have built some server-side APIs work through HTTP, for my client-side applications only. So, is it possible to authenticate applications between client-side and server-side; and how to? 回答1: There are two options: Sessions HTTP authentication The idea behind session is that the server sends a hard to guess value to the client and the client subsequently passes that value back to the server on each request. That way, the server knows from which client the request likely comes from and can

ZMQ Pattern Dealer/Router HeartBeating

十年热恋 提交于 2019-12-10 10:03:49
问题 I have a Dealer socket in client side, who is connected to Router socket in server side. I often see Heartbeating mechanism : the server regularly send message to the client in order that client knows if he is correctly connect to the server, so the client can reconnect if he doesn't received message for some times. For example the Paranoid Pirate pattern here : http://zguide.zeromq.org/page:chapter4 But after some tests : if the client loose the connection to the server for a moment and find

Simple Asynchronous Multi-Threaded HTTP request library for C++ [closed]

被刻印的时光 ゝ 提交于 2019-12-10 09:56:20
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'll be quick and honest: I'm currently trying to write a client/server for an online game. Since I'm poor and limited on resources, I'll be testing the bare basics of the server using a PHP backend, with the eventual goal being to rebuild the server end in C++. I'm looking for a C++ library for Windows (XP and

Meteor JS : Client not getting data from Mongo DB

江枫思渺然 提交于 2019-12-10 06:58:17
问题 I have started learning MeteorJS and made a sample app. I have a collection in mongoDB and I am trying to see that collection in client Here is my server Code(file is in /libs) newColl=new Meteor.Collection("newColl"); if(Meteor.isServer){ Meteor.publish('newCollectionData', function(){ console.log(newColl.find().fetch()); return newColl.find(); }); } Here is My client Code(file is in /client) Meteor.subscribe("newCollectionData"); //console.log(newColl.find()); console.log(newColl.find()