client

WCF server/client callbacks, reply from client to server

元气小坏坏 提交于 2019-12-12 03:42:40
问题 In my client/server application, I want count other value in everyone client. I made application using callbacks, but something is wrong. I get Exception, when I want call method pipeproxy.polacz(S); Which get value to server and write in server console now. Exception is: This operation would deadlock because the reply cannot be received until the current Message completes processing. If you want to allow out-of-order message processing, specify ConcurrencyMode of Reentrant or Multiple on

Elasticsearch basic client connection

怎甘沉沦 提交于 2019-12-12 03:35:42
问题 I have setup a SSH tunnel on port 9300 to my remote elasticsearch server. When running this basic example to get the example data from the elasticsearch instance I get a " org.elasticsearch.client.transport.NoNodeAvailableException: No node available " Settings settings = ImmutableSettings.settingsBuilder() .build(); Client client = new TransportClient(settings).addTransportAddress( new InetSocketTransportAddress(InetAddress.getLocalHost().getHostName(), 9300)); GetResponse getResponse =

How to use a file from a client in ASP.net?

懵懂的女人 提交于 2019-12-12 02:54:02
问题 I know the server cant access the hard drive or directories of a client, but why when I Hardcode the directory into my application can I access the file and upload it to a SQL database? Just a plain button <asp:LinkButton ID="btnImportData" runat="server" OnClick="btnImportData_Click">Import Spreadsheet</asp:LinkButton> then the Code behind protected void btnImportData_Click(object sender, EventArgs e) { dbConn.uploadToExcel(@"C:\Users\spadmin\Desktop\ABI Employee List.xlsx"); } Then I can

sending doubles via TCP between Boost ASIO server and Java client

对着背影说爱祢 提交于 2019-12-12 02:53:30
问题 I am trying to set up a simple Boost ASIO server with a single Java client. I am able to send and successfully receive strings between the two. However, when I try to send double values, only garbage comes out on the other end. Below is stand alone code that shows my basic setup (with a C++ Boost ASIO server and a Java client). When they are run, they do the following four sequential tasks: The client sends a string to the server, which is successfully received and printed out. The server

How do I reconnect a client when server is down in Java?

这一生的挚爱 提交于 2019-12-12 02:36:39
问题 I have a server that accepts sockets from whenever a client connects. I want to be able to shutdown my local server and let my client try to reconnect for about 5 times, and if I start my server the client should indicate that you have reconnected again. I understand somewhat that this is done in the try{} catch(IOException){Here goes the code for handleing reconnect} I want to use the same socket that I first used to connect. I don't want to create a new Client cause then I have to enter

Lua TCP/IP simple Client Server connection

泪湿孤枕 提交于 2019-12-12 02:26:23
问题 I'm looking for a simple client-server connection in Lua. Due to bad online documentation I'm quite helpless. I found two threads here in stackoverflow but they didn't help much. Here is what I have so far: Client: local socket = require("socket") local host, port = "192.168.100.47", 51515 local tcp = assert(socket.tcp()) tcp:connect(host, port); tcp:send("hello world\n"); while true do local s, status, partial = tcp:receive() print(s or partial) if status == "closed" then break end end tcp

java.io.OptionalDataException in run method?

放肆的年华 提交于 2019-12-12 02:22:41
问题 Why I receive java.io.OptionalDataException in the run method? ObjectInputStream reads items & users couple times, then it crashes with OptionalDataException . I think it relates EOFException . It prints a message when new socket created It print the value of objectInputStream It also prints the message STACK TRACE + MESSAGES New socket created New socket created New socket created Here is ObjectInputStream :java.io.ObjectInputStream@1430b5c Here is message :REA:ITEM: Here is

JSON RPC Client Go

南楼画角 提交于 2019-12-12 01:49:43
问题 I have a python server serving response through JSON-RPC. Here is a sample response from the server. '{"jsonrpc": "2.0", "result": "Peer 1: local 10.10.0.2 remote 10.10.0.1 state CONNECT\\nPeer 2: local 10.10.0.18 remote 10.10.0.17 state ESTABLISHED\\nPeer 3: local 10.10.0.10 remote 10.10.0.9 state ESTABLISHED", "id": "839732f9-cf36-46ff-8b9b-6120250d9ce5"}' Here is the request I need to send to the server: '{"method":"echo","jsonrpc":"2.0","params":["test_params"],"id":"839732f9-cf36-46ff

java.rmi.ConnectException: Connection refused to host: 10.0.0.57 [duplicate]

隐身守侯 提交于 2019-12-12 01:25:42
问题 This question already has answers here : Java RMI : connection refused (2 answers) Closed last year . Why I continue to receive following error? I tried to fix a problem by following posts on similar issue, however nothing seems to work. java.rmi.ConnectException: Connection refused to host: 10.0.0.57; nested exception is: java.net.ConnectException: Operation timed out at ..... javax.rmi.ssl.SslRMIClientSocketFactory.createSocket(SslRMIClientSocketFactory.java:120) at sun.rmi.transport.tcp

Multiple jquery Selectors

孤者浪人 提交于 2019-12-12 00:37:30
问题 Thanks to karim79 i am able to click on the ImageButton and apply the Jquery highlight effect to a different div $("#btnFavorite").click(function() { // selector for element to highlight $("#theDiv").effect("highlight", {}, 3000); }); Now i would like to extend the question as follows. I add the ImageButtons to the webpage dynamically, and i would like to apply the effect on the div for every ImageButton click. <asp:ListView ID="ListView1" runat="server"> <layouttemplate> <asp:PlaceHolder id=