client-server

How send/receive frames of a live webcam? [ SOLVED ]

只愿长相守 提交于 2019-12-08 11:36:55
问题 I'm trying implement a example of Client > Server where the Client must be able to send frames of a live webcam. In my tests the Client is sending fine, but on Server side i'm not receiving any frame, only the total of bytes sent and the lines after of: if Stream.Size = stSize then never are executed. Someone know why this is happening? probably because is a big flux of data being received? This is my code: Server: unit Server; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils,

ASP.NET: Implementing a client server solution (for chats, iterative fights ect)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 11:26:01
问题 I have a quite advanced application, where I need to add some client/server functionality. Some examples of functionalities is: Chat One vs. one fight in a browser game Draw people on a map I am creating this application in ASP.NET and AJAX. I do not use Silverlight/Java Applet/Flash or anything else. If possible, I do not want to change this for other reasons. I thought about creating some kind of game server, and then communicating either web services or TCP protocol: But I have NO idea if

SQLNonTransientConnectionException - new Connection Profile

醉酒当歌 提交于 2019-12-08 11:09:08
问题 I want to make a super simple console application that works over a network. I'm using a simple maven project for which I have added the derbyclient dependency(There is no usefull code in the project at this stage). I also have tomcat 8 running. When I try to get a connection profile thru the data source explorer I get an error. Pictures for clarity: I've searched for the solution and got a few hits, but they weren't quite helpful. I know the question might be dumb, but I'm new to this stuff,

GWT - split client and server to different machines

梦想与她 提交于 2019-12-08 10:48:42
问题 Our lab has a single machine that is open to http connections from outside. However, this machine is quite weak (little memory, slow CPU). We have other machines that are much stronger, but they are behind a firewall and cannot be accessed from outside the lab. I am writing a GWT app whose server is very demanding. Is it possible to install the server on a strong computer, and the client on the weak compuer, and have them connect using RPC? I assume it requires some changes in the web.xml

Passing Object over Server to client

邮差的信 提交于 2019-12-08 10:28:45
问题 I am trying to create a client server application in linux. Server is supposed to send one object to all connected clients. Here is the code for it. In this When server send object, everything remains ok at server side but Segmentation fault occurs on client server immediately it receive it. Server: #include "Question.h" #include <iostream> #include <string.h> using namespace std; #include<sys/socket.h> #include<sys/types.h> #include<stdio.h> #include<arpa/inet.h> #include<time.h> #include

POST File with HttpURLConnection to PHP

纵饮孤独 提交于 2019-12-08 09:42:10
问题 I already referred this link Sending files using POST with HttpURLConnection Using the following code, I'm trying to POST a file to local PHP server. It always return file size 0 in my PHP file public class FileUpload2 { String CRLF = "\r\n"; /** * @param args * @throws Exception */ public static void main(String[] args) throws Exception { new FileUpload2().put("http://localhost/test/test.php"); } public void put(String targetURL) throws Exception { String BOUNDRY = "=========================

What do I need to know before working on an IM application?

旧街凉风 提交于 2019-12-08 09:33:23
问题 I'm looking into building an IM-type application using Java stack (for the server at least). I'd be interested to see any information/advice on how applications like Skype/AIM/MSN work, as well as know any technologies/APIs that might be relevant. Without giving away the idea itself, it's perhaps more akin to Google Wave than Skype, but information useful for either is very welcome. Specific points I have already thought of include: Server Vs P2P... for reasons of logging my system will

Server doesn't receive message in client-server application

被刻印的时光 ゝ 提交于 2019-12-08 09:12:01
问题 In my client-server application, the client sends message to Server and the Server should display the message. But in my case, the client is only able to send but the server can't achieve it. I have tried with different port numbers (i.e. 8080, 8000, 4444 etc). It seems that the socket can set up the connection, but I really don't know why the server can't read the input from client. This is my complete project (I have ignored the main classes for both application here, because I have nothing

Indy 10 + Delphi Client-Server App Eats up all CPU

丶灬走出姿态 提交于 2019-12-08 07:31:13
问题 I wrote a small client-server application that runs on two or more distinct machines for reboot / shutdown purposes. Since I'm relatively new to client-server apps, I took the About Delphi approach here. Shortly put, my server app awaits connections on port 7676, adds the client to a client list then does nothing (will implement the shutdown and restart procedures later). However, even if it's passive, it eats up to 90% of CPU with only two clients connected. Here's the client code, made up

C sockets: why is my server appending extra characters in the end?

穿精又带淫゛_ 提交于 2019-12-08 05:20:44
问题 I am writing a simple server/client socket in C. The client asks the user to input a message and the server responds by repeating the same. The problem is when I send a message from the client the server responds back by appending extra character. How do I fix this. This is my Client code while(1) { bzero(buffer, BUFSIZE); printf("Enter Message: "); scanf("%s", buffer); //send some data if(send(socket_fd, buffer, strlen(buffer), 0) <0) { fprintf(stderr,"sending failed\n"); return 1; } /