Questions tagged as 'socket'

3
answers

Socket error in MySQL installation

I am not able to uninstall and run MySql 5.5 on my Ubuntu Linux 14.04.LTS, every time I try to access it, I get the following message:    ERROR 2002 (HY000): Can not connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'...
asked by 10.08.2015 / 20:21
1
answer

ServerSocket and Socket

I'm trying to create a ServerSocket : public class RunServer { public static void main(String[] args) { try { byte[] buffer = new byte[1024]; String passwordCript; ServerSocket socketRecepcao = new ServerS...
asked by 02.04.2014 / 19:48
1
answer

Why is my server code not working with IPv6?

Recently I've been writing a small C server using the UNIX sockets API for just a few tests. The program works perfectly with IPv4 , but the same does not happen with IPv6 ... Follow the code: #include <stdio.h> #include <stdl...
asked by 26.10.2018 / 15:55
2
answers

Discover Broadcast address for sending UDP message

My Wi-Fi network interface contains the following settings: Wireless LAN adapter Wi-Fi: Connection-specific DNS Suffix . : home Link-local IPv6 Address . . . . . : fe80::95d7:bda0:eac3:ebf7%5 IPv4 Address. . . . . . . . . . . : 192.168.1.2 S...
asked by 28.05.2016 / 16:17
1
answer

How to only send messages to other clients?

I have a question with java sockets. My code sends the messages to all clients, including what they send. I want it to send only to other customers. Can you do that? I test using the telnet 127.0.0.1 2015 command on the terminal. Custo...
asked by 23.09.2015 / 20:15
1
answer

How to leave my app open waiting for the server to send information

I am creating a client app that as soon as it changes status of some component on the server the server will send the client so that the user can visualize. I need the app to be open receiving information and whenever user opens it should put yo...
asked by 26.06.2014 / 13:08
1
answer

Transferring files over a network C #

I wonder if there is any way to transfer files on a local network without using the C # Socket Class? and in terms of performance what is the fastest method of transferring files on a local network?     
asked by 13.01.2017 / 20:05
1
answer

Monitor service with Borland Socket Server

I'm developing a three-tiered application in the delphi-7 , using the TSockecConnection component. Is it possible to monitor connections, identify IP of connected users, as well as knock down some users?     
asked by 02.04.2014 / 19:39
1
answer

Uploading files working with sockets in PHP

A little while ago, I decided to explore and study some sockets to be worked on in PHP. So I got a good tutorial on the internet and I decided to create a very simple chat where I connect the server and two machines access the address to do the...
asked by 04.05.2018 / 13:24
1
answer

Bidirectional Communication - Send and Receive string value correctly

Follow the server code: int port = 11000/*PortGranter.GrantPort()*/; TcpSocketListener listener = new TcpSocketListener(); var tcs = new TaskCompletionSource<ITcpSocketClient>(); await listener.StartListeningAsync(port); listener.Conn...
asked by 16.03.2018 / 15:48