Qbasicnews.com
February 22, 2020, 08:53:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Dscok & Telnet  (Read 6528 times)
Darkest Genesis
New Member

Posts: 4


« on: April 20, 2004, 07:34:16 PM »

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?
Logged
Dav
Administrator
Ancient Guru
*****
Posts: 709



WWW
« Reply #1 on: April 20, 2004, 07:58:41 PM »

Hi -- welcome to qbasicnews.com.  Cheesy  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 nicely;))

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
Logged

Z!re
*/-\*
*****
Posts: 4599


« Reply #2 on: April 20, 2004, 09:06:50 PM »

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.
Logged
Dav
Administrator
Ancient Guru
*****
Posts: 709



WWW
« Reply #3 on: April 20, 2004, 09:21:05 PM »

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
Logged

Z!re
*/-\*
*****
Posts: 4599


« Reply #4 on: April 20, 2004, 09:40:47 PM »

Sure, just send whatever you have. It has to total at <1.5MB though (Stupid Hotmail...)
Logged
Dav
Administrator
Ancient Guru
*****
Posts: 709



WWW
« Reply #5 on: April 20, 2004, 09:44:57 PM »

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
Logged

oracle
*/-\*
*****
Posts: 3652



WWW
« Reply #6 on: April 20, 2004, 09:57:24 PM »

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

Dav
Administrator
Ancient Guru
*****
Posts: 709



WWW
« Reply #7 on: April 20, 2004, 10:02:12 PM »

Cool. Thanks  Cheesy

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
Logged

Darkest Genesis
New Member

Posts: 4


« Reply #8 on: April 20, 2004, 10:15:59 PM »

Thanx for all the info. But you somehow avoided answering my question. Tongue Is it possible to write a telent server using dsock :Huh: 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.
Logged
Dav
Administrator
Ancient Guru
*****
Posts: 709



WWW
« Reply #9 on: April 20, 2004, 10:36:35 PM »

* SLAPS HEAD *

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

- Dav
Logged

Z!re
*/-\*
*****
Posts: 4599


« Reply #10 on: April 20, 2004, 10:46:16 PM »

I think it would be possible, but the multi thread part might be tricky.
Logged
Dav
Administrator
Ancient Guru
*****
Posts: 709



WWW
« Reply #11 on: April 23, 2004, 11:13:12 AM »

Follow up...

Z!re, here are the two Libraries...

The TCP lib for QB45.  A pure DOS method of using QB & the internet.
http://qbnz.com/dav/tcp-qb.zip (790k)

QBSock by Dimitry Brant. Uses a VB program to give QB access to winsock, requires windows. As far as I know (and google knows) this is the *only* download of QBsock right now on the net.
http://qbnz.com/dav/qbsock.zip (1.4MB)

- Dav
Logged

Z!re
*/-\*
*****
Posts: 4599


« Reply #12 on: April 23, 2004, 11:31:04 AM »

I'll make a direct dl link available later, no bandwidth limits.

Might ease up on qbnz Wink... (you guys are still bandwidth limited are you?)


Mirror links (case sensitive):
http://hem.thalamus.nu/~bjk000911/Mirror/TCP-QB.zip
http://hem.thalamus.nu/~bjk000911/Mirror/QBSock.zip
Logged
Blitz
I hold this place together
*****
Posts: 853



WWW
« Reply #13 on: April 23, 2004, 02:53:54 PM »

It's possible, but not exactly effecient. dsock and other qb sock libs are meant to be used for client application. The server should be written in native win32, *nix or whichever OS that supports socks.
Logged

oship me and i will give you lots of guurrls and beeea
dc740
New Member

Posts: 2


« Reply #14 on: December 12, 2005, 02:27:25 AM »

the download links are not working, can anyone post the files again please??? Sad

Thanx
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!