VS 2008 - Sends Data Via Telnet Locally On The PC

May 17, 2009

I have two main troubles. The most important is the telnet one. I have another program which sends data via telnet locally on the PC. It requires a login and optional pass. I can connect and draw data which comes in 77 byte packets.

The problem is, the first packet of data doesn't display until the 2nd one comes in, which for this arrangement could 10s or 24 hours depending on the final user's intended use. This staggered data rx continues until termination of the program. I've used tcpClient.Available() to confirm that my app is seeing the data almost the instant it leaves the other program but for some reason the message isn't passed until the 2nd packet arrives. I'm sure I've probably implemented this in a most cumbersome way so any streamlining.

The second issue (which is contributing in part to the first) is the timer which here uses a freeby snip from a forum somewhere - it screws with the app's menu's controls and program flow. I've tried the VB2008 timer but can't seem to make sense of the best way to use it in this context. I think I've been looking at the screen too long and can't see the obvious.

Imports System.Net
Imports System.Net.Sockets

Public Class Form1

[CODE]...

View 1 Replies


ADVERTISEMENT

Socket Programming And Telnet Class For .NET To Simplify The Sending And Receiving Of Data?

Sep 28, 2009

I'm writing a GUI-based app in VB.net that talks to a LambdaMOO server via telnet, sends commands to display the object hierarchy, then parses the output and creates a visual representation of the object hierarchy.So my question is: is there some kind of "telnet client" class for .NET to simplify the sending and receiving of data, or do I have to write my own using the socket API?

View 7 Replies

VS 2008 Automated Telnet?

Oct 28, 2009

I'm new to VB and i'm using VS 2008, i just wanted to know if there's a set of instructions you can provide me that can enable me to auto login when you telnet on a node. That is when you telnet an ip address of that particular node it will automatically log on the system with your username and password already inserted in the instruction. So it wont have to prompt a screen saying insert username or password

View 1 Replies

Store Tabular Data Locally On User's Computer?

Feb 1, 2010

I am currently developing an application that will require each end user to specify a rather large set of tabular data specific to his/her own preferences. Each time the user starts the application, it will load this set of data.

what is the best way to store this data locally on the end user's local machine? Should I use XML, Access mdb, flat text files?

View 2 Replies

Security - Save User Profile Data Locally And Securely?

Mar 29, 2010

I am creating a VB.NET application for a Calculus class as a little side-project. It requires user profiles that are saved locally in the program's main files. I am using 2 separate classes to access the user profiles right now.

The first class is called Config and it is used to manipulate the basic config file which contains lesson document paths, settings, and user profile names.

The second class is called User and it is used to load up user profiles from a profile directory where user data is saved in separate text files.

The Config class retrieves the user names, and user profile text file paths. This text file path is then handed off to a User object that can then load up and interpret the file.

how should I format the config file and user files so they are secure enough that someone can not easily retrieve or manipulate data?

Here is a sample of how I am reading the text files:

Dim userList() As String = {Nothing}
If My.Computer.FileSystem.FileExists(configPath + "config.cfg") Then
Using MyReader As New Microsoft.VisualBasic.FileIO.TextFieldParser(configPath + "config.cfg")

[Code]....

The problem isn't reading the text file, I am just not sure how to make it secure. I was thinking about first parsing the entire file to translate it from 'encrypted' to text, and then save it as a temporary file which I would pass off to the above code, then delete the file immediately afterward. As for 'encrypting' (is that the right word for this?) the file, I could maybe bit-shift each character using a key that I would save at the beginning of the file.

View 2 Replies

Create A Program That Sends & Receives Data Via Rs232?

Apr 15, 2010

I need to create a program that sends & receives data via rs232. I have done it many times in VB6 with easy.

Why is so hard in vs2008?

I managed to send (or so I think). Because I can see the LEDs flashing on my board connected to the pc. But I do not get any response back from the board.

The reason I do it in vs2008, is because I need the program to run on a PDA. But to understand how rs232 works in vs2008, I just created a simple program for the pc to talk to my board.

for example, I send:

SerialPort1.Write(Chr(2) & "I" & Chr(3)) and I expect back (into a textbox), a hex string 25 characters long.

The board also send data to rs232 sometimes, without me requesting it.

View 6 Replies

Develop An App That Sends Data From Client To Server And Vice Versa?

Aug 3, 2011

i wanted to develop an apps that sends sends data from client to server and vice versa. i want to build it with help of winsock in vb 2008 using tcp.

View 2 Replies

VS 2008 Display A Locally Stored HTML File In WebBrowser1

Jun 10, 2009

how I can get the WebBrowser1 control to display an HTML file stored locally on disk when it launches, similar to a homepage. My attempts have all resulted in failure. I am currently trying the following:

[Code]...

If you need me to supply more information, I am happy to do so.

View 22 Replies

