Computer Science Canada

How Do I Email .txt Files?

Author:  Anonymous [ Sat May 20, 2006 2:05 pm ]
Post subject:  How Do I Email .txt Files?

I was wondering how would I be able to email information using Turing. Here is my code:


var file : int
var ch : char
loop
if hasch then
ch := getchar
put ch ..
open : file, "typed_stuff.txt", put, mod, seek
seek : file, *
put : file, ch ..
close : file
end if
end loop


I want to email the typed_stuff.txt to my email.

Author:  Cervantes [ Sat May 20, 2006 2:11 pm ]
Post subject: 

I'm pretty sure you'll have to know the SMTP protocol. Check out Wikipedia's article on SMTP.

Author:  Anonymous [ Sat May 20, 2006 2:13 pm ]
Post subject:  Errm

Could you translate that into a block of Turing code and display it here please =) I'll love you so much if you do.

Author:  [Gandalf] [ Sat May 20, 2006 7:23 pm ]
Post subject: 

No, that would be doing the work for you. You're going to have to learn it yourself, though I'm sure you'll be able to get help from various people. It won't be too difficult using Turing's Net module.

Author:  Anonymous [ Tue May 23, 2006 10:01 am ]
Post subject: 

I tried again and again and I still don't understand it! Grrrraaawwwwrrrrrr!
Please help =...( *sniffs*

PS (I always click new topic when post reply!! Maybe switch positions of the two)

Author:  Andy [ Tue May 23, 2006 11:01 am ]
Post subject: 

or learn to read before you click? oh wait, you just asked us to do your work for you.. hmm maybe you didnt read the site policy before clicking agree

Author:  Anonymous [ Tue May 23, 2006 2:37 pm ]
Post subject: 

Im not asking for you to do it for me . I said "please help". I researched and read for like half an hour on all this emailing stuff that didn't help me. I can open a new connection, but not with gmail or hotmail! It gives me an error when I read the page. I didn't think it would be this hard. Is there like a command like, "Net.SendData("file.txt") to Server(gmail.com) @ email address (102.15.66.104) or something!

Author:  Cervantes [ Tue May 23, 2006 3:20 pm ]
Post subject: 

Just look at the Turing Help file under 'Net'.

Turing Reference wrote:

WaitForConnection Waits until a client connects to a specified port.
OpenConnection Opens a connection to a specified machine.
OpenURLConnection Opens a connection to a file specified by a URL.
CloseConnection Closes a specified connection.
BytesAvailable Returns the number of bytes available to be read from a net stream.
CharAvailable Returns true if there is a character available to be read from a net stream.
LineAvailable Returns true if there is a line of text available to be read from a net stream.
TokenAvailable Returns true if there is a token available to be read from a net stream.
HostAddressFromName Returns a host's address given its host name.
HostNameFromAddress Returns a host's name given its address.
LocalAddress Returns the host name of the local machine.
LocalName Returns the TCP/IP address of the local machine.

None of those look like a Net.SendData or Net.SendFile.
So, no.

Half an hour isn't very long. You should do some more research. We've pointed you in the right direction; you've got to take a step for yourself.

Author:  [Gandalf] [ Thu May 25, 2006 9:35 pm ]
Post subject: 

Out of curiosity, I implemented SMTP in Turing, so now you definately know it's possible. Wink As long as you read up on what to do and know how to send data (not files) using the Net module it's really easy, though different servers handle things a bit differently so you might have to do some modifying.

Anyway, what I wanted to point out is that you won't be connecting to gmail.com. You will find all the info/links you need on the wikipedia article Cervantes pointed out, including server and port.

Finally, if you don't already, you should know how to use file I/O before using it on a Net stream.

Author:  Anonymous [ Thu May 25, 2006 9:50 pm ]
Post subject: 

So what could I send data to? If I can't send to gmail, what about hotmail? Or what about Thunderbird or Outlook Express?

I'm kinda giving up right now on emailing through Turing because the way I learn is by watching others do it. I tired on my own and my teacher can't help me because he never uses Net. All I need is some small sample code to start off with that I can build on or something. I can do Net.OpenCOnnection, Net.WaitForConnection, and some other things when my friend is running it too, like Net.BytesAvailiable etc. But none of that works when I try to connect to a website.

Author:  [Gandalf] [ Thu May 25, 2006 10:54 pm ]
Post subject: 

vahnx wrote:
So what could I send data to? If I can't send to gmail, what about hotmail? Or what about Thunderbird or Outlook Express?

Like I said, read the wikipedia article Cervantes linked to, you'll find the information there. You can still send emails to gmail, what I was saying is that you don't connect to gmail.com.

I'll try helping you out more if you can tell me what port and server to connect to first (for whatever SMTP server you want).

Author:  Anonymous [ Sat Jun 03, 2006 1:24 pm ]
Post subject: 

Ok I just re-read that article for like the fourth time and don't like understand a word of it. Maybe I have ADD or something.

Quote:

S: 220 www.example.com ESMTP Postfix
C: HELO mydomain.com
S: 250 Hello mydomain.com
C: MAIL FROM:<sender@mydomain.com>
S: 250 Ok
C: RCPT TO:<friend@example.com>
S: 250 Ok
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: Subject: test message
C: From: sender@mydomain.com
C: To: friend@example.com
C:
C: Hello,
C: This is a test.
C: Goodbye.
C: .
S: 250 Ok: queued as 12345
C: QUIT
S: 221 Bye


What does the above mean?

Author:  Cervantes [ Sat Jun 03, 2006 2:56 pm ]
Post subject: 

Please don't post 3 times in 2 minutes when it could all be in the one post. I've cleaned that up.

That would be the dialogue between server (S) and client (C).

To send an email with Turing, you'd have to open a connection to the SMTP server and follow that SMTP protocol. Try to mimick that dialogue that is given.

Author:  Anonymous [ Sun Jun 04, 2006 1:22 am ]
Post subject: 

Well the edit button was disabled in the Turing Help section because of people getting the help they needed then editing their posts to make them not look as stupid, or something of that regards. And I didn't feel like copying, deleting, then re-posting.

And when I posted multiple times within 3 minutes, I thought of something more to add on to be more specific Very Happy

Author:  Anonymous [ Sun Jun 04, 2006 1:34 am ]
Post subject: 

Cervantes wrote:
Please don't post 3 times in 2 minutes when it could all be in the one post. I've cleaned that up.

That would be the dialogue between server (S) and client (C).

To send an email with Turing, you'd have to open a connection to the SMTP server and follow that SMTP protocol. Try to mimick that dialogue that is given.


To mimic that dialogue using Turing, I'll try my best here:

code:

var stream := Net.OpenConnection ("www.gmail.com", 25)
put : stream, "Hello www.gmail.com"


Am I on the right track so far? And do I have to learn Net.TokenAvaliable or something? Turing talks nothing about SMTP Protocol and I don't understand how to interpret it to Turing.

Author:  Cervantes [ Sun Jun 04, 2006 8:24 am ]
Post subject: 

vahnx wrote:

code:

var stream := Net.OpenConnection ("www.gmail.com", 25)
put : stream, "Hello www.gmail.com"



Notice in the quote you posted it used "HELO" not "Hello".
Also, you didn't get the first (220) line from the server.

I don't know if you'll need Net.TokenAvailable. Keep trying.

Author:  Anonymous [ Sun Jun 04, 2006 11:18 am ]
Post subject: 

Oh sorry. It was confusing cause it kept saying Hello, I didn't notice one 'L' was missing. And you said I need to get a line? Would that be like this?

code:

var line : message
var stream := Net.OpenConnection ("www.gmail.com", 25)
put : stream, "Hello www.gmail.com"
get : netstream, line

Author:  Anonymous [ Sun Jun 04, 2006 11:19 am ]
Post subject: 

Instead of 'var line : message', I ment to put 'var line : string'.

Author:  Cervantes [ Sun Jun 04, 2006 11:36 am ]
Post subject: 

vahnx wrote:
Oh sorry. It was confusing cause it kept saying Hello, I didn't notice one 'L' was missing. And you said I need to get a line? Would that be like this?

code:

var line : message
var stream := Net.OpenConnection ("www.gmail.com", 25)
put : stream, "Hello www.gmail.com"
get : netstream, line


Not quite. You open the connection, then the server sends a line, then you send the "HELO" line. So the get line would have to go before the put line.

Author:  Anonymous [ Sun Jun 04, 2006 12:20 pm ]
Post subject: 

Ok, so far it seems cool.
code:

var line, URL : string
colour (13)
put "Enter a website: " ..
colour (green)
get URL
colour (black)
put "Connecting to " ..
colour (42)
put URL
var stream := Net.OpenConnection (URL, 25)
if stream = -10 then
    colour (brightred)
    put "Connection Failed!"
    return
end if
get : stream, line
colour (104)
put "Found line " ..
colour (150)
put line

When I try to connect to "www.gmail.ca", it returns "Connection Failed". But if I type "www.goolge.ca", it returns 220. If you test this and enter www.putfile.com, it gives "220-mainconnect2.putfile.com" for some reason.

Author:  Anonymous [ Sun Jun 04, 2006 12:43 pm ]
Post subject: 

If I add
code:
put : stream, "HELO"
would the site see it?

Author:  Cervantes [ Sun Jun 04, 2006 1:20 pm ]
Post subject: 

It should.
Why don't you try it? See what the server returns.

Author:  [Gandalf] [ Sun Jun 04, 2006 4:49 pm ]
Post subject: 

vahnx, I've already told you... You're not going to be connecting directly to gmail.com to send a email to an @gmail.com e-mail address. You're going to be connecting to their smtp server, which you can find on that wikipedia article.

Other than that you just need to imitate the client portion of that dialogue, and recieve the server output.

Author:  Anonymous [ Sun Jun 04, 2006 5:41 pm ]
Post subject: 

It doesnt give me Gmail's SMPT server in your article.

Author:  Anonymous [ Sun Jun 04, 2006 5:50 pm ]
Post subject: 

Here is my code so far:
code:

var line, URL : string
colour (13)
put "Enter a website: " ..
colour (green)
get URL %enter the url to connect to
colour (black)
put "Connecting to " ..
colour (42)
put URL
var stream := Net.OpenConnection (URL, 25) %begins to connect on port 25
if stream = -10 then %checks if connection failed
    colour (brightred)
    put "Connection Failed!"
    return
end if
get : stream, line %gets first line from the net stream
colour (104)
put "Found line " ..
colour (150)
put line

% for i : 1 .. 4500
%     exit when hasch
%     locate (4, 1)
%     put : stream, "Hello ", URL %speaks with the URL
%     put "Spamming ", URL, " #", i, " (Press Any Key To Stop)"
% end for

loop
    get : stream, line : *
    locate (5, 1)
    colour (blue)
    put line
end loop

Author:  Anonymous [ Sun Jun 04, 2006 5:53 pm ]
Post subject: 

Now with that code, my result for example 'www.putfile.com', is:

Found line 220-mainconnect2.putfile.com
220 and/or bulk e-mail.

Author:  unknowngiver [ Tue Jun 20, 2006 7:29 pm ]
Post subject: 

hey vahnx did u finally get it? i was following this thread cuz i wanted to learn how to do it too...

Author:  [Gandalf] [ Wed Jun 21, 2006 7:49 am ]
Post subject: 

To learn just follow the instructions in this thread. It's much more beneficial than copying the source code from him (if he's gotten it..).

