473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Need to talk to a telnet server and send a telnet break

Hi

I'm looking for some help or a sample of a socket call to talk to a telnet
server and send a telnet break from a C program. I've looked at the Stevens
book and tried examples of his daytime code but can't seem to get the text
from the server to display, much less send a telnet break.

Any help is appreciated.

Jim
Nov 14 '05 #1
5 2512
"Jim Isaacson" <go*****@pacbell.net> wrote in
news:3Y*******************@newssvr14.news.prodigy. com:
I'm looking for some help or a sample of a socket call to talk to a
telnet server and send a telnet break from a C program. I've looked at
the Stevens book and tried examples of his daytime code but can't seem
to get the text from the server to display, much less send a telnet
break.

Any help is appreciated.


Since ISO C does not include networking, we can't help you here. I am
sure, however, that there are newsgroups with 'tcpip' in their names. That
might be a better place to ask.

--
- Mark ->
--
Nov 14 '05 #2
"Jim Isaacson" <go*****@pacbell.net> wrote:
# Hi
#
# I'm looking for some help or a sample of a socket call to talk to a telnet
# server and send a telnet break from a C program. I've looked at the Stevens
# book and tried examples of his daytime code but can't seem to get the text
# from the server to display, much less send a telnet break.

If your real interest is in talking to telnet and not learning socket programming
in C, then don't use C. You do a telnet client in just a few lines with Perl or
Tcl or Expect for easier and faster than doing it in C.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
This is one wacky game show.
Nov 14 '05 #3
I guess I should have stated I need to add this functionality to an existing
C program.

Thanks anyway, I check out the tcpip groups.
"SM Ryan" <wy*****@tango-sierra-oscar-foxtrot-tango.fake.org> wrote in
message news:10*************@corp.supernews.com...
"Jim Isaacson" <go*****@pacbell.net> wrote:
# Hi
#
# I'm looking for some help or a sample of a socket call to talk to a telnet # server and send a telnet break from a C program. I've looked at the Stevens # book and tried examples of his daytime code but can't seem to get the text # from the server to display, much less send a telnet break.

If your real interest is in talking to telnet and not learning socket programming in C, then don't use C. You do a telnet client in just a few lines with Perl or Tcl or Expect for easier and faster than doing it in C.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
This is one wacky game show.

Nov 14 '05 #4
Jim Isaacson <go*****@pacbell.net> spoke thus:
I guess I should have stated I need to add this functionality to an existing
C program. Thanks anyway, I check out the tcpip groups.


That's a good plan:

http://www.ungerhu.com/jxh/clc.welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Nov 14 '05 #5
Jim Isaacson wrote:
I guess I should have stated I need to add this functionality to an
existing C program.


1. Please don't top-post. Your reply belongs following properly trimmed
quoted material.

2. There is no way to accomplish what you want in ISO standard C, the
topic of this newsgroup. It doesn't matter that you have a C program
you want to add to.

You need to find a newsgroup that deals with your particular platform.
You mention the Stevens book, so likely comp.unix.programmer is a good
choice.


Brian
Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert PADOVANO | last post by:
Hello, I wish to establish a connection in language PHP on a UNIX server by telnet. In fact, I would like : - Connect to server by sending IP adress, login, password - Send an order (example:...
5
by: G520 | last post by:
Hi I have been getting statistical rapports from a machine via a telnet server. Until now it has been done manually. However I want to automate the proccess, and scedule a PHP script to run...
2
by: Dan | last post by:
I'm writing a simplistic telnet client in VB6 and I've run into a small snag. The program has a textbox to write in the string to be sent using ..SendData and has another textbox that displays...
3
by: Yannick Turgeon | last post by:
Hello all, I'm currently trying to pass commands to a telnet session and get the texte generated (stdin + stdout) by the session. The problem I get is that the Telnet.read_until() function...
6
by: Donnal Walter | last post by:
Several months ago I tried using the telnet module (on Windows XP) to communicate with a proprietary host on our network. This was unsuccessful due to problems with "option negotiation", and I gave...
1
by: StevenBarnes | last post by:
I need to have some .Net code be able to send Email using my ISP's SMTP server. I found some articles on how to use the MAIL FROM: and RCPT TO: commands that you can stream to a tcp connection on...
2
by: mnsindhu74 | last post by:
I want to implement telnet client in C#. I am able to connect to the telnet server in windows XP and do the negotiations. I also get the login prompt.After I send the username I get password...
0
by: knowthediff | last post by:
Hello, I have a VS 2005 windows form app that I am creating. It uses Async socket to telnet which sends and receives commands. Everything seems to be working fine until I attempt to process a...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.