By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 1,957 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

How to terminate a telnet session from within your C/C++ program

P: n/a
Dear all,

Given the following challenge:
1. The application is an exe on a W2K server
2. User logs via telnet to the server
3. After checking the user account and password, a bat file runs
cmd.exe that starts the app.
4. The app starts looking for another instance of itself and if it was
found it will kill the instance (but not the telnet session that
originally started the instance as described in 1. to 3.)
5. Since the server allows only 2 telnet sessions, as a consequence,
the next log-in will be refused even there is only one or none
application.

I am looking for a piece of code that will be plugged into the app
and:
1. will not only look for aonther instance of itself but also for the
telnet session that has started the instance and kill this session.

I appreciate any help/hints you can give us,

Michael
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Michael wrote:
Dear all,

Given the following challenge:
1. The application is an exe on a W2K server
2. User logs via telnet to the server
3. After checking the user account and password, a bat file runs
cmd.exe that starts the app.
4. The app starts looking for another instance of itself and if it was
found it will kill the instance (but not the telnet session that
originally started the instance as described in 1. to 3.)
5. Since the server allows only 2 telnet sessions, as a consequence,
the next log-in will be refused even there is only one or none
application.

I am looking for a piece of code that will be plugged into the app
and:
1. will not only look for aonther instance of itself but also for the
telnet session that has started the instance and kill this session.

I appreciate any help/hints you can give us,


Hint: you are asking your question in the wrong newsgroup. This one is for
the C++ language and not the telnet protocol or socket programming.

--
Attila aka WW
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.