Good working Network LIB

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pantcho!.

hey guys.
i know there is an allready Network lib but it seems it isnt good enough.

ppl tell me to do stuff through WINAPI i dont think that should be an
excuse.

WE NEED A DAMN GOOD TCP/IP network LIB!

cya


---
Registered Purebasic Member!
---
Resp'cta!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Berikco.
Originally posted by Pantcho!

hey guys.
i know there is an allready Network lib but it seems it isnt good enough.

ppl tell me to do stuff through WINAPI i dont think that should be an
excuse.

WE NEED A DAMN GOOD TCP/IP network LIB!
The lib will do the job, only in API, can be more advanced.
My HTTP download example is using the lib, can dowload multimegabyte files without missing a byte at 600 KB sec.
Only the server side is more complicated, must take care that you check all data is send, before sending next block off data.
There are some samples in the forum abouth this checking i believe...
You must always remember if you send a strings over tcp-ip, receiver could receive more than one at the same time.


Regards,

Berikco

http://www.benny.zeb.be
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

This lib is working ! Stop to complain about it because of bad use.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pantcho!.

So... can anyone do a decent goood BASIC explaining of how TCP/IP should be used.
how to verify if data was sent or lost
how to do a Server/Client that have commands
how does the buffer acts?

cuz i am kinda in a mess maybe because i compare it to serial communication...

and sorry that i am bad using...

---
Registered Purebasic Member!
---
Resp'cta!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.

Take a look on the Tips & Tricks section, I posted a short codesnipset of how to do networking correctly for receiving and sending strings.

Anyway, an UDP support for the PB Lib would be nice but it seems not to be requested her, or anyone else who need this?

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hello Mike
Yes, UDP support in PureBasic would be really great! Let us still hope and wait... Maybe Fred will add this in one version!? :) Until this happen, it seems we have to code it in an own procedure!?

Btw:
Mike, after our hot stage on ice session my socks are smoking :wink:))



PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pantcho!.

i think ICQ protocol is based on UDP!
UDP i've been told is very fast but very hard to understand


---
Registered Purebasic Member!
---
Resp'cta!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

UDP is faster than TCP but not reliable. Packet can be lost.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.

UDP is very importend for streaming media and Network Gaming, sure datas can be lost, but if you use UDP you know that and it doesnt matter. (sometimes)

I think UDP should be included for standard issues.

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
Holborn
New User
New User
Posts: 4
Joined: Wed Nov 12, 2003 4:06 pm

Post by Holborn »

PB rocks for networking.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Yep, the current PB Winsock lib, and the new winsock lib are excellent for client side use. Unfortunately, they are severly lacking in the Server side use (read NULL for real-world use). Im hoping, after Im finished with the AES conversion to create a real-world use server winsock lib for you guys.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

programming winsock isn't that difficult, i posted some sample stuff a while back for tcp/ip

it's not that difficult i guess to change it to udp, all you have to remember is that packets get lost and the status of a connection is rather... undefined :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

there is some quick-n-dirty stuff over at www.purebasic.org.. I promise I'll update that one day.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Post Reply