Questions tagged as 'socket'

1
answer

Problems with objects using sockets in java

I'm trying to pass the person object that was instantiated on the server to the client. But I can not. Below are the classes I've used: Server public class ServidorTCPBasico { public static void main(String[] args) { try { Se...
asked by 28.06.2016 / 16:43
1
answer

How do I know if the customer sent me something?

I made this code here following some tutorials on the internet. buttonAbrirConexão.Enabled = false; TcpListener servidor = new TcpListener(6554); servidor.Start(); while(true) { Thread.Sleep(2500); if(servidor.Pending()) { Mess...
asked by 28.08.2016 / 02:39
1
answer

What if I want to send and receive a "package"?

I ran a mini server test online and everything worked fine, the problem is that I want to send integers, booleans, strings, etc ... So far I only know how to send string, how to take the first steps? For now I'm using this: string dataFromServ...
asked by 28.08.2016 / 18:01
1
answer

Java: Problems with wait () and notify ()

Good evening, I'm doing a java project where I make connections between the client and a server. This client sends messages to another recipient. It is up to the Server to handle this message, forwarding it to the right Client. I am an error:...
asked by 05.12.2015 / 22:50
3
answers

How do I know which servers are waiting for connection on my network?

I'm developing a multiplayer (LAN) game with Sockets in JAVA. Players will start a lobby, and in that lobby there will be a list of servers (game rooms) waiting for connections. How can I list the servers on my network so players can connect?...
asked by 28.09.2015 / 20:02
1
answer

Storing SOCKET in a vector

I am working on a project developed in c / c ++ where a server handles several connections, I do not have much experience in this language, I would like to know how to proceed to add a SOCKET to a vector, / p>     
asked by 13.05.2015 / 18:35
1
answer

When I run the client, does the server shut down, why?

As soon as I run a Client, the Server connection terminates. The while block of the Attendant Class run () method does not execute. I ran a test and the running attribute is set to true. I can not figure out what's going on. Server class. p...
asked by 26.08.2014 / 00:14
1
answer

Proxy configuration in java on Linux system

I have proxy configuration on my network, and to run run the java I need to set the proxy properties on it, this in linux. In Windows it is not necessary, it is working perfectly.    "Exception in thread" main "java.net.UnknownHostExceptio...
asked by 26.09.2017 / 14:54
1
answer

Get exception name in Python where it is not specific

I'm using the Exception exception, but I wanted to be more specific and get the correct exception, without the code the treatment returns me the following message:    F: \ Bel \ Desktop \ tpredes> guiCliente.py Exception in Tkinter cal...
asked by 30.08.2016 / 15:07
1
answer

Report ASP.NET with Windows Forms

The problem is the following, I work with SAT-CFe and the communication with this is done via USB, which makes it impossible for my web system to communicate directly with it. What I did, I created a desktop application that does this communi...
asked by 30.09.2016 / 21:05