Page 1 of 1

Network Library Compatible with Windows and Linux.

Posted: Fri May 07, 2004 3:30 pm
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.

Posted: Fri May 07, 2004 4:07 pm
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..

Posted: Fri May 07, 2004 4:25 pm
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.

Posted: Fri May 07, 2004 4:29 pm
by Karbon
Good points.. Perhaps that code can be sampled to pull the UDP/ICMP support out..

Posted: Fri May 07, 2004 5:20 pm
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:

Posted: Fri May 07, 2004 8:29 pm
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.

Posted: Fri May 07, 2004 9:57 pm
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:

Posted: Sat May 08, 2004 10:36 am
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

Posted: Sat May 08, 2004 3:38 pm
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

Posted: Sat Oct 30, 2004 10:41 pm
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.