Author:  Anonymous [ Wed Jun 21, 2006 4:58 pm ]
Post subject: 

So far no one has helped me at all. I read the article and it makes no sense. I am partially computer illerterate. So that SMPT thing makes NO SENSE to me at all. I don't think you can send emails through Turing, if so, why doesn't anyone post some code up that does it. Trust me, I will not learn by people giving me small hints such as reading up on SMPT, cause I have no clue what the article is talking about.

Author:  Anonymous [ Sun Jul 16, 2006 8:57 pm ]
Post subject: 

Ok so far I got SMTP means Simple Mail Transfer Protocol. So if I use Net.OpenURLConnection with Gmail, how am I able to tell it that I wish to send data to my email address.

Author:  Cervantes [ Sun Jul 16, 2006 10:17 pm ]
Post subject: 

vahnx wrote:
I don't think you can send emails through Turing, if so, why doesn't anyone post some code up that does it.

A) I think you can.
B) If someone is interested in doing this, they will. Realize that it takes some time to help you with this, because most of us haven't dabbled with the SMTP protocol ourselves. You're the first to do this with Turing. You're a pioneer.

Well, you're not a pioneer yet. You haven't done it yet. So get that brain cracking. Do it yourself and you'll have something to be proud of.

Don't be afraid to look for resources other than wikipedia. Don't be afraid to look at code in other languages.

