 |
|
 |
Hi,
Can anyone give me the steps to make this work. I started two instances of this application and tried to join same group from both instances. Only one succeeded.
Louis.
"Ambition without knowledge is like a boat on dry land"
-Mr. Miyagi
|
|
|
|
 |
|
 |
Nevermind. Got it working. Thought I could have two instances on the same machine join the same group...
Louis.
"Ambition without knowledge is like a boat on dry land"
-Mr. Miyagi
|
|
|
|
 |
|
 |
Can you pls help me
Iam running two application in different machine using multicastSocket if i terminate one application from task manager how that another application can recognize that the exe is terminated?
Can we track the end task exe through MulticastSocket api's pls help me....
|
|
|
|
 |
|
 |
I have been assigned to integrate the keepalive machnesim in my project iam new to multicasting can you please tell me how to call the keepalive when send message between two systems automatically.
awaiting your replay.
chandroo
|
|
|
|
 |
|
 |
I think that you can wait a lot of time for that reply if I see the responses below...
I wish i could help you, maybe you can post your question into the Message boards, refering to this article.
Good luck.
|
|
|
|
 |
|
 |
Iam new to the Socket progrmming ,Your sample program really helpfull for me
I have asked by my pl what is TTI and Loopback ?,what is the use of it ?
I would be very thankful if get the exact answer for the same.
And kindly suggest me how to get more details regarding the MulticastSocketing program.
reagrds
Chandrasekaran
Chandroo
|
|
|
|
 |
|
 |
I have an application which start listening to a MC address using this code.
I have a need to change the application so that the socket might listen to different MC address on external mark to the application.
To make it clear my application start listen to MC1 than goes to listen MC2 and back to MC1.
1 ) What should be change in the wrapper class to get the behavior I am looking for?
2) What is the difference between m_SendSocket and m_hSocket ?
3) the CMulticastSocket::LeaveGroup closed the m_SendSocket and m_hSocket after setsockopt , what is the reason for that ?
Thanks.
|
|
|
|
 |
|
 |
