Good working Network LIB
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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!
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!
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.
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
The lib will do the job, only in API, can be more advanced.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!
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
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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!
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!
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
))
PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...
greetz
MrVainSCL! aka Thorsten
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!?

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

PIII450, 256MB Ram, 80GB HD + 6,4 GB, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...
greetz
MrVainSCL! aka Thorsten
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
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
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... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
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
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