Valhalla Legends Forums Archive | General Programming | Batch Sockets?

AuthorMessageTime
R.a.B.B.i.T
I'm just wondering if it's possible to create a socket through batch, because I haven't been able to find anything about them?
November 6, 2004, 4:21 PM
Arta
Not that I've ever heard of, assuming you're talking about batch files.
November 6, 2004, 5:34 PM
R.a.B.B.i.T
Yep.  Thanks then.
November 6, 2004, 7:04 PM
The-FooL
You could create a program that would make a socket, and then run the program via the batch file.
November 7, 2004, 3:42 AM
R.a.B.B.i.T
That's not what I wanted to do though.  I was wondering if a basic telnet bot would be feasable through batch only.
November 7, 2004, 3:49 PM
Newby
I haven't really done anything with batch files, but couldn't you telnet <server> 6112 to start a connection?

If that's not what you mean, terribly sorry. I must be confused. :(
November 7, 2004, 5:17 PM
R.a.B.B.i.T
Yes, but that's just running a batch file that then runs telnet.  I was looking for a way to make a chat client explicitly in batch.
November 7, 2004, 5:39 PM
Skywing
No, you can't do that without calling external programs.  Why would you want to do such a thing, anyway?
November 7, 2004, 6:10 PM
R.a.B.B.i.T
Say "look, I made a bot in batch!"
Also, I'd like to just get a good grasp of another language that I can make in notepad.
November 7, 2004, 10:48 PM
Newby
[quote author=R.a.B.B.i.T link=topic=9444.msg87835#msg87835 date=1099867735]
Say "look, I made a bot in batch!"
Also, I'd like to just get a good grasp of another language that I can make in notepad.
[/quote]
Shellcode!
November 7, 2004, 11:18 PM
Tuberload
[quote author=R.a.B.B.i.T link=topic=9444.msg87835#msg87835 date=1099867735]
Say "look, I made a bot in batch!"
Also, I'd like to just get a good grasp of another language that I can make in notepad.
[/quote]

You can use any language in notepad. An IDE's sole purpose is to make the process easier on you, it is not required.
November 7, 2004, 11:50 PM
Mephisto
[quote author=Tuberload link=topic=9444.msg87844#msg87844 date=1099871426]
[quote author=R.a.B.B.i.T link=topic=9444.msg87835#msg87835 date=1099867735]
Say "look, I made a bot in batch!"
Also, I'd like to just get a good grasp of another language that I can make in notepad.
[/quote]

You can use any language in notepad. An IDE's sole purpose is to make the process easier on you, it is not required.
[/quote]

I could never imagine coding projects in notepad though.  :)
November 8, 2004, 3:17 AM
Newby
[quote author=Mephisto link=topic=9444.msg87877#msg87877 date=1099883844]
[quote author=Tuberload link=topic=9444.msg87844#msg87844 date=1099871426]
[quote author=R.a.B.B.i.T link=topic=9444.msg87835#msg87835 date=1099867735]
Say "look, I made a bot in batch!"
Also, I'd like to just get a good grasp of another language that I can make in notepad.
[/quote]

You can use any language in notepad. An IDE's sole purpose is to make the process easier on you, it is not required.
[/quote]

I could never imagine coding projects in notepad though.  :)
[/quote]
I could never imaging coding C on Linux in an IDE. :)
November 8, 2004, 4:58 AM
Mephisto
[quote author=Newby link=topic=9444.msg87891#msg87891 date=1099889912]
[quote author=Mephisto link=topic=9444.msg87877#msg87877 date=1099883844]
[quote author=Tuberload link=topic=9444.msg87844#msg87844 date=1099871426]
[quote author=R.a.B.B.i.T link=topic=9444.msg87835#msg87835 date=1099867735]
Say "look, I made a bot in batch!"
Also, I'd like to just get a good grasp of another language that I can make in notepad.
[/quote]

You can use any language in notepad. An IDE's sole purpose is to make the process easier on you, it is not required.
[/quote]

I could never imagine coding projects in notepad though.  :)
[/quote]
I could never imaging coding C on Linux in an IDE. :)
[/quote]

??
November 8, 2004, 5:06 AM
Yoni
[quote author=Newby link=topic=9444.msg87891#msg87891 date=1099889912]
[quote author=Mephisto link=topic=9444.msg87877#msg87877 date=1099883844]
[quote author=Tuberload link=topic=9444.msg87844#msg87844 date=1099871426]
[quote author=R.a.B.B.i.T link=topic=9444.msg87835#msg87835 date=1099867735]
Say "look, I made a bot in batch!"
Also, I'd like to just get a good grasp of another language that I can make in notepad.
[/quote]

You can use any language in notepad. An IDE's sole purpose is to make the process easier on you, it is not required.
[/quote]

I could never imagine coding projects in notepad though. :)
[/quote]
I could never imaging coding C on Linux in an IDE. :)
[/quote]
IDEs are good. I wouldn't want to use gdb directly to debug.
November 8, 2004, 1:22 PM
Kp
[quote author=Yoni link=topic=9444.msg87919#msg87919 date=1099920178]IDEs are good. I wouldn't want to use gdb directly to debug.[/quote]

Wimp. ;)  Direct gdb is easy.
November 8, 2004, 4:52 PM
iago
I once knew how to use direct gdb, but I forget now :(

To answer the original question -- RaBBiT, look up a program call netcat.  It can be used quite well for batch sockets.
November 9, 2004, 5:54 PM
St0rm.iD
I use emacs + print statements for debugging.

If you want a real challenge, code it in Scheme.
November 9, 2004, 8:36 PM
R.a.B.B.i.T
What I meant by the notepad comment was the ability to code in notpad and immediately run without compiling, etc...

[edit]
Thanks, iago, I'll look into that.
November 11, 2004, 2:45 AM

Search