client-server

How can I use ASP.NET to check if cookies are enabled without having a web page?

China☆狼群 提交于 2019-12-25 18:03:44
问题 I am working on a desktop application that automates numerous websites and processes the returned data. This application will be run on a server and the user will connect with remote desktop. The automation breaks when the server doesn't have cookies enabled, and instead of having the application stop working, I would like to check the server settings and tell the user why it isn't working. To do this, I decided to create an ASP.NET Web Service. I figured that the web service could store the

Fetch data from server to my application in j2me

感情迁移 提交于 2019-12-25 14:38:09
问题 I want to fetch data from server side to my application which is in j2me. The data to fetch from server is like sms, mms etc which are already stored in server. Do I need to use XML parsing for this. If yes the how can I use it? Please send me the code for it. If no then what should I use and help me through code. 回答1: You can use webservice to communicate between your server and your mobile client. The design would be like Also See Introduction to J2ME Web Services Understanding the Web

Suggestion on a replication scheme for my use-case?

烂漫一生 提交于 2019-12-25 13:09:24
问题 I am working on an application that runs on multiple clients that talk to one main MySQL database. Additionally, we have a web application that uses the same MySQL database. Due to latency issues, all clients will have to run their own local MySQL database which should be a copy of the main MySQL database. The web application remains to use the main MySQL database. The clients only read from table A, and write to table B. The web application writes both to tables A and B. How should I setup a

FIFO server program

≯℡__Kan透↙ 提交于 2019-12-25 10:02:08
问题 The above program i have typed in linux. It basically has to connect a client and server in separate terminals. But when i run them in the correct order, i.e Compile server -> run server Compile client - > run client The terminals just dont do anything. It doesnt even print the "Trying to connect" part of the first printf statement. What is the mistake here? EDIT I checked for return value of mkfifo as @parapura rajkumar said. But Still it remains the same. Here is my changed code for server.

FIFO server program

↘锁芯ラ 提交于 2019-12-25 10:00:11
问题 The above program i have typed in linux. It basically has to connect a client and server in separate terminals. But when i run them in the correct order, i.e Compile server -> run server Compile client - > run client The terminals just dont do anything. It doesnt even print the "Trying to connect" part of the first printf statement. What is the mistake here? EDIT I checked for return value of mkfifo as @parapura rajkumar said. But Still it remains the same. Here is my changed code for server.

SQLite over a network

坚强是说给别人听的谎言 提交于 2019-12-25 08:32:38
问题 I am creating a Python application that uses embedded SQLite databases. The programme creates the db files and they are on a shared network drive. At this point there will be no more than 5 computers on the network running the programme. My initial thought was to ask the user on startup if they are the server or client. If they are the server then they create the database. If they are the client they must find a server instance on the network. The one way I suppose is to send all db commands

Closing sockets connection

南楼画角 提交于 2019-12-25 07:48:18
问题 I have 2 threads running a chat program such that one is a server and the other is a client, everything works fine till i click the quit button. since the Socket of the Thread in which the Quit button was clicked get asynchronously closed while the other socket trying to read data, the reading socket in the /living thread gets disturbed by the closure and fires an error mssg, while exepcted to properly close its own socket too and die quietly. i need suggetions to over come this... this is

What is the use of Default Issuer and Default Key in Windows Azure Service Bus? Does the key need to be secured?

岁酱吖の 提交于 2019-12-25 06:24:27
问题 We have created a downloading client-service model application in which a WCF service is hosted on one of our servers and the client application is distributed among the partners. Partners are provided with unique pin using which they can authenticate themselves with the WCF service and can place requests for downloading to the WCF Service. The clients connect to the WCF Service through Windows Azure Service Bus within which we have created a namespace using which client applications can

Video file transfer from Android phone to server

做~自己de王妃 提交于 2019-12-25 05:32:21
问题 I'm writing a video processing Android application. The user of the application would take a video, and the application would send the video to the server for some frame by frame processing. The server would then send back a result to the application. What are the pros and cons of braking up the video into frames on the Android device before sending it to the server vs sending the video and then braking it up? What would be faster? If I brake it up into frames on the Android phone, should I

How to store the result of a stdout? [duplicate]

丶灬走出姿态 提交于 2019-12-25 05:21:10
问题 This question already has answers here : How to return a sdtout from a server to a client inside a string? (2 answers) Closed 2 years ago . I do a UNIX command to list all my files that ends with .svg like this 'getExistingFiles': function () { var list =""; child = exec_tool('cd /home/me/files/; ls *.svg', function (error, stdout, stderr) { list = stdout; console.log(typeof list); console.log("LIST:------------"); console.log(list); return list; if (error !== null) { console.log('exec error: