Z
Zahid
Hi,
Im using UDP communications to send and receive data
wirelessly. Im also reading the book "Microsoft .Net
Compact Framework" by Eric Rubin and Ronnie Yates. The
example given has the following command:
data = listener.receive(receivedIPInfo)
It states that this command "blocks and listens on port
8587 - also defined. Does this mean that if I have
another thread in my app that sends data to the same
port - it will be unable to send data until the above
command receives data ? Or can I still send data? If so
My app could be waiting for a long time before data is
received yet it may want to send data whilst waiting for
data (ie it cant be full duplex). Am i misunderstanding
this?
Basically I want to create 2 threads that run in the
background of my app. One that listens for data at a
specific IPAddresses port and one that sends data to the
same port. Whats the best way to do this ? It is
possible with UDP isnt it?
Thanks in advance.
Thanks.
Im using UDP communications to send and receive data
wirelessly. Im also reading the book "Microsoft .Net
Compact Framework" by Eric Rubin and Ronnie Yates. The
example given has the following command:
data = listener.receive(receivedIPInfo)
It states that this command "blocks and listens on port
8587 - also defined. Does this mean that if I have
another thread in my app that sends data to the same
port - it will be unable to send data until the above
command receives data ? Or can I still send data? If so
My app could be waiting for a long time before data is
received yet it may want to send data whilst waiting for
data (ie it cant be full duplex). Am i misunderstanding
this?
Basically I want to create 2 threads that run in the
background of my app. One that listens for data at a
specific IPAddresses port and one that sends data to the
same port. Whats the best way to do this ? It is
possible with UDP isnt it?
Thanks in advance.
Thanks.