VS 2008 Make A Program That Sends An AT^ Command To A Port?

Aug 29, 2010

I want to make a program that sends an AT^ command to a port The AT^ Command is

AT^CARDLOCK="TEXT IN TEXT BOX 1"

View 4 Replies

VS 2008 Use Microsoft Access Database For Windows Mobile Application And Save This Mdb File Locally In The Pocket Pc?

Feb 3, 2012

Is it possible to use microsoft access database for Windows mobile application and save this mdb file locally in the pocket pc?because im trying to make an application to connect to mdb database but this imports seems to be not working.

HTML
Imports System.Data.oledb

oledb is not a member of system.data. why?

View 1 Replies

Communicate To Telnet In Program?

Jan 27, 2010

How to send commands to a telnet session and then read the output from the telnet session?

I can easily create a Telnet session using something like this[code]...

View 2 Replies

Communications :: Using Telnet To Read A Sensor

Jul 28, 2009

I am using Telnet in VB to read a temperature and RH sensor. I don't know that the data is the exact same length every time. I have pasted the code below. This code does get the data back. I have also pasted the unparsed and parsed data as well.... Sometimes I get more or less data than the time before and I think this is because I am not reading the entire buffer. How can I make this code run a little better so that I can get the proper data every time? Below the code is a sample of several readings. You can see how I get bad data periodically.

Unparsed
" 24.4155 45.2235 11.7921 200.9005 45.2372 45.2235 -42.0242"
Parsed (replaced " " with , and then " " with ,)

[Code].....

View 2 Replies

Send Commands To The Telnet Session Via Vb?

Dec 14, 2009

i'm trieing to configure a mp3 recorder via telnet and visual basic.how can i send commands to the telnet session via vb?I can make connection with it via telnet and ip adress , but after that i wil send the command for login( login=hdr1) ANd with another butten for example (transport=play)How can i do that?

[Code]...

View 1 Replies

VS 2010 Sending A Command To Telnet?

Apr 14, 2010

I have wrote a nice little app in VB.Net to connect to an IP device via telnet and send a command, then write the reply to this command into a text file.I have everything working appart from the command.I need to send "Ctrl+a I2100" so if I was doing it manually in a dos box with telnet I would connect, then hold down Ctrl key and a then release, then type I2100 How do I do the Ctrl+a bit in VB. The line of code I have at the moment, is

client.SendCommand("Ctrl testing")

Now this obviously sends the word Ctrl testing to the telnet device.

View 1 Replies

Test Telnet Communication On Remote Computer Using .net?

Feb 2, 2012

I have a central server and I need to write a bit of vb.net which will see if I can telnet to a specified server on a specified port.Is there anyway this can be done in VB.net? I thought about sending command prompts to the remote server to execute telnet, then output the logs of netsh and read those and send the information back to the central server for review.

Its a very messy way of doing it, so I was just wondering if there was an easier way

View 3 Replies

Writing A Telnet Client Using System.net.tcpclient

Aug 18, 2010

This isn't working for me when I connect to my solaris box

The server is sending back

Imports System.Net
Imports System.Net.Sockets
Imports System.Text

[Code]....

View 2 Replies

Sends Data On A Networkstream Through A Tcp Connection - Error "An Established Connection Was Aborted By The Software In Your Host Machine"

Aug 18, 2009

I have a program that sends some data on a networkstream through a tcp connection.

[Code]...

View 1 Replies

Send And Receive Information From A Client Via Telnet Applciation

Apr 1, 2011

An currently writing a vb.net application to send and receive information from a client via telnet. Am using System.net.Sockets to do this. I can send data great and get data back is ok. So the Problem is in the command window after I telnet in to the server application, when i press the delete key the cursor moves back a character and doesn't delete the character, just over writes it and when I read the bytes in I get the deleted character and the ascii value for the delete key and then the replacement character. I have seen another telnet application that shows the deletion of characters in the Command window.

View 1 Replies

Make A Telnet Application To Communicate With A Special Video Player?

May 28, 2009

I am trying to make a telnet application to communicate with a special video player I have, I have gotten the telnet session to connect to the video player (server) but it won't respond back....I think the problem might be with the coding...the strData string below is supposed to be the replies I get back from the server, but it won't show any strings on the screen.

[Code]...

View 5 Replies

[2005] Make An Application Which Logs On To A Server Using The Telnet Protocol?

May 9, 2008

I am trying to make an application which logs on to a server using the telnet protocol runs a couple of commands and stores the output of these commands in a text file.The problem is that I cant really seem to figure out how to negotiate the telnet commands. I have done a packet capture of a telnet session todifferent servers using a packet capturing program and I dont seem to find any fixed pattern. Every server negotiates the command in its own different way and in a different sequence, moreover the commands exchanged are not the same.

