client-server

Understanding of back end file seeding to provide fast client downloads

强颜欢笑 提交于 2020-01-04 04:05:02
问题 The theme of my project is to implement a distributed server which provides several clients several files to download. The server is hosting several files and we want that the server should implement some best algorithms to quickly let the clients download data from it. My idea of implementation of project: Like the client generally downloads the file using some download managers, similarly there must exist some server side managers/codes/algorithms which upload/seed the file quickly to let

Understanding of back end file seeding to provide fast client downloads

笑着哭i 提交于 2020-01-04 04:04:24
问题 The theme of my project is to implement a distributed server which provides several clients several files to download. The server is hosting several files and we want that the server should implement some best algorithms to quickly let the clients download data from it. My idea of implementation of project: Like the client generally downloads the file using some download managers, similarly there must exist some server side managers/codes/algorithms which upload/seed the file quickly to let

RPC Framework in C++ utilizing ZeroMQ

那年仲夏 提交于 2020-01-03 19:01:30
问题 I need to write a client-server application in C++ using ZeroMQ push-pull socket pattern. The client has to make RPC calls to the functions specified in the server interface. I wonder if there is an open source and commercially usable library/framework for this purpose primarily in C++. I made some googling and there seem to be things written in python but I prefer something in C++ that comes handy with ZeroMQ if possible. Any suggestion/guidance is appreciated. Thanks. 回答1: Google protobuf

How to write Client-Server application and implement simple protocol in Qt

♀尐吖头ヾ 提交于 2020-01-03 13:01:37
问题 Maybe this is stupid question, actually it's appeal, or Qt is just to complicated for me. Here's the thing: I'm used to java when writing client-server application, and it's very simple. I would like to do same things in C++ (I'm very familiar with C++ itself), and I choose to learn Qt. I tried to write some applications in qt, but with partial success. First thing that bothers me is signals and slots. I know how to use them in GUI programming but it confuses me with networking. And there's

Support both SSL and non-SSL on the same server port

左心房为你撑大大i 提交于 2020-01-03 05:06:08
问题 I've a plan to add the encryption to my server/client communication by using OpenSSL. But I want to let the user choose if they want to use the SSL channel to communicate or not. The easiest way is just create 2 socket and bind them to a different port, but I want the server to serve the service on only one port. Is there anyway to open the server side's SSL socket that support both SSL and non-SSL communication regarding the client incoming connection? P.S. I use OpenSSL lib for my c++ code.

connecting to an IP address instead of localhost?

风格不统一 提交于 2020-01-03 03:29:30
问题 this is my second go at this, I've written a server application as below which outputs whatever the client sends. I have one server.exe version where it listens to anything using INADDR_ANY , Having done that I can use my client and connect to the server if I specify the client connect to localhost (Which all works fine). but if I use my own IP address instead of localhost for the client, I cannot connect to the server?. Shouldn't I be able to connect to the server this way?. I used another

How to validate self-signed certification

一个人想着一个人 提交于 2020-01-02 08:43:09
问题 i will provide you with my question clearly so you can answer me I have a client-server (socket) connection that i secured using SslStream and as i know using ssl makes me sure that my client will only connect to my server And to do that i must add a function to my client to validate the server certification and make sure that the server is the real one (my server) but i really don't get how could i validate my self-signed certification and want your help Regards, and my thanks in advance 回答1

How to validate self-signed certification

大城市里の小女人 提交于 2020-01-02 08:41:24
问题 i will provide you with my question clearly so you can answer me I have a client-server (socket) connection that i secured using SslStream and as i know using ssl makes me sure that my client will only connect to my server And to do that i must add a function to my client to validate the server certification and make sure that the server is the real one (my server) but i really don't get how could i validate my self-signed certification and want your help Regards, and my thanks in advance 回答1

Mobile network perfomance: What would be the most efficient data-type to transfer data from a webserver to a mobilephone?

妖精的绣舞 提交于 2020-01-02 07:00:58
问题 Q: What kind of data-type would be the most efficient/fastest to use when transfering data between a webserver(/other?) and a mobile phone, ie ios/android/other? JSON ? XML ? HTML ? Q: What kind of serverside technologies should be used? php + mysql ? Q: What kind of API should be used? Restfull? RPC ? Any thoughs ? 回答1: A1. Binary. Have you looked at Google Protobuffers? this is an efficient binary formatter with cross-platform capabilities (java, c#, python, objective c, PhP. There's even a

How do multiple clients connect simultaneously to one port, say 80, on a server? [duplicate]

旧街凉风 提交于 2020-01-01 18:21:30
问题 This question already has answers here : Does the port change when a server accepts a TCP connection? (3 answers) Closed last year . I understand the basics of how ports work. However, what I don't get is how multiple clients can simultaneously connect to say port 80. I know each client has a unique (for their machine) port. Does the server reply back from an available port to the client, and simply state the reply came from 80? How does this work? 回答1: First off, a "port" is just a number.