Can someone give me an example of a basic telnet client that can send
and receive data using WSAAsyncSelect().. to get a notification?
I've come up with something, but it doesn't quite function. Using
Send(), i'm not getting any errors and i'm attaching a CRLF on to the
end of each line, but apart from the inital FD_READ notification when I
connect to a telnet server, I don't get a FD_READ after I send
something, which when I connect to the same server with telnet, and
send the same string, the telnet server will send back a load of text.
Actually, it doesn't matter what text you send to the test telnet
server (a MUD), it will send back the same info. So I'm connecting
fine, the FD_READ seems to be working fine, because it fires when I
connect, then when I send(), no errors - the FD_READ does not fire, so
I can't do anything about the incoming data.
Thanks. 2 8047
"AdamMaynard24" <ad***********@hotmail.comwrote in message
news:11*********************@p79g2000cwp.googlegro ups.com...
Can someone give me an example of a basic telnet client that can send
and receive data using WSAAsyncSelect().. to get a notification?
I've come up with something, but it doesn't quite function. Using
Send(), i'm not getting any errors and i'm attaching a CRLF on to the
end of each line, but apart from the inital FD_READ notification when I
connect to a telnet server, I don't get a FD_READ after I send
something, which when I connect to the same server with telnet, and
send the same string, the telnet server will send back a load of text.
Actually, it doesn't matter what text you send to the test telnet
server (a MUD), it will send back the same info. So I'm connecting
fine, the FD_READ seems to be working fine, because it fires when I
connect, then when I send(), no errors - the FD_READ does not fire, so
I can't do anything about the incoming data.
Thanks.
Make sure you are sending a carriage return '\n' at the end of your
transmission. It may just be that you aren't terminating the send with the
carriage return and the telnet server is still waiting for it. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Michael Foord |
last post by:
#!/usr/bin/python -u
# 15-09-04
# v1.0.0
# auth_example.py
# A simple script manually demonstrating basic authentication.
# Copyright Michael Foord
# Free to use, modify and relicense.
#...
|
by: Daniel Chandran |
last post by:
I am looking for examples on how to write a Socks-4 client example
using the Twisted framework. Has anybody attempted this or aware of
examples?
Thanks,
Daniel
|
by: Michael Goettsche |
last post by:
Hi there,
I'm trying to write a simple server/client example. The client should be able
to send text to the server and the server should distribute the text to all
connected clients. However, it...
|
by: Tommy Naumann |
last post by:
Does anyone know of an example of how to write an FTP client in Visual
Basic.net? I'm trying to automate FTP file
uploads and downloads in VB.
Thanks in Advance
Tommy
|
by: jason |
last post by:
While I wait for my books to arrive.. anticipating the RTFM
responses... I am trying to understand the C# code below. The code is
suppose to be scraping stoke quote info off the MSN site. To help...
|
by: Stimp |
last post by:
Hi all,
I'm trying to read a particular node value from an XML file, but I've
done some searching on the net and there doesn't seem to be a very basic
example.
Basically here's what I want to...
|
by: nitehawk416 |
last post by:
I'm building a mud client, it connects through the winsock control to the server, and it gets the data, sends it back and displays it in a rich text box. I need a way to display the ansi colors that...
|
by: danishce |
last post by:
Hello All:
I am developing a client/server application using vb.net winsock programming.
I am sending data to Server and at the same time receive the incoming data from the server.
My application...
|
by: 7stud |
last post by:
My question pertains to this example:
#!/usr/bin/env python
import socket, sys, time
host = sys.argv
textport = sys.argv
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
|
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...
| |