A multicast socket is a bi-directional communications endpoint used for the sending of packets to multiple receivers via multicast (typically IP) or for receiving multicast packets.
Questions tagged [multicastsocket]
156 questions
0
votes
0 answers
Multicast Chating, to get sender's login/pc name in host/listener's GUI
Help me guys, i was able to get the IP addres of sender in host/listener system, how to get sender's name, i think it should be "packet.getHostName(string ip-address)", where packet is reference of the packet received by the listener from sender. I…

Rishit
- 13
- 7
0
votes
1 answer
UDP Multicast with Java: Message cannot be received by entire multicast group
I am trying to understand how multicast works, thus I am experimenting with it a bit.
Situation
I built a simple server which has a MulticastSocket, listening on port 1250. It simply echoes the message it receives.
Next I built a simple client,…

Christian
- 1,589
- 1
- 18
- 36
0
votes
1 answer
Multicast udp sockets implementation in C
I want to use multicast sockets on server and client side. Server will sending data and client
will receiving data. At the same time if data is lost clients will send nack packets to the server
and server will receive nack packets. How should I…

user3119422
- 87
- 3
- 11
0
votes
2 answers
Why does bind required while receiving UDP message?
Bind() is not required while sending the UDP message.
Reason : We dont need to bind() explicitly as OS automatically binds the sender with an IP address and PORT number.
Why bind() is required to receive the UDP message ?
Sender can get the IP…

Anil Kumar K K
- 1,395
- 1
- 16
- 27
0
votes
2 answers
Multicast packets come in dirty
I'm making a very simple multicast application where a controller locks and unlocks a station via simple messages. The controller and the station both have receiver threads. For some reason, when the first message is sent, it is received well, but…

Tuma
- 603
- 1
- 7
- 35
0
votes
1 answer
Java IP Multicast issue when sender and receiver on different node
Hi I am trying out java multicast.
I have a WIFI router at - 10.0.0.1 (gateway)
and two nodes:
Node_1 - 10.0.0.4
Node_2 - 10.0.0.3
My IP Multicast sender looks like:
private static class Sender extends Thread
{
// Create the socket but we don't…

bitan
- 444
- 4
- 14
0
votes
1 answer
Multicast join group with two different sockets
I'm creating multicast server/client udp application in C in which server is sending data to multicast group of clients, and if data is not received, clients request for retransmission. I thought to create two sockets on server and client side. On…

user3119422
- 87
- 3
- 11
0
votes
1 answer
same server listening on different sockets
I have a UDP multicast server listening on 2 sockets on 2 different ports. I achieved listening on these 2 sockets from clients. But i want to identify on which socket a client is sending a packet. Since my problem is that ; on the server if I…
0
votes
1 answer
Use openpgm on Ubuntu 12.04
I've faced a problem using Openpgm library, and I would be grateful if anyone could help me on this problem.
I want to use Openpgm on Ubuntu 12.04. according to this link: "https://code.google.com/p/openpgm/wiki/OpenPgm5CReferenceBuildLibrary"…

Deon Evans
- 9
- 1
0
votes
1 answer
TCL script cannot configure multicast socket
I'm working with tcl script under ubuntu 12.04, and I'm facing some problem when I try to configure a multicast socket. What I'm trying to do is to forward traffic from some socket to a multicast one, but I don't know why although the multicast…

ndarkness
- 1,011
- 2
- 16
- 36
0
votes
3 answers
Address aleardy in use exception (Multicast Socket)
Im trying to write server and client for service which would tell the current time. My code:
SERVER
public class TimeServer {
public static void main(String[] args) {
try {
final DatagramSocket so = new DatagramSocket(8189);
…

user2250795
- 55
- 8
0
votes
1 answer
MulticastSocket dont disable loopback on mac os x
I have a serious problem in mac os x. Im developing an backup distributed application in mac os x. The application have to send a file to the network and the peers of network have to backup the file. So for this purpose im using 2 threads: first…

mistic
- 275
- 5
- 15
0
votes
1 answer
Communication between C programs across a adhoc network
I have the following server code
#include
#include
#include
#include
#include
#include
#include
#define HELLO_PORT 12345
#define HELLO_GROUP…

Blood Sport
- 125
- 1
- 2
- 12
0
votes
2 answers
Extracting IP address from C sockets
Ok, I'm still new to using C sockets, but I was wondering if there is a way to extract the IP address adding running setsockopt? If you'll look at my code below, I have everything in my multicast sockets ready to send except for defining the…

Josh Bradley
- 4,630
- 13
- 54
- 79
-1
votes
1 answer
Android - Kotlin - Decentralized multi-client communication
for a project, I'm looking for a solution to exchange data between several smartphones (kind of decentralized chat).
A master will initialize the sequence, and slaves will connect. The master will then send data to the slaves, but the slaves can…

Jérémy Schneiter
- 1
- 1