client-server

simplest possible POJO echo with netty

拈花ヽ惹草 提交于 2019-12-12 03:31:00
问题 How do I initiate an infinite loop between the client and server, to send and receive POJO PingPong objects between the client and server? When a connection is established, which seems to be happening, the client should send a PingPong , and the server should reply with a PingPong POJO as well. The client should (preferably) respond with another PingPong , creating an infinite loop. the server receives an object: BUILD SUCCESSFUL Total time: 2 seconds Jul 20, 2014 2:43:17 PM io.netty.handler

Performance testing of Thick client

自作多情 提交于 2019-12-12 02:58:26
问题 I have a thick client application to be tested. We need to downlod the jnlp file and then launch it, supply required credentials and click submit. It then launches the application. I'm newbie to performance testing and want to performance test this application. Which open source tool will be useful, which is the best tool for testing thick clients? 回答1: What do you mean by "Performance testing of Thick client"? If it is about how fast it launches, downloads or operates than you need to loop

Linux UDP Server unreachable from Window 7

﹥>﹥吖頭↗ 提交于 2019-12-12 02:54:55
问题 I have the following configuration for my experiment. Wifi(Belkin) router connected to Internet. Laptop with Windows 7 OS Laptop with Ubuntu OS. Experiment: When I connect both of my laptop to Wifi router it assigns DHCP IPs 192.168.2.2 to Linux & 192.168.2.3 to Win 7. Both of them can browse internet. I start a UDP server on my Linux machine with the following code. int main(int argc, char *argv[]) { int sd, rc, n, cliLen, flags; struct sockaddr_in cliAddr, servAddr; char msg[MAX_MSG]; /

Isolating client-side view from the server-side controller/model using DWR

。_饼干妹妹 提交于 2019-12-12 02:34:53
问题 I had a look at DWR for hosting remote client server communication. Is there a mechanism where I can connect an html file (physically present at an external client machine) to a POJO present (physically) at the server side? My intention is to let external clients change the view but give them access to the classes defined in dwr.xml. please let me know if my intentions are not clearly put up. 回答1: Thank you Michel, for your response. Okay, I did some research and found DWR Cross domain

Java Socket: Client-server communication is stuck with multi-threading if more than 1 client

时光怂恿深爱的人放手 提交于 2019-12-12 01:56:41
问题 Firstly, my code is just a demo of my multiplayer game (2 or more players can play simultaneously) to demonstrate my problem without any extra things. I have successfully implemented peer-to-peer (P2P) communication in my game. Later, I decided to add support for client/server communication (ie a central server which is also a player) in my game. It should be much easier than P2P. But strange! Unfortunately I'm facing the problem which I have no clue to solve it! Now here is the problem:

Why client/server mechanism (using socket's) doesn't work?

不羁岁月 提交于 2019-12-12 01:48:53
问题 I have free account on www.pythonanywhere.com. I have a server written on c++ some_space::socket_server::socket_server(unsigned int port): m_port(port), m_tcp_fd(0), m_udp_fd(0), m_newfd(0) { m_addr.sin_family = AF_INET; m_addr.sin_addr.s_addr = htonl(INADDR_ANY); m_addr.sin_port = htons(m_port); } void some_space::socket_server::set_port(unsigned int port) { assert(port != 0); m_port = port; } int some_space::socket_server::create_tcp_connection() { m_tcp_fd = socket(AF_INET, SOCK_STREAM, 0)

Boost-ASIO simple echo client-server cannot establish connection?

吃可爱长大的小学妹 提交于 2019-12-12 01:29:48
问题 I'm using BOOST-ASIO for a simple echo client-server (there is a separate link for the client and server). When I try to run the server I use this async_tcp_echo_server 4000 . For the client I use blocking_tcp_echo_client #.#.#.# 4000 (with #.#.#.# as the ip address). I'm on XP-SP3 with my computer connected to my wireless dsl modem using a usb card. After a few seconds on the client side I get this error: Exception: connect: A connection attempt failed because the connected party did not

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

Sending file from server to client (python)

回眸只為那壹抹淺笑 提交于 2019-12-12 01:05:42
问题 I'm currently writing a server-client application that need to transfer some file to work. I'm using this method: client: file_to_send = raw_input(">") try: f = open("./sent_files/" + file_to_send, "rb") except IOError, e: print ">error: ", e break data = xmlrpclib.Binary(f.read()) if s.receive_file(file_to_send, data): print ">file correctly sent" server: def receive_file(self, name, arg): with open("./sampletest/"+name, "wb") as handle: handle.write(arg.data) But how can I do the opposite

MultiClient / Server. Handle communications

妖精的绣舞 提交于 2019-12-12 01:04:49
问题 I am suffering with this codes since two days now. In fact I am developping an application which has a server side and the clients side. The server receives request from clients every seconds, treat the request by contacting the database and then send back the result to the client. I do such a way that if the client starts before the server, it will remain trying to connect to the server on the given port and the given host. 1. This is the server side: try { Client client = new Client(jTable1