Questions tagged as 'socket'

1
answer

C # ManualResetEvent

What does the ManualResetEvent connectDone serve in the code below? If I use it, when running the main thread hangs, as I am using this code inside the Unity3D (game engine) it locks the whole process and this can not occur. What is the real...
asked by 10.06.2014 / 17:47
1
answer

Socket operation on non-socket

I'm learning how to program sockets but I'm having problems when I want to exchange the messages between the client and the server, the two codes work as "should", but the problem is when sending a message and receive. client.cpp #include &...
asked by 01.10.2017 / 19:33
1
answer

Error sending files via Java Socket

Server.java package javaapplication48; import java.net.*; import java.io.*; public class Servidor { public static void main(String[] args) throws IOException { ServerSocket servidor = new ServerSocket(5656);...
asked by 15.09.2017 / 21:32
1
answer

How to save images to a server folder via sockets using python and opencv?

Hello, I'm new to programming and would like to know how to save images, (captured by opencv) in a folder created by the code inside the server, I know how to do this with the sockets but I have no idea how. the code below captures the face creat...
asked by 07.04.2017 / 18:05
2
answers

File Transfer Socket c #

I have the following situation, I need to transfer an xml from one application to another via the Socket network I mounted the client and server which I will post below, The file is transmitted without problems, but files with
asked by 30.05.2017 / 23:30
1
answer

Sockets Python disconnect client

I would like to have a specific client disconnected with a server command. from socket import * meuHost = '' minhaPort = 50007 sockobj = socket(AF_INET, SOCK_STREAM) sockobj.bind((meuHost, minhaPort)) sockobj.listen(5) while Tr...
asked by 03.01.2017 / 01:41
1
answer

Segmentation fault in client / server implementation

Hello, I'm implementing Game 21 (BlackJack) in C ++ in a Linux environment, in the course of execution it presents the error Segmentation fault, the problem is that I can not identify the generator of the error. The same one appears after the fi...
asked by 28.07.2016 / 02:29
1
answer

Tcp Server stops responding

This is the following I have been watching 2 tutorial of how to do a tcp Server and a tcp Client . I had to follow everything step by step but for some reason when I start the server it stops responding, but when the client connects it from a...
asked by 26.08.2016 / 11:21
2
answers

Socket Python keeps open even using Close

I have an App in Python that uses Socket, this App runs on Kodi from XBMC, and when I close the App I would like to close the Socket and knock down the clients, the problem is that even I using shutdown(socket.SHUT_RDWR) e close()...
asked by 19.09.2016 / 05:01
1
answer

Binary for Hex

I'm developing a server that accepts socket connections. However, the information received is binary and strange characters appear during printing. IthinktheconversionorthewayIreadthedataisnotverycorrect(nottosaytotallywrong).Belowthecodesof...
asked by 16.11.2015 / 20:02