client-server

Using GZipStream for Client/Server Async Communication

荒凉一梦 提交于 2019-12-11 06:29:15
问题 I have Client/Server System (using Socket) with multiple clients and single server, which is sending xml datas every seconds on all clients. The XML datas are always in different size between 1 - 18000 characters and server needs to send these XML-Datas to all clients at the same time. Now I want to know, how to make the communication between the server and clients faster. Maybe I will ask more then one Question, but I am really stucked at this point and I can't continue anymore. Should I

MultiClient server - Java

廉价感情. 提交于 2019-12-11 05:28:51
问题 I have a program ready that acts as a client and another that acts as a server. I want to be able to send a message to the server, and the server will then forward the message to another client that is also connected to the server. So the the server is supposed to forward the message to the other client. How would i be able to do that, and what do I need to read up on? This is what i got now. Server.java package server; import java.net.*; import java.io.*; import javax.swing.*; public class

C# Receiving Packet in System.Sockets

纵饮孤独 提交于 2019-12-11 05:16:17
问题 In my Client Server Application i wondered how to make a packet and send it to the server via the Client Then on the server i recognize which packet is this and send the proper replay but suddenly i got across this topic and it make me worry if i may fall in this problem The Problem One of the most common beginner mistakes for people designing protocols for TCP/IP is that they assume that message boundaries are preserved. For example, they assume a single "Send" will result in a single

Message Application for Client Server

孤街浪徒 提交于 2019-12-11 05:08:53
问题 Hope you all are doing well. I want to create an application like passing messages between Client(Android App) and Server(PHP). There is many Clients and one Server. In my app I want to make following things: Send messages and images between two clients Client can send messages or images to server. Server can send messages or images to particular client I have think like i can send message using POST request and GET response using json. Is that perfect way or is there any suggestion from you?

How “kill” a Pthread?

落花浮王杯 提交于 2019-12-11 03:49:24
问题 I am learning Pthreads, and was wondering what is the best way to kill such an object. After looking for similar questions I was not able to find a "clear" answer but please feel free to point me to any relevant questions. I am working with a small client server application, where the server main's thread is listening on a socket for clients connections. Each time a client connects, the server create a new thread performing "infinite works" in a while true loop. Now I want to stop this loop

How to implement TCP connection pooling in java?

帅比萌擦擦* 提交于 2019-12-11 03:47:12
问题 Here, I managed to get a connection between a single server and single client but now my new hurdle is how to achieve a pool of TCP connections on client side in JAVA. I had gone through many sites but at the end no fruitful solution was found. Here the class which I had used for obtaining connection to a server public class TCPIPCommunicator { private final String MODULE="TCPIPCommunicator :"; //private DeviceEntity deviceEntity; private static InetAddress inetServer = null; private static

Unix Network Programming Clarification

半世苍凉 提交于 2019-12-11 03:45:51
问题 I was going through the classic book Unix Network Programming, when I stumbled upon this program (Section 6.8, page 179-180) #include "unp.h" int main(int argc, char **argv) { int i, maxi, maxfd, listenfd, connfd, sockfd; int nready, client[FD_SETSIZE]; ssize_t n; fd_set rset, allset; char buf[MAXLINE]; socklen_t clilen; struct sockaddr_in cliaddr, servaddr; listenfd = Socket(AF_INET, SOCK_STREAM, 0); bzero(&servaddr, sizeof(servaddr)); servaddr.sin_family = AF_INET; servaddr.sin_addr.s_addr

JAVA - receiving objects using sockets and threads not working

你离开我真会死。 提交于 2019-12-11 03:22:22
问题 I'm trying to get an object from the server, but it does not work. Relevant section from the server (By Debug I see that he is really sending the correct object): public static void main(String[] args){ launch(args); } public void start(Stage primaryStage) { BorderPane mainPane = new BorderPane(); mainPane.setStyle("-fx-border-color: black;"); mainPane.setPadding(new Insets(5,5,5,5)); GridPane gridPane = new GridPane(); gridPane.setPadding(new Insets(5,5,5,5)); gridPane.add(lblStatus,0,1);

client-server communication in Python

梦想的初衷 提交于 2019-12-11 03:17:08
问题 I have established a client-server communication. The problem is that I can't send more than one message and I tried to fix it and I don't know what's wrong. this is my code: **The server code and client code are run in two different python windows. server: import socket s = socket.socket() # Create a socket object host = socket.gethostname() # Get local machine name port = 12345 # Reserve a port for your service. s = socket.socket() s.bind((host, port)) # Bind to the port s.listen(5) # Now

Discussion - Client Server Application architecture

为君一笑 提交于 2019-12-11 03:11:43
问题 I want to develop a client-server based desktop application using .Net 4, C# and SQL Server. Please refer to the image for what i am thinking about. There will be a server application accessing windows service or web service. The client application will have Multiple Document Interface. Below are my points that what i am thinking about - The client application will use socket connectivity with server application so as to get authenticated from server, and also to track record of client