Author:  MysticVegeta [ Sun Jul 16, 2006 11:55 pm ]
Post subject: 

vahnx wrote:
So far no one has helped me at all. I read the article and it makes no sense. I am partially computer illerterate. So that SMPT thing makes NO SENSE to me at all. I don't think you can send emails through Turing, if so, why doesn't anyone post some code up that does it. Trust me, I will not learn by people giving me small hints such as reading up on SMPT, cause I have no clue what the article is talking about.


did you try google? I searched for this:
http://www.google.com/search?sourceid=navclient-ff&ie=UTF-8&rlz=1B2GGGL_enCA177&q=gmail+smtp+server

and I got this:
http://www.lifehacker.com/software/email-apps/how-to-use-gmail-as-your-smtp-server-111166.php

also this:
http://www.digg.com/tech_news/How_to_use_Gmail_as_your_SMTP_server

Author:  [Gandalf] [ Mon Jul 17, 2006 12:34 am ]
Post subject: 

/me sighs but refrains from contradicting Cervantes.

vahnx, you send it the client parts of a "conversation" between SMTP client and server. As shown in the dialogue in that Wikipedia article, you have to follow the protocol and send the right messages. You can get a lot more from that article than what the acronym stands for...

And I will tell you for the fourth time, you will not be connecting the gmail.com as per:
code:
var stream := Net.OpenConnection ("www.gmail.com", 25)

