Page 1 of 1

Posted: Wed Oct 02, 2002 12:13 pm
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!

Posted: Wed Oct 02, 2002 1:45 pm
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

Posted: Wed Oct 02, 2002 3:07 pm
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

Posted: Wed Oct 02, 2002 10:06 pm
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!

Posted: Thu Oct 03, 2002 2:55 pm
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

Posted: Thu Oct 03, 2002 8:47 pm
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

Posted: Fri Oct 04, 2002 1:42 am
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!

Posted: Fri Oct 04, 2002 2:10 am
by BackupUser
Restored from previous forum. Originally posted by fred.

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

Fred - AlphaSND

Posted: Sat Oct 05, 2002 2:34 am
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

Posted: Fri Nov 14, 2003 10:52 pm
by Holborn
PB rocks for networking.

Posted: Fri Nov 14, 2003 11:33 pm
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.

Posted: Sat Nov 15, 2003 1:01 am
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 :-)

Posted: Sat Nov 15, 2003 5:51 am
by Karbon
there is some quick-n-dirty stuff over at www.purebasic.org.. I promise I'll update that one day.