| View previous topic :: View next topic |
| Author |
Message |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Tue Nov 01, 2005 5:15 am Post subject: VDSIPP PGWARE You There? |
|
|
Quick question. I have a problem with a TCP Server that I am working with in VDSIPP.
Below is what I have
%A = 12.151.5.2
INTERNET TCP,SEND,1,%A
On the remote end I gets nothing.
However if I telnet to the port that is listening on the remote end and type 12.151.5.2 into the telnet window it shows up. Is this something to do with Null characters and if so what should my send line look like?
Thanks. Also could it be the periods in the message im sending that is causing the problem?
Thanks. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Nov 01, 2005 3:11 pm Post subject: |
|
|
To add one more, a NULL char in VDS is expressed with @chr(0). _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Tue Nov 01, 2005 7:55 pm Post subject: No Dice |
|
|
I have tried everything and still no dice. Null characters, line feeds, you name it. I dont know what telnet is doing that the dll isnt but im about to use a network sniffer to try and see what is going over the wire to figure out what is different between telnet and how the application is communicating. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Tue Nov 01, 2005 7:59 pm Post subject: Help File on this Matter |
|
|
In order to use the special directive ^NULL^ you must first turn this feature on within the Internet Protcol Package extension. To do this use the command:
This is what the help file states on this DLL.
INTERNET REPLACENULL, ON
Now anytime you need to send a null character (character 0) place the text ^NULL^ where you need to send a null character. The Internet Protocol Package will then send an actual character 0 in it's place to the intended server/client. Also when you use functions to return text/messages any returned text with a null character will also be replaced with the directive ^NULL^.
The concept here is that character 0's are replaced with readable text ^NULL^, but when actual communication is sent to other client/servers the readable text is then converted back to a null character (character 0). If for any reason you choose to turn this feature off you can use the command:
MY QUESTION IS TO FORMAT - What is the correct format for doing this? I tried ^NULL^ after %A in the script no dice. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu Nov 03, 2005 3:21 pm Post subject: |
|
|
I take it you are communicating with a telnet server??
the command:
INTERNET TCP, SEND, 1, 'whatever text'
automatically adds a linefeed character to the end of the text.
It could be the server does not accept the linefeed characters at the end of the text.
Try using:
INTERNET TCP, SIMPLESEND, 1, 'whatever text'
This does not add any linefeed to the end of the transmission. See if this works with your server.
Your server also may expect some other text or character denoting an end of line rather than a linefeed or character 0.
In regards to your other question. The command:
INTERNET REPLACENULL, ON
allows you to send character 0's within your communications.
You can do something like:
INTERNET TCP, SEND, 1, "whatever text ^NULL^"
This would send - whatever text (and then followed with the character 0).
Also if the server sends any text with a character 0 in it, then it is replaced in your vds app with ^NULL^, allowing you to read in the text completely. |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Thu Nov 03, 2005 4:54 pm Post subject: Thanks |
|
|
The second example you gave me seems to have fixed it. Im connecting to a regular TCP server and it seems to have worked fine using the second method. Gonna update my notes so that I know that I may need to code it this way in the future. Thanks a million. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Sat Nov 05, 2005 2:42 pm Post subject: |
|
|
It's documented in the helpfile It's actually one of the latest commands added into vdsipp before the project was closed.
The UDP protocol also has this command in it as well. There are a few protocols which don't like the line-feed character in it. I know MSN doesn't like it and I think telnet doesn't either. |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Sun Nov 06, 2005 6:08 am Post subject: Yep |
|
|
I saw it in the help file but I didnt know the exact format to do it. So when you posted I tried it and it worked beautifully.
Again thanks for supporting it even though the project is no more. Would it be possible for you to turn over the project to somebody for future development. You probably cant but its worth asking. _________________ K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux... |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Sun Nov 06, 2005 6:21 pm Post subject: |
|
|
| Anybody is free to develop the dll, I include the source code of the dll with the latest installation available here on vdsworld. |
|
| Back to top |
|
 |
|