Sockets - C#

  • Thread starter Thread starter sri_san
  • Start date Start date
S

sri_san

Hello group,
I amlooking into a connection oriented socket which can
connect to a port on a remote machine and wait(on the same connection)
till it responds back. I would have to do this as the source cannot
sent multiple requests at the same time. The requests has to be queued
and sent one at a time. Any help would be great!

Thanks,
Sam.
 
Are you writing the server side code? Can you not stick the desired
IPEndPoints into a simple queue on one thread and pop them off as a response
is recieved (which will happen on a threadpool thread anyway)?

Obviously this would need to be thread safe, ie using this synclock property
of the queue object when 'push'ing or 'pop'ing

Sorry if this is all dutch but its kind of hard to judge what your situation
is from you OP ;)
 
Thanks for the reply. The sever side has already been implemented on a
different platform which uses sockets. And, it was designed such that
the server sends a response/ack as soon as it processes the request. I
need to implement the client.

Thanks,
Sam.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top