Questions tagged as 'socket'

2
answers

Chat with app notifications

I have an Android application that through it, the user can send a message to the administrator (me). I wanted to do something cooler in this communication, I would like it when I respond to the message, it appears in the application that it has...
asked by 02.07.2014 / 04:05
2
answers

How to send and receive a file via Socket?

I need to send files via Socket in Linux C ++, as the file may have extensive content I will need to send it to pieces. In this case, I need to create a kind of protocol to send a file (in pieces) through Sockets and be able to join again on the...
asked by 05.01.2015 / 13:45
1
answer

Is it possible to know how many clients are connected to ServerSocket?

How do I see how many clients are connected in my ServerSocket in java?     
asked by 28.12.2014 / 16:47
2
answers

How to tell if a socket client has disconnected?

I have a server that has a List with all clients connected. The client connects and the connection is managed on a unique thread with infinite loop communication. The problem when I drop the client or close the connection, I do not...
asked by 15.08.2015 / 04:23
1
answer

How to implement timeout on recv () in socket.h

I'm wondering if there is any function to put a timeout together with recv () using Socket.h . Code sample: // Variaveis UINT in_socket_handler; struct sockaddr_in server; // Cria o Socket in_socket_handler =...
asked by 02.08.2016 / 22:02
2
answers

Send objects via socket

I have a chat that exchanges messages ( String ) with each other. Everything is working properly. But now, I want to start sending objects via Socket , for example, a class that has some attributes set by me (eg, name, IP, host name,...
asked by 16.07.2014 / 04:21
1
answer

Client / Server (Windows) with Sockets in C

I'm trying to work out a program written in C that is capable of uploading a file or text to a particular server. I have searched a lot on google but most of the tutorials are oriented towards linux environment, or it is not so complete or th...
asked by 27.06.2014 / 19:43
1
answer

What are Sockets? And how to develop in C #?

I have to develop a socket, but I do not know what it is or how it works! I want to know what it takes to create a socket in C #, I'm using Visual Studio as IDE.     
asked by 20.04.2016 / 01:08
1
answer

How to receive multiple socket requests on a single server?

Hello! I'm doing a server / client schema program in Python where I wanted to have only one server and multiple clients. Let's say we have 3 clients each making a request to the server per socket connection, how is it that: 1: Could the...
asked by 19.02.2017 / 00:16
2
answers

Communication between applications using socket through UDP doing Multicast

I'm trying to make the communication between applications where one of them transmits a certain message and the others only receive, I do not know the IP address of the ones they will receive and they will not even be there to receive the messag...
asked by 05.03.2014 / 23:49