What I want to do is to exchange the bare minimum commands which will allow me to log on to any server via telnet, run my commands, take the output and logout.I have searched the internet for such a set of 'general' telnet commands but I wasnt able to find any.

View 13 Replies

C# - Locally Unique Identifier?

Aug 14, 2010

Question: When you have a .NET GUID for inserting in a database, it's structure is like this:

60 bits of timestamp,
48 bits of computer identifier,
14 bits of uniquifier, and
6 bits are fixed,

128 bits total Now I have problem with a GUID, because it's a 128 bit number, and some of the DBs I'm using only support 64 bit numbers. Now I don't want to solve the dilemma by using an autoincrement bigint value, since I want to be able to do offline replication.

[Code]...

View 3 Replies

Located Files Locally?

Jul 1, 2010

Well whenever I reference a file I have been doing so using the full C://location/here kinda way, but my next program will be on CD so I need to figure a way to locate files that will be on the CD drive.In other languages I have used, %A_ScriptDir% and then go from there, is there something similar in vb?

View 10 Replies

Asp.net + Previewing An Image Without Saving It Locally?

Nov 15, 2011

I a function belows which is being used to preview an image but that involves saving the image locally in my drive. I am using this feature in an data entry form which means if the user discards the form, I have to delete the image which I feel is not efficient. How can I go about previewing the image and only save it locally if the user saves the form.

Protected Sub save_btn_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn_Save.Click
If uifuVouTypeUploadfile.PostedFile IsNot Nothing Then

[Code]....

View 1 Replies

How To Connect Locally On Server Machine

Jan 29, 2011

How to connect locally on server machine?

View 1 Replies

Program Runs Locally In Vis Web Dev But Not On Server

Sep 10, 2010

I created a program in MS Visual Web Developer 2010. It has a form that simply launches a script that manipulates a database. The project lives in several files and they are all inherited so they see each other and it accesses a MSSQL Express DB on one of our servers.

When I F5-Run the project locally on my PC it works fabulously. When I copy it to a web-enabled (application) folder on the server it executes but almost my very first line of code fails with this error[code]...

View 1 Replies

VS 2010 Best Way To Locally Save Settings?

Jul 31, 2011

I'm looking for the best way to locally save settings to an application.I want the settings to "attach" themselves to the executable of the application so that I can send the application to another PC and still have the settings.The purpose of this is for a server that is going to issue an executable to anyone who requests it, the server sends an executable with the callback settings hardcoded into the application (for example IP, port and other settings) so that the application can connect to the server.I can't hardcode the settings in the source code because the application is going to be issued by different servers which of course, will need a different connection setting.I also don't want the settings to be stored on a file or any other "external" resource since then, the settings could be changed which could open security holes to exploit the application.So what I want to do: I want an executable to have some settings attached which will be set by another application. How can I set the settings of one application with another? And how can I efficiently save the settings internally on an application and then copy the file to another PC while still having the settings?

View 6 Replies

.net - Securely Storing A Password Locally That Is Used For Web Service?

Apr 27, 2011

I have an application that authenticates against a third party web service by sending a username and password. At the moment I'm typing the password on a winform each time I start the application - but I need it to login automatically.

I'd like to store the username/password somewhat more securely than

Dim username as String = "username"
Dim password as String = "password"

I understand that I probably won't stop a determined hacker with access to my source code, but storing them as plaintext feels wrong. I've found some similar questions on here but none that provide me with an answer I can use.

Edit: The web service isn't mine, it's an API that requires me to login to use.

View 1 Replies

App Runs Fine Locally But CLR Error Over Network?

Apr 3, 2009

I have an application that runs just fine if I execute it from a local drive, however when I deploy the files to a network location and run the file I get a "Common Language Runtime Debugging Serivces - Application has generated an exception that could not be handled process id bla bla bla, OK to terminate, Cancel to debug"

View 3 Replies

Check Whether Application Is Running Locally Or Remotely?

Apr 21, 2010

My desktop application is developed in VB.Net and can be run through two types of users, one who install it on their local machine and execute locally.

Second type of users will run the application remotely from the server.i.e. Application will install on the server and user will execute that application from client side. Server can be a Citrix Meta Frame or any server accessed through Remote Desktop Connection. I want to maintain single exe for both types of users.

Is there any mechanism/way through which I can come to know programmatically whether application is running locally or remotely?

View 8 Replies

Check Programmatically Whether Application Is Running Locally Or Remotely?

Apr 21, 2010

My desktop application is developed in VB.Net and can be run through two types of users, one who install it on their local machine and execute locally.

Second type of users will run the application remotely from the server.i.e. Application will install on the server and user will execute that application from client side. Server can be a Citrix Meta Frame or any server accessed through Remote Desktop Connection.

I want to maintain single exe for both types of users.

Question:

Is there any mechanism/way through which I can come to know programmatically whether application is running locally or remotely?

View 13 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved