Questions tagged as 'socket'

1
answer

How to encrypt and decrypt data to be transmitted via sockets?

I have a program that logs in with my server, however the connection is without any protection. I looked for some ways to protect but it seems that some of them have a pass code, in the client, but I need to make the connection encrypted, and pr...
asked by 09.05.2015 / 20:08
2
answers

Download all files from a directory

I have an application that transfers files via socket, but one by one. I need this application to download an entire directory. I should provide a directory, EX: "c: \ users \ Server \ PASOW_DOWNLOAD" and then the program should transfer...
asked by 01.05.2015 / 19:21
1
answer

Extend class TClientSocket Delphi

I would like to know how to extend the TClientSocket class in Delphi, to put new features without losing the old, with examples. Thanks.     
asked by 19.08.2014 / 20:48
1
answer

Passing an id to server socket

Each client contains a fixed id how would I add this id to the server so that I can send messages to clients with specific ids? Server: import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.ne...
asked by 28.07.2014 / 09:42
1
answer

socket failed: EACCES (Permission denied)

I was creating an Android project that made him communicate with a Windows machine via Sockets, the machine being the server, and the mobile device (Samsung Galaxy S3 MINI) the client. I created a hosted wireless network on the computer, and...
asked by 10.05.2014 / 22:49
1
answer

code in C, url = inet_ntoa (* (struct in_addr *) ip-h_addr); I do not understand what is happening.

I was studying sockets for this material link and I came across a code that I do not understand what is going on. The code part is this: struct hostent *ip; ... // função da lib netdb.h para converter ai nosso host para IP ip = gethostbyna...
asked by 20.07.2018 / 12:31
1
answer

JavaFX - locked screens

All JavaFX screens crash when the server is powered on. I tried to use a task but it does not seem to work. The program works even with the screens locked but I would like to be able to access the interface while the server is turned on. I...
asked by 19.05.2018 / 21:36
1
answer

Doubts Socket Server

I have a question about the behavior of the code that is creating a socket server, follow the code of the server: public class Server { public static void main(String args[]){ try { ServerSocket server = new ServerSocket(3322);...
asked by 15.06.2018 / 15:51
1
answer

Error using socket.recv ()

I'm learning about servers in python and I'm using the socket library. But when I use the socket.recv(1024) command for the server to read what the client sent, IDLE gives the following error:    'socket' object has no attribute 'recv'...
asked by 05.01.2018 / 18:18
1
answer

How do I send data to a socket server that was already started inside an AsyncTask?

I have already been able to connect to the server by the application, receive and display the data sent by it. There are also no problems sending messages to the server. The problem is: once the connection is established, capture data from an e...
asked by 08.01.2017 / 02:59