Questions tagged as 'socket'

1
answer

Bidirectional Communication - How to get status?

Library that I use: link Following code: Server: static async Task Run() { var listenPort = 11000; var listener = new TcpSocketListener(); listener.ConnectionReceived += async (sender, args) => { var client...
asked by 19.03.2018 / 20:59
1
answer

NullPointerException when connecting to server

I'm doing a server / client Java program. When I start the server class I get the error    Exception in thread "Thread-0" java.lang.NullPointerException I'll leave the code below to help me solve the problem: public class Servidor imple...
asked by 14.12.2015 / 14:08
1
answer

Java - Chat async

I want to implement a java chat, which works asynchronously, and wanted to know the best architecture to do that. I was able to do a public chat using sockets (Netty), but I came up with the following problem: The server sends the message...
asked by 03.08.2015 / 00:18
1
answer

How to read an XML file from the server

To create a java desktop application that accesses the internet and le an xml file. Well, that's the initial propolis. I am using the Socket class to do communication between the server and the application. But now I do not know how to read XML....
asked by 02.06.2015 / 17:36
1
answer

Doubts about security in Sockets SSL communication

I wonder if this communication between sockets is secure. From this code can I exchange information securely? I'm also sure to understand how the SSLContext class works (it's not in that code). Server import java.io.BufferedReader; imp...
asked by 13.08.2015 / 03:33
1
answer

Socket in C - Connection test between client and server (Linux)

I'm working with sockets in embedded system communication. I create a thread to handle the connection, however as my system uses Wi-Fi connection I need to perform some sort of connection test before sending or receiving, in case this connection...
asked by 22.04.2015 / 23:50
1
answer

"SIGSEGV" error when receiving a large data packet

Hello, I'm experiencing a "SIGSEGV" error when receiving a large data packet with the recv function of the library using C language on a Posix-UNIX system, if any soul can help me one thank you. buffer: char ls_buffer_PPouAUT[2048] = {0...
asked by 21.07.2016 / 14:17
1
answer

IPv6 server accepting IPv4 connections

I wrote a server in C using the UNIX sockets API for some tests and I ended up with a "weird" problem: The server is blocking connections > IPv4 and it was programmed to only accept IPv6 connections. Follow the code and a few details b...
asked by 10.11.2018 / 18:11
1
answer

Calculator using Socket in Java

I'm doing a college job and got some information from the Internet, the teacher asked a client to send 2 values and a basic operation, the server should take this and return the total. It turns out that the client only takes the variables of him...
asked by 06.12.2014 / 15:36
0
answers

Difficulty in running

I'm doing a program Served on Socket Python using interface Tkinter , I can not exchange information from the scripts, to enter into the Tkinter GUI. when I execute both importing the socket I have no way to execute the rest...
asked by 08.01.2018 / 19:53