Sorry but the Previos Post was looking like garbage. first of All! Thanks for this App & Code. I am using the App. to Receive Multicast Data on Network. But it Fails. Reason: ------------------------------------------------------------------------ ------| Hex Values | Char Values | ------------------------------------------------------------------------ 0020 04 20 00 01 00 00 ........... .... 0030 04 59 5a 2a 2a 31 32 33 00 00 33 a1 92 2c 20 20 .YZ**123..3.., 0040 1c 27 00 00 00 00 0f 65 5b 75 6e 5f 00 00 33 a1 .'.....e[un_..3. 0050 92 2c 10 61 31 20 20 20 20 20 20 20 01 d8 00 06 .,.a1 .... 0060 53 26 50 20 43 4e 58 20 4e 69 66 74 79 20 20 20 S&P CNX Nifty 0070 20 20 20 20 20 00 00 06 46 a9 00 00 00 00 00 00 ...F....... 0080 00 00 00 00 00 00 00 06 46 a9 ff ff ff 9b 00 06 ........F....... 0090 a8 47 00 04 45 b1 00 00 00 00 00 00 00 00 43 1e .G..E.........C. 00a0 07 63 f1 e0 b8 50 20 00 43 4e 58 20 49 54 20 20 .c...P .CNX IT 00b0 20 20 20 20 20 20 20 20 20 20 20 20 20 00 00 08 ... 00c0 0e 30 00 00 00 00 00 00 00 00 00 00 00 00 00 08 .0.............. 00d0 0e 30 ff ff ff ce 00 08 ef ee 00 05 59 f6 00 00 .0..........Y... 00e0 00 00 00 00 00 00 42 f9 78 5c 4a ad 97 00 20 00 ......B.x\J... . 00f0 43 4e 58 20 4e 69 66 74 79 20 4a 75 6e 69 6f 72 CNX Nifty Junior 0100 20 20 20 20 20 00 00 0b fe 14 00 00 00 00 00 00 ........... 0110 00 00 00 00 00 00 00 0b fe 14 ff ff ff da 00 0c ................ 0120 9c 84 00 07 39 d8 00 00 00 00 00 00 00 00 42 f3 ....9.........B. 0130 f5 ce f4 40 61 a0 20 00 53 26 50 20 43 4e 58 20 ...@a. .S&P CNX 0140 44 65 66 74 79 20 20 20 20 20 20 20 20 00 00 05 Defty ... 0150 4e d9 00 00 00 00 00 00 00 00 00 00 00 00 00 05 N............... 0160 4e d9 ff ff ff 59 00 05 b2 48 00 03 39 41 00 00 N....Y...H..9A.. 0170 00 00 00 00 00 00 42 c7 74 64 17 85 2c 44 20 00 ......B.td..,D . 0180 42 41 4e 4b 20 4e 69 66 74 79 20 20 20 20 20 20 BANK Nifty 0190 20 20 20 20 20 00 00 09 40 ac 00 00 00 00 00 00 ...@....... 01a0 00 00 00 00 00 00 00 09 40 ac ff ff ff 74 00 0a ........@....t.. 01b0 10 81 00 05 35 66 00 00 00 00 00 00 00 00 42 ef ....5f........B. 01c0 85 e7 1d 5f 77 bf 20 00 43 4e 58 20 4d 69 64 63 ..._w. .CNX Midc 01d0 61 70 20 20 20 20 20 20 20 20 20 20 20 00 00 08 ap ... 01e0 67 45 00 00 00 00 00 00 00 00 00 00 00 00 00 08 gE.............. 01f0 67 45 ff ff ff d7 00 08 be 6b 00 05 67 b1 00 00 gE.......k..g... 0200 00 00 00 00 00 00 42 f8 05 cf 43 d2 03 40 20 00 ......B...C..@ . Above is the Ethereal Packet Capture. [BOLD] face is Data Field ( ignore the rest ) ------------------------------------------------------- So, when i run the App. it only Receives Hex[04] & [20] "uNDERLINED" & ignores the Rest of Data. ------------------------------------------------------- Hex--> ASCII [04] --> EOT [20] --> space [00] --> NULL [01] --> SOH i will be highly obliged 4 your Help in Modification of the Code to Include all Data. and also length of String Buffer that i receive is "Null" the Chat window only Shows "" char Kunal J Vyas kunaljvyas@yahoo.com
|
|
|
|
 |
|
 |
hello,
i am a beginner of socket program,i want to know if i am in a lan,how can i send message to some of members of the lan,and what about sending files?
Thank you for a great demo!
Jeremy
|
|
|
|
 |
|
 |
Hello,
is it possible to get this demo run on a Windows NT 4.0 System ?
regards Mark
|
|
|
|
 |
|
 |
It appears that Windows Firewall defaults to blocking multicast messages. I have a client-server application that is deployed into small offices. The server has an http service, which already needs to be unblocked. But, the client is a simply browser-type app, which doesn't require "un-blocking".
I'm curious if I can use multicast on the server (listen and send), and have the user unblock the server. AND, set the client as a "send-and-receive" type of multicast -- so the client doesn't require an "unblock" in Windows Firewall. This send-and-receive means: "The client sends a multicase message to the server, the server replies, the client gets the reply, and then the client closes the connection."
Thank you for a great demo!
Dan Baker
|
|
|
|
 |
|
 |
I have a trouble while trying to send a long message(>32,000 characters). To do this I divide it into some messages that have length of less than 32,000 and use sequence of send_messages like that:
SendTo(LPCTSTR(m_message1), m_message1.GetLength() + 1);
SendTo(LPCTSTR(m_message2), m_message2.GetLength() + 1);
-----
SendTo(LPCTSTR(m_message5), m_message5.GetLength() + 1);
But as received, only one message have received from multicast that according to the last message have sent to it. Like the example above, only m_message5 have sent and one message related have received. What does it mean and how to solve this problem?. Who can help me? Thanks.
|
|
|
|
 |
|
 |
I think that while the first Message were processed the lat came in and overwrote the others.
Really too much size> 32,000 characters, maybe you should write a (temporary) file and send the filename.
Try this @ home. (B&B)
|
|
|
|
 |
|
 |
