Questions tagged as 'socket'

1
answer

Unable to read beyond the end of the stream

I was trying to create a sockets connection between Java and C #, Java being the client and C # the server. But when I use BinaryReader to read the data, it returns an error:    Unable to read beyond the end of the stream. Excerpt from...
asked by 11.05.2014 / 16:28
1
answer

Close PHP socket with telnet

I'm trying to close a socket by typing "exit" through telnet but the variable $msg is always empty inside if <?php $host = '127.0.0.1'; $port = 10000; $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); echo "...
asked by 03.12.2017 / 02:21
1
answer

Socket with UTF-8

I'm doing a chat that will run on the network (internal), I just can not make the accents and "ç" issue work. It works by running in the IDE but if I have it done .jar and run (on any PC) it does not work accents, it gets strange characters....
asked by 30.08.2017 / 17:54
1
answer

Upload Image with Socket Java [closed]

I need to make a program capable of sending an image to a server (my pc for testing) at the push of a button, I already know how to select the file, but I can not find anything on the internet to help me in sending. Does anyone know, or do you h...
asked by 04.07.2017 / 21:45
1
answer

How do you make a socket that actually connects to other computers?

I tried to make a socket in Python 3.5.1, but when I went to test it, it only connects with me. I tried connecting to another computer (from my friend), but it does not connect. Does anyone know how to make a socket that actually connects? If...
asked by 13.07.2016 / 02:06
1
answer

Socket C ++ Read Error

I'm developing a program in C ++ using Socket, the problem is that when the client sends some information to me I do not receive. In fact the program hangs. #include <iostream> #include <stdio.h> #include <sys/types.h> #inclu...
asked by 03.07.2016 / 22:54
1
answer

Close DataInputStream always closes InputStream?

I need to temporarily use a DataInputStream with an inputStream of a socket. Do I need to use close in DataInputStream ? And if I use it would I be closing the inputStream of the socket as well?     
asked by 15.03.2016 / 19:40
1
answer

How to run a php socket

This script below is a php socket for receiving data from a tk102 vehicle tracker. The problem is that I think it has to be run in a specific folder on the server and I do not know how to do that, and have that CLI script question that I do not...
asked by 08.04.2016 / 16:41
1
answer

Send and Receive data via Socket [duplicate]

I'm a socket beginner, I'd like to know the best way to send and receive data. I'd like a better explanation of how it works.     
asked by 01.05.2015 / 05:21
2
answers

Routine in Delphi Application Server with UNIGUI

I have an application developed with UNIGUI components for Delphi XE5 and I would like to know how I can run a routine on the application server, without necessarily being in the browser interface. One of the routines is communication via socket...
asked by 09.09.2014 / 14:11