You will be connecting to the Google smtp server.

To recieve more help, show me that you can actually learn something without it being handed right to you, and ask specific questions.

Author:  MysticVegeta [ Mon Jul 17, 2006 11:19 am ]
Post subject: 

Vahnx, the second link I sent you also stated it that the smtp server of google is:

Quote:
smtp.google.com
Just look it out

Author:  Anonymous [ Mon Jul 17, 2006 4:01 pm ]
Post subject: 

Ok I'll try this later. So I look at your second link and I should find out how. Cool. I'll check it out!

Author:  Reals [ Sat Jul 22, 2006 4:32 pm ]
Post subject: 

I dont think this will work, becuase dont you have do have a secure connection TLS ?!?! I tried to do it in Telnet with my ISP and thats what they told me. I'm sure if i can get it to work in Telnet i could write a program in Turing to do it for me. Any Idea's?

Author:  Reals [ Sat Jul 22, 2006 5:13 pm ]
Post subject: 

Kinda confused here, this web site says my ISP blocks port 25?!?!? https://desk.lunarpages.com/faq.php?do=article&articleid=248

Author:  Reals [ Sat Jul 22, 2006 5:18 pm ]
Post subject: 

1 More thing, Dont you have to login with a user name and password somewhere when using telnet for smtp?!?

Author:  Reals [ Sun Jul 23, 2006 1:35 pm ]
Post subject: 

ok through some more research i got my program to connect to the smtp server, login with base64 encoded, it tells the smtp server who it's from and who to send it to. after that it tells me to write the body of the e-mail, i put in a messgae and i get an error after i'm done, the smtp server giving me a link and on the web site it says the problem is that i'm sending bare LF. and it needs to be in crlf format. How can i fix this?

This is the link it gave me http://cr.yp.to/docs/smtplf.html

Thanks

Author:  r.3volved [ Sun Jul 23, 2006 4:36 pm ]
Post subject: 

Try this then...