How do you choose them? As I understand it, an arbitrarily chosen multicast address can can potentionally conflict with a multicast group that some other (set of) application(s) is using, so how do we choose which address to join?
Thanks in advance.
|
|
|
|
 |
|
 |
hie, i m not able to run this demo from single mechine.. i m trying to run 2 instances of this application for a single mechine... is it necessary to have different mechine or network card to every instance of application... if is it so .. then please tell me why it is like that..
Rakesh Kumar Agrawal
Applied Artificial Intelligance Group
C- DAC, Pune University Campus
Ganesh Khind, Pune University
Pune - 411007, Tel: 5694000/1/2/3 Ext:- 321
|
|
|
|
 |
|
 |
I am novice to multicasting. I know socket programming.
I don't how to create multicast address ( if it is to be created
before joing the multicast group if it is not present).
Or how to specify a multicast address ? will it be specified By
application program or ISP(iNTERNET SERVICE PROVIDER).
I need this information urgently ....I will be thankful to anyone
who provides even the slightest information regarding above
problems.
Thanking you.
Nagareshwar
Final year B.E (Comp.Engg)
India
|
|
|
|
 |
|
 |
I recommend you read about MBone. www.mbone.com
Good luck
|
|
|
|
 |
|
 |
Hello Friends,
I need Complete overview about Multicast. what are the basic things needed for developing this program.
with a sample program.
|
|
|
|
 |
|
 |
I have an IP adress of 192.168.123.124 . Can I join a group with this adress? Does the program work only with adresses greater than 224.0.0.0 ? I can join a group with address 224.168.123.124. I did this on 2 computers, sent messages and received them back, but not on the other computer ! The ports were the same ( 5555 )
|
|
|
|
 |
|
 |
I have the same problem. why?
|
|
|
|
 |
|
 |
I have done by commenting out some lines:
Comment out this:
/* Join the multicast group */
//m_mrMReq.imr_multiaddr.s_addr = inet_addr(strGroupIP);/* group addr */
//m_mrMReq.imr_interface.s_addr = htons(INADDR_ANY);/* use default */
//if(setsockopt(m_hSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP, (char FAR *)
mrMReq, sizeof(m_mrMReq)) < 0)
// return FALSE;
And also this one on "CreateSendingSocket(UINT nTTL, BOOL bLoopBack)
// SetLoopBack(bLoopBack)
After this, you can use it as "peer to peer" (using the same port).
Can I also comment out all about TTL? (this line)
m_SendSocket.SetSockOpt(IP_MULTICAST_TTL, &nTTL, sizeof(int), IPPROTO_IP) == 0)
Hope it helps you,
ciao
|
|
|
|
 |
|
 |
I have a PC with two NIC. I would like to send multicast only out of one of them. I tried to change the imr_interface.s_addr field to use one of the IP addresses on this PC, but it did not work. I tried also to bind to the IP that I want to use. The messages are being sent out of the default IP and not the one I want. Is there a way to force sending out multicast messages out of a specific IP address?
|
|
|
|
 |
|
 |
try to use a loopback ip address for example 127.0.0.1 ....
Vangelis Afantenos
|
|
|
|
 |
|
 |
By default, the multicast datagram is delivery via default interface (first NIC).
If you have multi-NICs, before sending multicast datagram, you need to call setsockopt. The sample code fragment is,
struct in_addr outgoingIf;
outgoingIf.s_addr = inet_addr( );
SetSockOpt(
IP_MULTICAST_IF,
(void* )&outgoingIf,
sizeof(outgoindIf), IPPROTO_IP);
Note, the usage of IP_MULTICAST_IF.
Good Luck.
KS
|
|
|
|
 |
|
 |
Hello Everybody,
The wrapper class seems to be nice. I tried running the demo. I am in South Korea and tried to tested this demo on two remote systems. But I could not establish a comuunication. Both ends successfully join same multicast address and port. But the things are not passing to and from. I tried reusing the port with some corrections, it works fine for applications on the same system. But not for remote apps. How can I know if my subnet is having Multicast Compatible Routing System?
Anybody help me!!!!!!!!!!!!!!!!
Regards,
Mansukh
|
|
|
|
 |