 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
keyser Guest
|
Posted: Thu Sep 01, 2005 1:30 pm Post subject: Socket priority |
|
|
I am using D7 and Indy 9
Is it possible to set the priority of a socket? I am currently
communicating between clients/Server and am now looking to add
large chuncks of binary data. I was thinking of creating a new
socket for this data and would like it to be at a lower priority
so that communication on the original socket would get the full
bandwith when it is in use.
Thanks.
|
|
| Back to top |
|
 |
Martin James Guest
|
Posted: Thu Sep 01, 2005 3:44 pm Post subject: Re: Socket priority |
|
|
| Quote: | Is it possible to set the priority of a socket?
|
Not really, AFAIK. You can increase the priority of a particular stream
segment within one socket stream, and arrange for it to be received as a
seperate stream segment, by using the OOB_DATA channel. This may be your
best bet.
Note - I have never used this functionality of TCP, so I do not have any
example code etc.
If you use a completely separate socket stream, you could try raising the
priority of the sending and recieving threads on the control channel so that
their data tends to get into, and out of, the network before the large,
binary stream. How successful ths would be, I do not know.
Rgds,
Martin
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|