Search found 9 matches

by HarryE
Tue Jul 24, 2007 10:01 am
Forum: Tricks 'n' Tips
Topic: QuickSearch Algorithm (Blitzes Findstring)
Replies: 41
Views: 26129

Brilliant !

This Quicksearch routine seems to be faster than strstr C routine in both Windoze&Linux form :!:
by HarryE
Mon May 21, 2007 6:46 am
Forum: Coding Questions
Topic: Memory packing/unpacking issues
Replies: 1
Views: 1027

Here it is...

Try using

Code: Select all

 Debug UnpackMemory( *Source,*Destination);  instead of Debug UnpackMemory( *Destination,*Source)
Pb 4.02
by HarryE
Mon May 07, 2007 1:28 pm
Forum: Linux
Topic: Which Linux brand are you using for Purebasic?
Replies: 13
Views: 5768

Arch Linux 0.80

It needed pkg-config dependency solved
by HarryE
Mon May 07, 2007 11:44 am
Forum: Linux
Topic: Create deamon thread? (SOLVED)
Replies: 2
Views: 3611

Daemon code example for Purebasic (linux)

Here is a way to create a daemon code in Purebasic for linux
Check glibc for details on used functions.

Tested on Arch linux.
Compile the example then open a console and run the compiled program (call it mydaemon for example)
With ps ax get the pid of the mydaemon, - check if it's running
then send ...
by HarryE
Thu Mar 02, 2006 8:00 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] Extra parameters for OpenNetworkConnection
Replies: 13
Views: 4534

Need for Localport, LocalIP

Trond, it is not a nonsense.
The client connection needs LocalIp and localPort for the following reason:
Good news! I have a computer with multiple network interfaces(192.168.0.15, 10.0.0.8 for example) and NO DEFAULT GATEWAY defined.
The current OpenNetworkConnection is almost useless in this case ...
by HarryE
Wed Mar 01, 2006 3:08 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] Extra parameters for OpenNetworkConnection
Replies: 13
Views: 4534

[Implemented] Extra parameters for OpenNetworkConnection

Dear PB Team,
In order to create decent "professional" apps in PB, I/we need an OpenNetworkConnection(ServerName$, Port,[LocalIp],[LocalPort],[Timeout]) having these three optional parameters.
And it could be renamed OpenTCPConnection.

Should you need details/help in implementing the required ...
by HarryE
Fri Aug 26, 2005 8:28 am
Forum: Tricks 'n' Tips
Topic: Dichotomic search function for Sorted Array
Replies: 4
Views: 2305

Replace
Milieu = Round((Debut + Fin) / 2,0)
with
Milieu = (Debut + Fin+1) >> 1
and you get an impressive speed boost! :D
by HarryE
Thu Aug 25, 2005 6:53 am
Forum: Tricks 'n' Tips
Topic: Lotus Domino ver 5 OLE Interface
Replies: 5
Views: 4358

Lotus Domino ver 5 OLE Interface

For the Lotus Domino fans:

Save this file as DominoObjects.pb

;Start Here
; Interface generated by Interface Generator 1.0, Date 08/24/2005

; Domino, Lotus Domino Objects ver. 5.0.13

; Enumerations

Enumeration ; _ACLLEVEL
#ACLLEVEL_NOACCESS = 0
#ACLLEVEL_DEPOSITOR = 1
#ACLLEVEL_READER = 2 ...
by HarryE
Fri Aug 12, 2005 6:40 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] Extended OpenNetworkConnection()
Replies: 1
Views: 1593

[Implemented] Extended OpenNetworkConnection()

I wish an OpenNetworkConnection(ServerName$, Port,[LocalIp],[LocalPort],[Timeout]) having these three optional parameters
And it could be renamed OpenTCPConnection.

For reducing the timeout when you want to re-open a connection with the same ends, one needs to use setsockopt(...)
eg:
setsockopt (S ...