client-server

Send information between applications

|▌冷眼眸甩不掉的悲伤 提交于 2020-07-08 03:41:28
问题 Good day, I have a client application which sends to the server a lists of application the client opens. It particulary sends the file path, file name and hostname. My problem is the sent data should be serialize and deserialize when it is received in the server. I am new to C# so I have very little idea of Serialization. This is the client side private List<int> listedProcesses = new List<int>(); private void SendData() { String processID = ""; String processName = ""; String processPath = "

Transfer a HTML table (user input) to google sheets

眉间皱痕 提交于 2020-07-02 03:00:53
问题 i want to transfer some user input data from a html page to my google sheet with google´s app scripts. I can do that for single values but could not figure out a nice way to do that for a table. The table will be dynamically created by the user (fix number of columns and dynamic number of rows). Bellow is the code which shows the example for a single value and is missing a solution for the entire table. One idea was to iterate over the table and create a array of arrays with the table data

how to send messages between clients through server using grpc?

狂风中的少年 提交于 2020-06-27 17:38:06
问题 i am trying to create a program so clients are able to send messages to each other. So when a client sends a message, that message is sent to the server which sends it on to the recipient client. the problem im having is that there is no way for the server to send messages to a client without that client sending a message first so how can a client simply receive a message from another client through the server if its not sending anything first. this is my proto file: service Messenger { rpc

Python - Returning query result from server to client in Flask

做~自己de王妃 提交于 2020-06-27 15:25:19
问题 What I have I have a Client/Server in Flask. The client sends a query in JSON format to the server and the server creates a JSON file. There is another tool which takes this query, executes it on a db and writes the result to a results.txt file. The server periodically checks the 'results' directory for .txt files and if it finds a new file it extracts the result. For the periodic checking part I used APS. What I want to do Now I want to send this data (queryResult) which the server has

Asynchronous tasks. Which architecture? (Or pattern in zeroMQ)

霸气de小男生 提交于 2020-02-22 05:48:28
问题 I want one application on a Linux(Server) host to communicate with applications on Win7(Client) in a VM. Lib of choice is ZeroMQ. But how do I manage asynchronous tasks? Let me give an example: The application in the VM generates tasks in arbitrary intervals and sends them to the Linux box. This will process them but needs some time to answer. In this time the socket in REQ/REP pattern is blocked and incoming tasks from the WinApp can not be forwarded to the LinuxApp. How should I solve this?

How to convert from []byte to int in Go Programming

☆樱花仙子☆ 提交于 2020-02-16 18:45:24
问题 I need to create a client-server example over TCP. In the client side I read 2 numbers and I send them to the server. The problem I faced is that I can't convert from []byte to int , because the communication accept only data of type []byte . Is there any way to convert []byte to int or I can send int to the server? Some sample code will be really appreciated. Thanks. 回答1: (reposting this answer) You can use encoding/binary's ByteOrder to do this for 16, 32, 64 bit types Play package main

How to convert from []byte to int in Go Programming

北城余情 提交于 2020-02-16 18:43:24
问题 I need to create a client-server example over TCP. In the client side I read 2 numbers and I send them to the server. The problem I faced is that I can't convert from []byte to int , because the communication accept only data of type []byte . Is there any way to convert []byte to int or I can send int to the server? Some sample code will be really appreciated. Thanks. 回答1: (reposting this answer) You can use encoding/binary's ByteOrder to do this for 16, 32, 64 bit types Play package main

Server/Multiclient program wont send message to all clients

别等时光非礼了梦想. 提交于 2020-02-06 15:52:30
问题 I'm working on a program involving a multithreaded server, in which I want messages sent by clients to be echoed back to every client currently connected to the server. It doesn't exactly do this. I will send a message from a client to the server, and it will echo back to that same client. Not to the other client. Let's say, with one client I sequentially type "One" then "Two" then "Three". The exchange will be something like this: Client 1: "One" Echo from Server ON Client 1's console: "One"

Client use high port number

拥有回忆 提交于 2020-01-31 05:55:09
问题 Why does the client end of a connection use high port number(ephemeral ports) whereas the applications listen on typically small port numbers ? Thx in advans, Karthik Balaguru 回答1: Ports numbers under 1024 are called "registered", while those above (limit of 65,535) are called "unregistered". All these two terms mean is that ports under 1024 have standard services associated with them. IE: 53 for DNS, 80 for HTTP, 25 for SMTP, etc. Note they are associated - there is nothing to stop you from

how to read the response which is a sound file in python?

萝らか妹 提交于 2020-01-25 12:09:48
问题 I am sending a request to the server and server is sending a response back. But the response is in the form of sound file. working - I am sending the request, response is received on the terminal, so I am writing it to text but later how to convert that into a sound file (.wav). The response from the server is as shown below. The response as a text in the beginning and the binary in the middle and later text in the end. how to get a sound file out of it ? someone help me in this ? 来源: https:/