Skip to main content

[Migrated content. Thread originally posted on 14 July 2003]

I have experimented with the new AcuGT 6.0 c$socket routine. I am trying to make a program that serves multiple clients, just like the sample program socksrvm. It accepts a request from a client, handles the request and then an other client can send a request.

But some requests can take a while so other clients must wait that time before their request is handled. Does anyone has a solution to this?

Andr

[Migrated content. Thread originally posted on 14 July 2003]

I have experimented with the new AcuGT 6.0 c$socket routine. I am trying to make a program that serves multiple clients, just like the sample program socksrvm. It accepts a request from a client, handles the request and then an other client can send a request.

But some requests can take a while so other clients must wait that time before their request is handled. Does anyone has a solution to this?

Andr
Have you tried implementing any threading into your logic so that each request you receive will invoke a thread performing the logic necessary to handle the request and then send back a reply of some sort.

[Migrated content. Thread originally posted on 14 July 2003]

I have experimented with the new AcuGT 6.0 c$socket routine. I am trying to make a program that serves multiple clients, just like the sample program socksrvm. It accepts a request from a client, handles the request and then an other client can send a request.

But some requests can take a while so other clients must wait that time before their request is handled. Does anyone has a solution to this?

Andr
c$socket locks threads, thus you cannot use threads. Next version includes a timeout option for c$socket which presumably will address your needs.

[Migrated content. Thread originally posted on 14 July 2003]

I have experimented with the new AcuGT 6.0 c$socket routine. I am trying to make a program that serves multiple clients, just like the sample program socksrvm. It accepts a request from a client, handles the request and then an other client can send a request.

But some requests can take a while so other clients must wait that time before their request is handled. Does anyone has a solution to this?

Andr
c$socket locks threads, thus you cannot use threads. Next version includes a timeout option for c$socket which presumably will address your needs.

[Migrated content. Thread originally posted on 14 July 2003]

I have experimented with the new AcuGT 6.0 c$socket routine. I am trying to make a program that serves multiple clients, just like the sample program socksrvm. It accepts a request from a client, handles the request and then an other client can send a request.

But some requests can take a while so other clients must wait that time before their request is handled. Does anyone has a solution to this?

Andr
c$socket locks threads, thus you cannot use threads. Next version includes a timeout option for c$socket which presumably will address your needs.