UDP communication,how server can send message to client before client sends any message

  • Thread starter Thread starter La07K
  • Start date Start date
L

La07K

Guest
HI ,


I have a requirement like client server communication using udp protocol.I implemented this here i am able to communicate request response messages between client and server.Here i have one specific requirement like server will send some unsolicitated notifications messgae to client that also i have to read and process.This messages i am able to read only once the client sends a message to server and server sent its response after that i am able to read all the unsolicitated messages(i think by this time server comes to know its remote endpoint).But my requirement is like before client send any message if server any unsolicitataed messages i want to read and process.


How can we achieve this.Once client and server is established conndection Socket.Connected flag will be true,then in the cliednt side we will come to know server ip address and port through remote endpoint.Is there any similar way to identify the remote endpoint from the server side.

Or any initialize call from client to server then server can come to know its remote endpoint.

please suggest an idea.way to resolve this.In my case actuall server is a hardware device,but for testing purpose i am creating a simulator kind of application,here message is not reaching to its clinet.Server is sending to server itself.




Please help me to find a solution.






Coding.....................................

Continue reading...
 

Similar threads

P
Replies
0
Views
176
Policy standard local admin account with Active Di
P
N
Replies
0
Views
94
nopatch4humancruelty
N
J
Replies
0
Views
63
Jessi_ca
J
Back
Top