Questions tagged as 'socket'

1
answer

Remove http header in socket C

I made a socket in C. This program is operated by command line and compiled on Linux. It receives as a parameter a complete URI and a filename, and then connects to the server, retrieves the page and saves it to the reported file. After getting...
asked by 15.06.2015 / 16:45
2
answers

I made a client / server socket application but it only works with the emulator

I made a client / server socket application, where the client is a device with android and the server is done in java. At the beginning this is all ok, in the emulator it runs correctly, but when I install the apk on the cell it does not work, i...
asked by 06.04.2014 / 23:11
1
answer

error in the comparison of binaries in C

I have a Perl program that connects to a socket, receives binaries on this socket, reads the received binaries, compares with other binaries in a buffer so I know if there are any binaries in the buffer received in the socket. See: perlProgr...
asked by 23.08.2014 / 22:36
0
answers

Problem with sockets when closing client: java.net.SocketException

Hello, good morning, good afternoon or good evening, I'm having a problem, with a system I'm creating, thank you to anyone who can help. So, this system basically passes a "protocol" to the servers and it returns an object, and vice versa, howev...
asked by 20.12.2018 / 02:51
0
answers

how to open socket for a specific network on a machine with 2 networks [closed]

I have a machine with 2 network cards. How do I open a socket for a specific network?     
asked by 06.09.2018 / 14:45
0
answers

How to send an object using socket c ++ visual studio [closed]

I'm trying to send an object to a server socket. The client and server have the same class I use to store the data. It's all working that way, but I'm having problems on the server side. This is the class I'm using. class tMensagem{ pr...
asked by 28.09.2018 / 22:07
1
answer

Problem with socket C

Good afternoon everyone! I am doing an academic work on Sockets in Language C, in which I need to create an MP3 file transfer program in Windows. In it I have two programs, client and tracker, in which to follow the operation: Client queries...
asked by 01.06.2018 / 19:26
0
answers

Sockets Array in C

I'm studying in C and I'm creating a program that exchanges messages between pc's in the client / server style. I created an array of sockets and put them in threads. int main () { pthread_t *servidor = malloc(sizeof(int*)*2); pthre...
asked by 24.06.2018 / 23:22
1
answer

TCP / IP communication using Socket

I need to do a college job, where it is necessary to do TCP / IP communication something like a "chat chat" is what I have in mind to do. But some questions have arisen, I do not know exactly how to ask them so I made a drawing in two ways that...
asked by 06.05.2018 / 18:02
1
answer

Sending data via sockets ():: Software caused connection abort: socket write error

I have a client server program that is working when I request the communication, but when the sending of data starts the program generates the following error: Estabelecar conexão....... Conexão estabelecida....... Enviar mensagem...... Mensa...
asked by 08.03.2018 / 17:07