client

Closing an App Script sidebar containing a form

自闭症网瘾萝莉.ら 提交于 2019-12-11 11:48:37
问题 I have a Google Apps Script running a html-form in the sidebar. The form-answers are used to generate documents. My problem is that I want to close the sidebar when the program has completed (after clicking Submit). <form id="myForm"> <input name="name" type="text"/> <input type="button" value="Submit" onclick="google.script.run.withFailureHandler(fail). withSuccessHandler(google.script.host.close()). doStuff(this.parentNode)"/> </form> The program runs as intended if I remove the

Bubble sort dynamically created struct array in c

隐身守侯 提交于 2019-12-11 11:15:35
问题 Really new here so sorry for any further mistakes.. I've got some new school project (Learning C), what I must to is to connect to the server using sockets than download all code lines from the server. After that I need to sort the lines so they be in order, where I got is on the sort.. well I already downloaded the code lines saved them in struct array but now my bubble sort shows some error to me and I don't know what's the problem.. thx for any help. typedef struct DATA{ char* buf; }DATA;

How to trigger to responses from a server using python socket programming

北城以北 提交于 2019-12-11 10:36:32
问题 I'm trying to send a message (a string) to a server (say server A) as a response to a particular string message received from the server. I've used a client connection to send messages to the server. I've created my own server (say server B) using socket module to receive the messages from the the above mentioned server. If a certain message is received, to client should send a message to that server A. I used threads so that both my client and server can work concurrently. Here's my client

WCF REST Client Exception

折月煮酒 提交于 2019-12-11 10:30:00
问题 I have the following WCF client code: string add = String.Format("http://localhost:{0}/ServiceRequestRest",accessPort); var cf = new ChannelFactory<IServiceRequestRest>(new WebHttpBinding(), add); cf.Endpoint.Behaviors.Add(new WebHttpBehavior()); busService = cf.CreateChannel(); busService.DoMyStuff("hello",null); When I have "first chance exception break" activated, that last line of code throws a series of exceptions. The first exception is this: System.InvalidOperationException occurred

How can I use multi-threading to allow multiple clients on to a server? [duplicate]

心不动则不痛 提交于 2019-12-11 09:54:39
问题 This question already has answers here : Creating a socket server which allows multiple connections via threads and Java (2 answers) Closed 4 years ago . I have two java classes, one for a server and one for a client. The connection is established between both of them using a regular socket. How can I allow many instances of the client class to connect to the server simultaneously using multi-threading? I tried searching on SO but I couldn't really find any concise/clear answers. Here are my

How to send file from Client to Server and save it with same filename?

五迷三道 提交于 2019-12-11 08:48:17
问题 I'm trying to send file from client to server in python. It is sending without any problem but I want to save that received file with same file name. I'm not getting idea how to save that file with same file name as it is sent from Client to Server.The code I've wrote for this is : Client Code import socket, os, shutil from stat import ST_SIZE HOST=raw_input("Please enter IP-address : ") PORT=int(raw_input("Please enter PORT Number : ")) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s

Visual Studio “Add Service Reference” - not gets all service settings

半城伤御伤魂 提交于 2019-12-11 07:45:24
问题 my purpose is to ensure that - when someone clicks on "Add Service Reference" in his own Visual Studio, and he adds references to my WCF service - he receives not the default settings, but the settings of the service. In particular, there is a property of the "binding" class that interests me: useDefaultWebProxy, I need it setted to "false". I tried this, but with no results: In the Web.config file of the service: <system.serviceModel> <bindings> <basicHttpBinding> <binding name="NewBinding0"

Python client sockets connecting on the same server socket port

强颜欢笑 提交于 2019-12-11 07:27:08
问题 I am working for the first time on sockets with python. I need to connect more than a client socket to the same server socket. To do this I used the the following code: import socket import time import random from threading import Thread import thread import subprocess, signal, os class ServerObject: def __init__(self, port): self.socket = '' self.host = '' self.port = port self.conn = '' self.data = '' print "Server port is: ", self.port def openSocketConnectionAsServer(self): self.socket =

Can a Flex client app connect to BlazeDS running on a different server?

北慕城南 提交于 2019-12-11 07:17:16
问题 As far as In understand the Flex technology, a Flex client connects to a Flex server to retrieve business information. Is this the only allowed connection for the client, back to the originating server? Or can a Flex client also open a secondary connection to a different server wich runs BlazeDS for message exchange? (This might offer an option for load balancing and cross-platform development). Update : thanks for the answer! I have found this page which links to the Cross-domain policy file

SoftLayer (multiple) client responding with errors after API upgrade

落爺英雄遲暮 提交于 2019-12-11 07:08:32
问题 I am having issues connecting to the SoftLayer Product/Orders APIs. Endpoints: Product_Packages is dropping the connection, Product_Place_Orders is returning invalid auth. Hardware and VirtualGuests are accepting the credentials and returning the information I expect. Either: Invalid credentials Connection reset by peer I am, however, able to use the same credentials to see what machines and vlans are in the account. Looking into this more, curl works, another client I have works still,