Qbasicnews.com
Dscok & Telnet - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: QBasic (http://qbasicnews.com/newforum/forum-4.html)
+--- Forum: QB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-11.html)
+--- Thread: Dscok & Telnet (/thread-3782.html)

Pages: 1 2 3


Dscok & Telnet - Darkest Genesis - 04-21-2004

I've been looking around the internet for a while in search of some way to use sockets in qb. And I stumbled apon qbnews. I've only been hera a while, and i'm loving it. :wink: Now for my question.

Is it possible to wirte a telnet server in qb, using dsock? If so would it support multiple connections/threads, and the ability to send specific data, to specific clients? Also, wold you be able to connect using any telnet program, including windows default?


Dscok & Telnet - Dav - 04-21-2004

Hi -- welcome to qbasicnews.com. Big Grin I think I responed to you at another forum, but glad you came here.

The lib is called DSOCK. I'm no expert on this stuff, but here's what I've been lead to believe. If I'm wrong I'm sure someone will (and should) correct me (please just do it nicelyWink)

There are several QB Libraries out there that can access the interent via WinSock.

The best QB/WinSock LIB out there is called DSOCK which can be found here: http://neozones.com/c4/DSockV100.rar
An online manual for it can be found here:
http://www.marcade.net/Files/DSock/Draft.html

Another LIB is call WSOCKXS and be found here:
http://www.angelfire.com/tx5/someone42/programming.html

There is one (was one) called QBSock by Dimitry B., but it's nowhere to found on the web. I have it on my HD still. It worked, and came with a telnet example, but it only allowe one connection.

Now...those require windows...if you're wanting a pure DOS method of using TCP/IP in QB, that would require a packet driver for your network card, a Trumpet TCP/IP driver and the QB routines to use them. I have such a package made by (site now gone:
http://www.Uncreativelabs.org/~anonymous101
which contains all the drivers and QB LIB to do this, but it's too large for me to put up for download right now (800k ZIP'ed up). If you're really interested in it, however, maybe I can find other place to put it up. NOTE: I don't know how well it works -- never tried it.

- Dav


Dscok & Telnet - Z!re - 04-21-2004

If you can email it then send it to me and I'll put it up, only direct link though, but people might link to it.


Dscok & Telnet - Dav - 04-21-2004

Will do. It's at my dad's house, so I'll have to get it next time I go over there. I'll send it to you then. Want QBSock too?

- Dav


Dscok & Telnet - Z!re - 04-21-2004

Sure, just send whatever you have. It has to total at <1.5MB though (Stupid Hotmail...)


Dscok & Telnet - Dav - 04-21-2004

Yeah, I forgot about that. QBSock is big too. Hmm....I may be able to stick them up temporarily at my place. I'll give you the url so you can grab'em then.

- Dav


Dscok & Telnet - oracle - 04-21-2004

If "your place" is QBNZ, don't worry about it. That file's tiny Wink


Dscok & Telnet - Dav - 04-21-2004

Cool. Thanks Big Grin

I didn't want to over do it. (I know the QBKB is taking up alot of space Wink)

I only have 2k left at the code post. (that's one reason why I haven't updated it in so long)

- Dav


Dscok & Telnet - Darkest Genesis - 04-21-2004

Thanx for all the info. But you somehow avoided answering my question. Tongue Is it possible to write a telent server using dsock :???: I do appreciate all the extra info, and I'll be using windows for this project if I can get it off the gound. Thanx.


Dscok & Telnet - Dav - 04-21-2004

* SLAPS HEAD *

I completely missed seeing 'server' up there. Sorry. :oops: I'll let someone else jump in while my head's ringing...

- Dav