Questions tagged [echo-server]

This RFC specifies a standard for the ARPA Internet community. Hosts on the ARPA Internet that choose to implement an Echo Protocol are expected to adopt and implement this standard.

TCP Based Echo Service

One echo service is defined as a connection based application on TCP. A server listens for TCP connections on TCP port 7. Once a connection is established any data received is sent back. This continues until the calling user terminates the connection.

UDP Based Echo Service

Another echo service is defined as a datagram based application on UDP. A server listens for UDP datagrams on UDP port 7. When a datagram is received, the data from it is sent back in an answering datagram.

32 questions
46
votes
1 answer

How to make a simple multithreaded socket server in Python that remembers clients

How do I make a simple Python echo server that remembers clients and doesn't create a new socket for each request? Must be able to support concurrent access. I want to be able to connect once and continually send and receive data using this client…
nettux
  • 5,270
  • 2
  • 23
  • 33
3
votes
2 answers

Local Host Server Socket Program not working

I have server and client socket programs written in C. I want to connect the client program with server program on my laptop using local host ipaddress 127.0.0.1. When i execute the server program. its output is binding failed and stops. How to make…
Junaid
  • 71
  • 1
  • 6
2
votes
0 answers

How to do handshake with between Client and Server using Noise Framework in Android

I want to connect My Android phone with the server(echo) using Noise Framework, there are some classes provided by them for JAVA but there is no example that how it actually works, also i read the documentation for Noise but its not that much…
2
votes
1 answer

python echo server does not work

I am trying to implement simple echo-server using python. Here is my code taken from different internet sourses: #!/usr/bin/python import socket host = "192.168.253.134" port = 33333 s = socket.socket(socket.AF_INET,…
ovod
  • 1,118
  • 4
  • 18
  • 33
1
vote
1 answer

Laravel echo-server socket.io connection refused on docker

I'm struggling with a setup for Laravel echo server on Docker (laradock). I followed up this tutorial. I setup a new laravel project under docker, and setup host to be testing.localhost. Connection with Redis works fine, echo server works fine and…
Sasa
  • 553
  • 7
  • 25
1
vote
2 answers

Flutter - Pusher & EchoClient - Connecting but not receiving events from channel

I'm trying to connect my flutter application to a laravel websocket using Pusher as a broadcaster. I was able to connect my Flutter application to the laravel websocket using the following Flutter Code: Echo echoSetup(token, pusherClient) { return…
Lambasoft
  • 909
  • 2
  • 14
  • 33
1
vote
0 answers

What is the best practice to avoid establishing cumulative/multiple socket connections from a react native Component

I am working on a React Native mobile chat application utilizing laravel-echo library for socket connections. I have a function based EchoServer component, rendered from a custom header component on every page. It calls handleNewMessage through…
1
vote
1 answer

Error in Sending (or Receiving) Data to Socket (Haskell)

I'm messing around with an echo server I found online, trying to get a feel for network programming with Haskell, and I'm hitting a stumbling block. I can't seem to figure out how to send data to the server (via another program or any other means).…
Andy
  • 3,132
  • 4
  • 36
  • 68
1
vote
2 answers

Simple Java IRC Client

I am trying to write an IRC client that is very simple, with the hopes of later expanding it. At this point I have two classes written in java that are supposed to work together and were copied from the Oracle tutorial. What I am trying to do is…
brothman01
  • 157
  • 1
  • 2
  • 12
1
vote
0 answers

EchoFileServer (bytes[])

I´m trying to create a FileEchoServer. I got no Problem sending one File. But if i try to send the file back to the Client, my receiver for the first file is still open. I tried to use outputStream.flush(); on the Client´s Outputstream but its not…
Jerry
  • 65
  • 6
0
votes
1 answer

echo-server with asp.net

I have ASP.NET server. I have an embedded device with cellular communication (socket based) - the device is not a web-browser. I want to be able to access an ASP.NET page (.aspx) and get a reply. To begin with, I want to send binary data…
0
votes
3 answers

Java Echo Server TCP *and* UDP implementation?

I've just begun socket programming, and I'm working on an Echo server in Java. One of the things I'd like to do is implement the server in both TCP and UDP and allow the client to choose which protocol to use at runtime. This is a noob question, but…
LearnHK
  • 17
  • 2
  • 6
0
votes
1 answer

Connect node JS server to remote laravel-echo-server channel

I have two servers, server 1 hosting laravel echo and server 2 hosting NodeJS. I want server 2 to be able to listen and transmit on a laravel-echo channel which is in server 1. Anyone have an idea on how to proceed? I tested with socket IO but I…
0
votes
1 answer

Why is the UDP message showing as ECHO?

I am using STM32 microcontroller for sending UDP message. I did everything about microcontroller side. I followed this video: https://www.youtube.com/watch?v=Kc7OHc7JfRg&list=RDCMUCkdqtSMnhYuMsJkyHOxiPZQ&index=4&ab_channel=ControllersTech But while…
KAnahar
  • 3
  • 2
0
votes
0 answers

How to get if echo instance is already running?

Is there any way to check if any instance of Echo server is already running so that only one instance of Echo server run at one time. I have this code func main() { // Echo instance e := echo.New() // Start server …
Thor
  • 113
  • 10
1
2 3