Network Library Compatible with Windows and Linux.

Everything else that doesn't fall into one of the other PB categories.
ShDancer
User
User
Posts: 51
Joined: Sat Apr 26, 2003 5:49 am

Network Library Compatible with Windows and Linux.

Post by ShDancer »

Hello, i was surffing in the net searching for something like this in a long time, and finaly i've found it.

Please take a look at this.
TCP4U is a Freeware set of libraries that represent a set of APIs that can be used for cross-platform development.
Libraries are available for several varieties Unix and for 16- and 32-bit Windows.
Client and server development is supported through these APIs.
TCP, UDP, SMTP and HTTP protocols are currently supported, and future development might add additional protocols. HTML documentation pages are included, along with sample code.
Specialy Fred for several reasons.

1. Bigger support for networking in PureBasic
2. Can be problably included in PureBasic by default
(Must talk with the programmer first.)
3. It's FREEWARE.
4. The guy that has implemented this is french. 8) :wink:

I think its a good addon for Purebasic command set, instead of a Library.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

It was also last updated 6 years ago... Moving on :-)

PB already has cross platform network functions. Low level ones even so you could write cross platform ptorocol specific libraries IN PB itself..
-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
ShDancer
User
User
Posts: 51
Joined: Sat Apr 26, 2003 5:49 am

Post by ShDancer »

Karbon wrote:It was also last updated 6 years ago... Moving on :-)

PB already has cross platform network functions. Low level ones even so you could write cross platform ptorocol specific libraries IN PB itself..
Yes, Karbon that is correct but only one problem there,
there is no UDP, ICMP Natively Supported, and that is
missing. So it would be important to have access to
those parts of the TCP/IP Protocol.

If for example you need to implement somekind of
remote administration for Quake, HalfLife you have
to be able to use UDP, or ICQ, and many more,
these are just some examples.

Beside UDP is faster than TCP for correction less networking.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Good points.. Perhaps that code can be sampled to pull the UDP/ICMP support out..
-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
ShDancer
User
User
Posts: 51
Joined: Sat Apr 26, 2003 5:49 am

Post by ShDancer »

Karbon wrote:Good points.. Perhaps that code can be sampled to pull the UDP/ICMP support out..
That was one of the reasons i've made the post. :wink:
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

AFAIK there is already a user lib for UDP networking, saw it several month ago in the german forum.
Don't know if it's working on all os though.

BTW: I'm not interested in that particular stuff so I didn't report it to the english forum... sorry.
ShDancer
User
User
Posts: 51
Joined: Sat Apr 26, 2003 5:49 am

Post by ShDancer »

Maybe i put the subject in the wrong maner.

What i meant was that these kind of functions TCP, UDP, ICMP, and so on, could
be implemented by default in PureBasic Version of Windows and Linux.

Because if Purebasic is a crossplatform programming laguage it shouldn't use OS
API function call, except in specific cases. Only that an specific OS could have that
the others don't.

I know that Fred is trying to make it as best as possible, and he's made it a wonderfull
language, but API calls should be used in last resource, becase it makes the code
NON-Crossplatform.

In this case it doesn't apply (Networking).
Instead of seperated Libraries just for windows or Linux.

Using API calls or libraries, leads to specific programming only windows or only linux
source code.

For example in this forum if you try to search for something that you want an example
you can find it here thats a true :D, but theres a problem its only for windows (API Calls)
or Linux, or it uses some kind of library.
There is some code that can be run on both but not ALL.

Note : I'm NOT against Libraries, i use them also.

Please Don't take wrong, just trying to fight for a even better programming language. :roll:
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

You can check out my GetUrl library, it's 100% purebasic code (no API calls).

It was built by coding according to the specs of RFC for HTTP 1.1.

You can built any kind of thing, the rules are there, but it takes time and lot's of trial/error (and for a change microsoft web-servers don't comply 100% with the standard :cry:)

Anyway when PB3.90 for Linux is realeased I will deliver a PBI file (source code) for Linux an a user Lib for windows :P

Goto www.purearea.net
ShDancer
User
User
Posts: 51
Joined: Sat Apr 26, 2003 5:49 am

Post by ShDancer »

Num3 wrote:You can check out my GetUrl library, it's 100% purebasic code (no API calls).

It was built by coding according to the specs of RFC for HTTP 1.1.

You can built any kind of thing, the rules are there, but it takes time and lot's of trial/error (and for a change microsoft web-servers don't comply 100% with the standard :cry:)

Anyway when PB3.90 for Linux is realeased I will deliver a PBI file (source code) for Linux an a user Lib for windows :P

Goto www.purearea.net
That is correct also but as i've told before you only can implement using TCP, not any other sub-part of the TCP/IP Stack, and still make it compatible with the other OS'es.

Meaning NO API calls. 8O
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Figured out how to use this library in PB? I need to be able to send all sorts of strings from PB, so need a network library that allows that.
Post Reply