client-server

Java client and PHP server with sockets

拜拜、爱过 提交于 2019-12-24 03:12:25
问题 I have been searching for hours now and just need some guidance about my situation. I want to create a simple client/server program. I was originally planning on doing them both in java, but I bought a shared hosting account from godaddy a couple of weeks ago and they have disabled java for new accounts. So, I guess my next best choice, and in a language that I'm somewhat familiar with, is PHP. I have been following the tutorial on sockets from the java site, and have the java client made. I

Secured Client-Side script

核能气质少年 提交于 2019-12-24 02:00:55
问题 I have got a particular requirement where some critical algorithms have to be handled in the client-side script and it got to be secured. Using javascript will just expose the algorithm. I am currently evaluating ways to secure the algorithm on the client script. Appreciate any suggestions and alternative approaches. One option I am thinking about is to download a small applet to the local PC, get the calculations done in it and update the results back. Before deciding on this, I want to know

Light Client using Windows Socket and Excel VBA

青春壹個敷衍的年華 提交于 2019-12-24 01:29:12
问题 I have an excel workbook containing a lot of different data. On the other side, I have a server in Java that does a lot of computing work. I would need to connect my XL Workbook this server using a TCP protocol and send data from Excel to Java What is the easiest way to do that ? I've heard that winsocks control can be used with VBA. Where can I download the library to do that (is there an official MS library ? => a lot of guy are talking of MSWINSCK.OCX, but I can't find that anywhere on the

How to share domain classes and business rules between client and server like in RIA Services by writing them only once

让人想犯罪 __ 提交于 2019-12-24 01:01:46
问题 In an ASP.NET - WCF application I want to share domain classes and business rules between client and server without rewriting them, just like in Silverlight RIA Services. Collecting these in one assembly and referencing this from client and server can solve the problem, but how: by adding service refence to client will generate these classes in client proxy, without any behaviour (methods). How can I achive this? NOTE: RIA Services will not be used. EDIT: After some Googling I came across

How to handle google analytics cookie for ex _ga in jmeter

扶醉桌前 提交于 2019-12-24 00:33:01
问题 There r some cookies like _ga, jsessionid etc which are part of jmeter recording script but when i replay script these cookies are not handled by cookie manager. How can i send these values in jmeter request . Also i m unable to corelate these cookies . I guess client side js is responsible for sending these cookies. I m completely blocked. Please help. 回答1: JMeter's HTTP Cookie Manager stores valid cookies which are coming in Set-Cookie response header, the invalid ones are being discarded.

How to show a progress bar while generating a PDF file for download, without IE “download” warnings

做~自己de王妃 提交于 2019-12-23 13:05:21
问题 I've got a communication between client and server. The process is simple: I'm making an AJAX POST request to a controller which generates a pdf in the file system On success of the above request a form GET request is made to get the pdf back and the standard browser "save or open" dialog box opens up The reason I'm having a two step process is because I need to have a progress bar while the pdf is being generated. The reason of the second request being a form submit rather than part of the

how to implement FTP using java?

半腔热情 提交于 2019-12-23 10:28:32
问题 I am working with FTP.......i have to embedd a msg to a image file at client side and i have to send it to the server....on the server side i have to retrieve the image file and then i will retrieve the message. I have completed the embedding the message and retrieve the message using cryptography and steganography techniques. I am loking for how can i transfer that file from client to server.....i have to work with FTP.....how can use FTP successfully to transfer a file from client to server

python - Multiple tornado clients simultaneously connecting to tornado server

浪子不回头ぞ 提交于 2019-12-23 06:14:47
问题 I have my Tornado client continuously listening to my Tornado server in a loop, as it is mentioned here - http://tornadoweb.org/en/stable/websocket.html#client-side-support. It looks like this: import tornado.websocket from tornado import gen @gen.coroutine def test(): client = yield tornado.websocket.websocket_connect("ws://localhost:9999/ws") client.write_message("Hello") while True: msg = yield client.read_message() if msg is None: break print msg client.close() if __name__ == "__main__":

UDP with sequence numbers

六月ゝ 毕业季﹏ 提交于 2019-12-23 04:40:45
问题 I am trying to implement a Reliable UDP protocol for a class assignment in Java. I have managed to add the acknowledgments to every datagram packet that is received, but I am having trouble implementing Sequence Numbers in the datagram packets that I am sending. Can anyone suggest an easy method to implement this? @EJP I have tried implementing what you just suggested. This is my code till now (its still very raw - i was using hit and try method to implement it) Server side public class

Java Client/Server turn based help

痞子三分冷 提交于 2019-12-23 03:34:14
问题 I am trying to make a client/server turn based game. I want this to be a 2 player game. I will be using a Java applet as the client so that people can play online through a browser. What I know so far is that I can create a server that accepts all incoming connections and create a thread to handle clients that connect. I can also write the client that will connect to the server. What I don't know is how to get two separate clients to interact with each other. Applets cannot talk to each other