1. Telnet into an smtp service running from wherever you can find one. (most server admins don't lock this off, so you should be able to find an open one in your first google search)

2. Start messing with commands. Apply the knowledge you gained from reading the above postings about protocol and start sending mail to yourself.
Just as the dialogue that was posted earlier, do it in telnet using either the windows telnet client or putty (using RAW formatting)

3. Once you figure out how to successfully send mail via smtp over telnet then you simply have to design your application to automate everything you did by hand.


You don't know enough about the problem yet to design a successful solution.

Author:  Reals [ Sun Jul 23, 2006 5:55 pm ]
Post subject: 

It works for me tho telnet, just not in my program for some reason, it has to be in ASCII text or something (MiME).

Author:  [Gandalf] [ Sun Jul 23, 2006 9:00 pm ]
Post subject: 

Once you figure out what <cr><lf> means, it's as simple as adding two characters to your code. Smile
Note: The solution is the same is most languages, it's not Turing specific.

Author:  Reals [ Sun Jul 23, 2006 9:25 pm ]
Post subject: 

umm <CR> is Carriage Return and <LF> is Line Feed, i understand that now, looks like it used for printers. umm but i still have no idea how to use this, i need an example. do you type it like this "cheese"<CR>.<LF>" ??

Author:  r.3volved [ Sun Jul 23, 2006 9:42 pm ]
Post subject: 

I haven't used turing since I learned a real language, but read an ascii chart and find out the ascii code for both cr and lf
You should have an ascii chart bookmarked in your browser if you're a coder...otherwise copy it into a text file somewhere

...otherwise, most languages allow you to append \r\n to your string variable for carriage return and linefeed

Author:  Anonymous [ Mon Jul 24, 2006 12:33 am ]
Post subject: 

What the hell are you guys all talking about? Does this stuff have anything to do using Turing to send a simple message to an email?

Author:  Anonymous [ Mon Jul 24, 2006 12:33 am ]
Post subject: 

Or is there a better language to do this in?

Author:  Anonymous [ Mon Jul 24, 2006 12:34 am ]
Post subject: 

BTW This is the only forum I know where you cannot edit your messages when you ask for help...

Author:  Mazer [ Mon Jul 24, 2006 7:21 am ]
Post subject: 

vahnx wrote:
What the hell are you guys all talking about? Does this stuff have anything to do using Turing to send a simple message to an email?

Yes. Have you still not read the wikipedia article for SMTP? They even have a sample telnet session for connecting to a server and sending an email.

vahnx wrote:
Or is there a better language to do this in?

Well, it's Turing, so yes. But I wouldn't advise learning a new language learning a new language with the intention of making this program. Learn the language for the sake of learning the language; don't rush it.
Anyway, you've already got the built in net commands in Turing, so that's one good thing.

vahnx wrote:
BTW This is the only forum I know where you cannot edit your messages when you ask for help...

Yes. It's been discussed a few times in the past. One solution is to take the time to think about what you want to say in your post instead of firing off a sentence like it's an instant message. Also hitting preview. A few extra seconds before posting can sometimes be enough to remind you of some point you missed.

Author:  r.3volved [ Mon Jul 24, 2006 10:21 am ]
Post subject: 

vahnx wrote:
What the hell are you guys all talking about? Does this stuff have anything to do using Turing to send a simple message to an email?


How are you supposed to automate an email client when you don't know how to send email manually??

I can't tell if you are new to programming, or if you just don't have a problem solver's mindset...but as I stated before, you need to research your problem before you can even begin to develop any sort of solution.

Programmers are problem solvers. Thats what we do...and in order to solve the problem, you first have to understand said problem. Real developers do not run by the seat of their pants.

Have you ever heard of systems analysis and design?
...How about R.A.D.I.T?
Research
Analyze
Design
Implement
Test
...How about the systems development lifecycle?
Do you know what a Usecase diagram is? Class diagrams? CRC Cards? Flowcharts? Statecharts? Sequence Diagrams?

There are certain steps you need to take in order to effectively solve a problem, whether it be a program or any other sort of problem.

Author:  Reals [ Tue Jul 25, 2006 9:19 am ]
Post subject: 

I still dont understand why my e-mail is being sent in bare LF format, therefor it wont go tho, i think this problem is over my head a little because i have no idea how to fix it.
Any Hints?!?!?

Author:  [Gandalf] [ Tue Jul 25, 2006 5:25 pm ]
Post subject: 

Hint:
[Gandalf] wrote:
Once you figure out what <cr><lf> means, it's as simple as adding two characters to your code.

Hint:
[Gandalf] wrote:
The solution is the same is most languages, it's not Turing specific.

Hint:
You'll want to look up escape characters, which are, might I add, not Turing specific.

Other than those three hints, I think I should point out that someone already gave you the answer. I'll leave it to you to figure it all out.

Author:  Anonymous [ Thu Jul 27, 2006 8:25 pm ]
Post subject: 

Ok I think I got a response back from mail.google.com it gave me an IP or something? I dunno Im lost can you explain over again.

Author:  Cervantes [ Thu Jul 27, 2006 9:20 pm ]
Post subject: 

vahnx wrote:
I dunno Im lost can you explain over again.


It's been explained as well as it's going to be explained.

Gosh, I almost started to give my pioneer speech, but then I realized I'd said it recently -- in this thread.

I'm going to lock this if this pattern of "do it for me" continues one more time. This is your warning.

Author:  r.3volved [ Thu Jul 27, 2006 11:29 pm ]
Post subject: 

Ok...let me spell this out for you step by step
(I will even use your own post so you understand)

For reference
---------------
C: == Client side comand (you type this...without the CSmile
:\> == cmd shell message
---------------

Open a cmd shell.
To do this, click 'start' >> 'run' >> type 'cmd' and press enter

Now hopefully you've followed me thus far...you should have cmd shell open.
code:
:\> telnet www.compsci.ca 25

This means: telnet to host 'www.compsci.ca' on port 25 (SMTP port)
You should be greeted with the following message:
code:
220 larchmont.dreamhost.com ESMTP

This is a successful connection greeting.
Now you must Identify yourself with the HELO command:
code:
C: HELO mydomain.com

A successful identification will result in a 250 return message...
...like the following:
code:
250 larchmont.dreamhost.com

Now you must identify the sender with the MAIL FROM: command:
code:

A successful response again is a 250
...like the following:
code:
250 Ok

Now you must identify the recipient with the RCPT TO: command:
code:
C: RCPT TO: friend@example.com

A successful respose again is a 250
...like the following: (NOTE compsci does not allow rela access)
code:
250 Ok

Now that you have your sender and your recipient identified, you can enter data with the DATA command:
code:
C: DATA

A successful response here will be indicated by a 354 response:
code:
354 Go ahead

Now enter your message and end it with a '.' on the final line by itself
code:
C: Subject: test message
C: From: sender@mydomain.com
C: To: friend@example.com
C:
C: Hello,
C: This is a test.
C: Goodbye.
C: .

A successful message will give you a 250 respose once again and probably give you a queue number of the message.
code:
250 Ok: queued as 12345

Now use the QUIT command to exit the telnet session and send the message
code:
C: QUIT

...and the server will say goodbye to you with a 221 code
code:
221 Bye

you should now be back at the cmd prompt
code:
:\>


Now you should at least understand the steps required to complete an email by hand through telnet...look it up at a couple more websites and find out how to add extra data (ex. SUBJECT)

Once again....'C:' means that it's a client command which you input to the console. If you make a typing mistake, just press enter, as a backspace character will fuck shit up and even though your input might look right, it will not be accepted. REMEMBER: any backspace (not delete...) will alter your screen, but it actually appends a backspace character to the command.

compsci.ca SMTP server will not allow sending of messages...so try a couple other hosts for a successful message.

if you still don't understand then you're in WAY over your head right now

Author:  Anonymous [ Thu Jul 27, 2006 11:45 pm ]
Post subject: 

Cervantes, what do you mean by do it for me . Like I said, I don't know much about what all you guys are talking about. The above guide is talking about the Command Prompt, which has nothing to do with Turing that I know of. Is there a way I can use Turing to access the command prompt? Is that how I have to do it? This is a Turing help forum and I'm just asking for help, not for someone to do it for me! If I am doing this do I have to use Net.OpenConnection or what kinda commands will I have to use?

I reviewed some previous posts saying I have to get data from a stream I believe with "telenet,25", but I don't understand what that means fully. Like 25 is the email port, like 5055 is for MSN or something, and 80 is the inernet. I understand that part. BTW this isn't for a school project, I wish to see if I am able to send a message to my gmail account using Turing. Like
"Subject: Hello" then the message, like a normal email. Or sending one of my jpegs or what my title says, a ".txt" file so I can download it as an attachment from my GMail account.

Before school ended, I asked my teacher and he had no clue. But I think it is possible to do what I'm asking. I am new to Turing and have a small ammount of experience with Net. I've been trying for over a month I believe now, but I will keep trying this telenet thing.

Author:  Anonymous [ Thu Jul 27, 2006 11:53 pm ]
Post subject: 

r.3volved, I now understand it more. But I am not getting a response from www.compsci.ca when I :\> telnet www.compsci.ca 25. And I know how to access the command prompt, I sometimes run Netstat commands just to see what's going on.

Author:  Anonymous [ Thu Jul 27, 2006 11:57 pm ]
Post subject: 

Ok now it just worked, maybe I was typing it in wrong. Ok Ill continue reading more.. Wait, I exited and tried again. Sometimes do you have to type in the telnet multiple times for it to work?

Author:  Anonymous [ Fri Jul 28, 2006 12:02 am ]
Post subject: 

Grr I had it but then I closed it and it wont go back
Posted Image, might have been reduced in size. Click Image to view fullscreen.

Author:  Anonymous [ Fri Jul 28, 2006 12:13 am ]
Post subject: 

Aha I got connected again easier by first typing telenet, then typing o www.compsci.ca 25. So after telenet you must press enter.

Author:  [Gandalf] [ Fri Jul 28, 2006 2:11 am ]
Post subject: 

/me sighs and tries his best not to explode.

vahnx, thanks for that quintuple post, it does us all a lot of good. Keep it up.

Now, I will point out that it is possible. How many times does something have to be confirmed before you believe it? I've personally done it. Yes, in Turing. Guess what? I had only used the Net module once before then, to implement the IRC protocol. When I was doing that, I simply read through the IRC specifications, skimmed through each of the Net functions, and was well on my way. Sure, you will experience problems, but you must learn to solve them! You've already recieved tons of help, so it should be easier for you.

What r.3volved posted is exactly what you should be sending, using the Net module, through Turing. Nothing to do with the command prompt. Only difference between what you'll be doing in Turing and what you do in the command prompt is that you'll be opening the connection using Net.OpenConnection() not through telnet.

If this is all just that far beyond you, learn something else before doing this. After all, learning teaches you to learn better afterwards.

Author:  Anonymous [ Fri Jul 28, 2006 3:15 am ]
Post subject: 

Not my fault I couldn't edit my last posts (even though no one posted after them).

Ok, this is cool so far now that I kinda get it. And i must learn to solve them? Every other question I asked on this website was answered in 1 post thanks to the help of those people. I don't know why it's taking so long to get help for this 1 problem I am having? Is it really that hard? I will continue trying to do it later on today... Hence it's 4:15AM and still cannot do it yet.

Author:  [Gandalf] [ Fri Jul 28, 2006 8:56 am ]
Post subject: 

I find it extremely sad that you still think you're right.

Author:  r.3volved [ Fri Jul 28, 2006 10:21 am ]
Post subject: 

omg

when you connect in telnet like that you are sending raw data
that means that the messages you send in telnet should be sent in your turing app.

Have you ever made a networked application before?
Stick to pong games and someone lock this thread already.

As I said, you're in way over your head...you got a shit load of learning to do before you have any chance at this.

Author:  Delos [ Fri Jul 28, 2006 11:19 am ]
Post subject: 

vahnx wrote:
Not my fault I couldn't edit my last posts (even though no one posted after them).

Don't even go there vahnx. Seriously, that argument has been resolved dozens of times before. This is now just flaming.

vahnx wrote:

And i must learn to solve them? Every other question I asked on this website was answered in 1 post thanks to the help of those people. I don't know why it's taking so long to get help for this 1 problem I am having? Is it really that hard? I will continue trying to do it later on today... Hence it's 4:15AM and still cannot do it yet.


Why are you whining? Honestly, why? Yes you must learn to solve this - why else would you want to ask for help other than to learn something new? And yes this is obviously "that hard" considering how long it's taken you not to get this, despite having it spelt out for you numerous times. It's great that you've started making head way - but the fact that you can't take either critisism or set backs is working entirely against you.
You have gotten more than enough help on this topic. This is now just a "do it for me" plea, hence following Cervantes' warning, this thread is locked.
This thread is locked


: