Search found 38 matches

by AWPStar
Jan 25, 2019 8:17
Forum: General
Topic: TCP server on dynamic threads. windows and linux
Replies: 3
Views: 566

Re: TCP server on dynamic threads. windows and linux

Small improvements: Now it is using conditions. better performance and faster access to the queue. Callback functions Just for usability MIN_THREADS. You can set MIN_THREADS and that count of threads will alway be running. For immediate acceptance of clients added send functions Thanks for your atte...
by AWPStar
Jan 11, 2019 20:00
Forum: General
Topic: TCP server on dynamic threads. windows and linux
Replies: 3
Views: 566

Re: TCP server on dynamic threads. windows and linux

i just used winsock in vb6 IDE. You can use this code. #ifdef __FB_WIN32__ #include once "win/winsock2.bi" #else #include once "crt/netdb.bi" #include once "crt/sys/socket.bi" #include once "crt/netinet/in.bi" #include once "crt/arpa/inet.bi" #includ...
by AWPStar
Jan 11, 2019 7:51
Forum: General
Topic: TCP server on dynamic threads. windows and linux
Replies: 3
Views: 566

TCP server on dynamic threads. windows and linux

This is my attempt to create a server. Not just multithreaded. You have two main settings. MAX_CLIENTS and MAX_THREADS. Server accepts new connection and adds it to queue. It can create new thread or use existing. There is a watchdog that can kick clients and threads by timeout. This procedure can p...
by AWPStar
Dec 24, 2018 19:35
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1074
Views: 169970

Re: FreeBasic IDE-poseidonFB(Update 2018.12.09)

Hi, Kuan Hsu!
Is it possible to edit code with ASCII? Probably it will require to select charset code.
by AWPStar
Nov 22, 2017 19:03
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1074
Views: 169970

Re: FreeBasic IDE-poseidonFB(Update 2017.11.22)

Hi! If i have a UDT array in inclusion, i can not get autocompletion. user.bas type user_t name as string ip as ULong port as UShort rev as long end type dim shared usr() as user_t dim shared usr_count as long main #include "user.bas" usr(0).[Nothing happens] Is it parser issue? My setting...
by AWPStar
Sep 07, 2017 9:45
Forum: Linux
Topic: Video capture class with 5 tests.
Replies: 31
Views: 18865

Re: Video capture class with 5 tests.

You will have to remove or replace the inline assembler by according pure FB code. i can probably use C-like i/o function for DeviceOpen/DeviceRead/DeviceClose. Or maybe? open pipe(lof doesn't work in arm linux) Does fb has IOCTL function? Or, is there something like <sys/ioctl.bi and <stdio.bi>? D...
by AWPStar
Sep 05, 2017 5:46
Forum: Linux
Topic: Video capture class with 5 tests.
Replies: 31
Views: 18865

Re: Video capture class with 5 tests.

How can i get it work on ARM with these ASM inline?
by AWPStar
Feb 08, 2017 20:19
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1074
Views: 169970

Re: FreeBasic IDE-poseidonFB(Update 2017.02.07)

bugreport 0.243
i have an issue with brackets and standar functions.

Better show when it appears.
https://www.youtube.com/watch?v=BpjPE4_ ... e=youtu.be

settings:
https://c71.imgup.net/poseidonFB57da.png

Thank you! Amazing GUI!
by AWPStar
Jan 10, 2017 6:52
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1074
Views: 169970

Re: FreeBasic IDE-poseidonFB(Update 2017.01.02)

Hi! Amazing IDE! my experience with it: 1. Error appears when i'm trying to open bas file associated with poseidonFB.exe.(settings/compilerOptions.txt::System could not find...bla-bla) Should i set environment variables? 2. I used to use space button to autofill. Can it be customized? 3. How can i c...
by AWPStar
Jul 18, 2016 23:02
Forum: Hardware Interfaces / Communication
Topic: Include files for libUSB Linux and Windows.
Replies: 55
Views: 32688

Re: Include files for libUSB Linux and Windows.

Thank you, again!
C command line:

Code: Select all

gcc test.c -o test -lusb-1.0


Well, i think i have to translate C header to .bi. But now i don't have much time, so i will write my app in C. Later i will translate it to .bi and share it.
by AWPStar
Jul 18, 2016 21:45
Forum: Hardware Interfaces / Communication
Topic: Include files for libUSB Linux and Windows.
Replies: 55
Views: 32688

Re: Include files for libUSB Linux and Windows.

New problem.

Code: Select all

undefined reference to 'usb_init'
by AWPStar
Jul 18, 2016 15:52
Forum: Hardware Interfaces / Communication
Topic: Include files for libUSB Linux and Windows.
Replies: 55
Views: 32688

Re: Include files for libUSB Linux and Windows.

St_W wrote:so try to link "usb-1.0" instead of "usb" (Parameter "-lusb-1.0" or #inclib "usb-1.0").

That works! You saved my day. Thank you!
by AWPStar
Jul 18, 2016 4:40
Forum: Hardware Interfaces / Communication
Topic: Include files for libUSB Linux and Windows.
Replies: 55
Views: 32688

Re: Include files for libUSB Linux and Windows.

Hello, can you help me? Trying to compile my app with libusb under ubuntu(desktop, x86, 13.07.2016, 4.4.0-31-generic). 1. i have installed libuse by using sudo apt-get install libusb-1.0-0-dev /usr/lib/libusb-1.0.so.0.0.0 linked to /usr/lib/libusb-1.0.so 2. inclusion for linux #include "usb.bi&...
by AWPStar
May 24, 2016 15:54
Forum: Projects
Topic: Small DirectSound engine
Replies: 1
Views: 1334

Small DirectSound engine

Hi! I'm developing small sound engine based on DirectSound for Windows. basically, i'm going to use it from vb6. Do not want to fill whole page by code, so here's links. source vb6 side i need your advices =) First of all, i don't know how to decode other formats. Thanks! functions: snd_INIT(ByVal h...
by AWPStar
Mar 20, 2016 15:35
Forum: Linux
Topic: FreeBasic 0.90.1 for ARM 6 / 7 devices.
Replies: 42
Views: 38412

Re: FreeBasic 0.90.1 for ARM 6 / 7 devices.

Thank you!
Too bad, I was hoping not to have to use C

Go to advanced search