Questions tagged as 'socket'

1
answer

I can not join two users to the same room with socket.io

I'm doing an app with express, mongoose, and socket.io. My intention is to make that when a user enters, he joins a room whose name is the name of the city with which he registered. The idea is that when a user A and B belong to the same city,...
asked by 10.05.2016 / 08:18
0
answers

The socket is disconnected (C #)

I am trying to make a DLL in .NET (C #) that contains the functions to connect to a TCP server. The client class is the following: public class SynchronousSocketClient { public static Socket ConnectToNotificationsServer(string serverName,...
asked by 02.12.2016 / 09:29
2
answers

List a directory in Java using sockets (client / server)

I am starting to use sockets in Java and it seems that I still do not fully understand them. I am trying to create a server that waits in a port for a client to connect to it and that when the client connects, it sends a list of a directory....
asked by 09.12.2016 / 21:03
1
answer

Help with Socket and files in Java

You see, I'm doing this exercise ... Create a server client program where a client asks the server for a file and it is sent to the client and then printed on the screen. The problem I have is that I can not pass the contents of the file,...
asked by 04.11.2018 / 01:44
1
answer

Error writing to file, you can not concatenate str a bytes

I've done a simple tcp server in Python and what I want to do is save the client's messages in a text file. What happens is that when I try it, it means that you can not concatenate bytes to string. Would they know how to do it? This is th...
asked by 02.02.2018 / 17:45
1
answer

Implementing methods of a Frame in server class

I have a game implemented in java, to roll a dice and to pass the points and if 1 points are left at zero and if the turn passes the points are saved and the one that reaches 100 wins now I have only two frames but what happens is that nle add t...
asked by 14.11.2017 / 09:12
1
answer

Problem when creating socket in android to server on pc

I am doing a chat for a project in the grade I am in, I already have a client and server that work in java on the PC. Now I wanted to make a client in mobile version. The point is that I am stuck in the creation of the socket , since it...
asked by 09.11.2017 / 20:41
1
answer

Help with Sockets in Play [closed]

I have a game implemented in java, to roll a dice and to pass the points and if 1 points are left at zero and if the turn passes the points are saved and the one that reaches 100 wins now I have only two frames but what happens is that I do not...
asked by 03.11.2017 / 04:15
1
answer

Capture GPS data with JAVA [closed]

I'm doing an application to show data from some gps on the web, but I'm not clear about the topic of capturing the frames I would like to make a socket in java but I'm not sure how to do it, so that it runs in the background and I capture the...
asked by 24.08.2017 / 09:29
1
answer

Unable to convert 'char * (*) [10] [81]' to 'char *'

Well, my problem is this: When trying to compile this code in linux (gcc server.cpp -o server ): #include <stdio.h> #include <stdlib.h> #include <iostream> #include <sys/types.h> #include <sys/socket.h> #inclu...
asked by 18.10.2016 / 12:17