Skip to main content

[archive] C$SOCKET Question

  • January 30, 2008
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 29 January 2008]

We have an application program that uses C$SOCKET to create instant messages to other users. And, this application works very well.

I also have a web order entry application that is running on a separate machine and I am accessing my data on the regular application server via AcuServer.

My situation/problem is that I am running the web application on the webserver and it is executing using the configuration file and runtime on the webserver, but via Acuserver is running a program on the application server to create a sales order. This works fine. Once the order is created, I wanted to have the program send a message using the instant messaging program we have to notify users that a new web order has been placed. It calls the program successfully, it appears to successfully call the C$SOCKET to create a socket, write to the socket, but when we try to read from the socket to see if the message was successful, we are getting a return value of HTTP/1.1 . And, of course the message does not actually get sent. Something in the C$SOCKETS appears to not work correctly when used in this environment -- or I need to configure the web server differently, or my program that handles the socket routines needs to do something differently.

It is a complicated scenario, but if I could understand how the HTTP/1.1 is getting into the socket messages -- that might help me figure out where this whole thing is falling apart.

Has anyone else used sockets in an environment that include a web/cgi application?

TIA,
Rebekah

3 replies

[Migrated content. Thread originally posted on 29 January 2008]

We have an application program that uses C$SOCKET to create instant messages to other users. And, this application works very well.

I also have a web order entry application that is running on a separate machine and I am accessing my data on the regular application server via AcuServer.

My situation/problem is that I am running the web application on the webserver and it is executing using the configuration file and runtime on the webserver, but via Acuserver is running a program on the application server to create a sales order. This works fine. Once the order is created, I wanted to have the program send a message using the instant messaging program we have to notify users that a new web order has been placed. It calls the program successfully, it appears to successfully call the C$SOCKET to create a socket, write to the socket, but when we try to read from the socket to see if the message was successful, we are getting a return value of HTTP/1.1 . And, of course the message does not actually get sent. Something in the C$SOCKETS appears to not work correctly when used in this environment -- or I need to configure the web server differently, or my program that handles the socket routines needs to do something differently.

It is a complicated scenario, but if I could understand how the HTTP/1.1 is getting into the socket messages -- that might help me figure out where this whole thing is falling apart.

Has anyone else used sockets in an environment that include a web/cgi application?

TIA,
Rebekah
via Acuserver is running a program on the application server to create a sales order. This is incorrect. AcuServer returns the object file of your application to the machine where the runtime is installed and the program executes on that server (unless you have a runtime on the same machine as AcuServer and the config file looks locally). You have not stated which O/S your web server and application server are. Also, if the C$Socket program works on serverA the reason for it not working on serverB are several. Does the O/S where it does not execute offer sockets (many olser Sco variants do not offer sockets), have firewall permissions been set approproiately (if this is a web server many web severs only allow traffic on port 80).

[Migrated content. Thread originally posted on 29 January 2008]

We have an application program that uses C$SOCKET to create instant messages to other users. And, this application works very well.

I also have a web order entry application that is running on a separate machine and I am accessing my data on the regular application server via AcuServer.

My situation/problem is that I am running the web application on the webserver and it is executing using the configuration file and runtime on the webserver, but via Acuserver is running a program on the application server to create a sales order. This works fine. Once the order is created, I wanted to have the program send a message using the instant messaging program we have to notify users that a new web order has been placed. It calls the program successfully, it appears to successfully call the C$SOCKET to create a socket, write to the socket, but when we try to read from the socket to see if the message was successful, we are getting a return value of HTTP/1.1 . And, of course the message does not actually get sent. Something in the C$SOCKETS appears to not work correctly when used in this environment -- or I need to configure the web server differently, or my program that handles the socket routines needs to do something differently.

It is a complicated scenario, but if I could understand how the HTTP/1.1 is getting into the socket messages -- that might help me figure out where this whole thing is falling apart.

Has anyone else used sockets in an environment that include a web/cgi application?

TIA,
Rebekah
via Acuserver is running a program on the application server to create a sales order. This is incorrect. AcuServer returns the object file of your application to the machine where the runtime is installed and the program executes on that server -- you are right. what i was trying to get across is that the web server has limited programs on it and no files. i have 5 base programs that control the web program and they are in my cgi-bin on the web server. the web server accesses my data server via AcuServer to run everything else. When the order is created, it is using programs/files located on my data server -- that is the point I wanted to make. I think that this is the point I wasn't working through to: have firewall permissions been set approproiately (if this is a web server many web severs only allow traffic on port 80) * Thanks so much -- I will check this out. We have a specific port we are using for messaging and this may be the whole problem. Thanks, again.

[Migrated content. Thread originally posted on 29 January 2008]

We have an application program that uses C$SOCKET to create instant messages to other users. And, this application works very well.

I also have a web order entry application that is running on a separate machine and I am accessing my data on the regular application server via AcuServer.

My situation/problem is that I am running the web application on the webserver and it is executing using the configuration file and runtime on the webserver, but via Acuserver is running a program on the application server to create a sales order. This works fine. Once the order is created, I wanted to have the program send a message using the instant messaging program we have to notify users that a new web order has been placed. It calls the program successfully, it appears to successfully call the C$SOCKET to create a socket, write to the socket, but when we try to read from the socket to see if the message was successful, we are getting a return value of HTTP/1.1 . And, of course the message does not actually get sent. Something in the C$SOCKETS appears to not work correctly when used in this environment -- or I need to configure the web server differently, or my program that handles the socket routines needs to do something differently.

It is a complicated scenario, but if I could understand how the HTTP/1.1 is getting into the socket messages -- that might help me figure out where this whole thing is falling apart.

Has anyone else used sockets in an environment that include a web/cgi application?

TIA,
Rebekah
via Acuserver is running a program on the application server to create a sales order. This is incorrect. AcuServer returns the object file of your application to the machine where the runtime is installed and the program executes on that server -- you are right. what i was trying to get across is that the web server has limited programs on it and no files. i have 5 base programs that control the web program and they are in my cgi-bin on the web server. the web server accesses my data server via AcuServer to run everything else. When the order is created, it is using programs/files located on my data server -- that is the point I wanted to make. I think that this is the point I wasn't working through to: have firewall permissions been set approproiately (if this is a web server many web severs only allow traffic on port 80) * Thanks so much -- I will check this out. We have a specific port we are using for messaging and this may be the whole problem. Thanks, again.