Websockets

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

Websockets

Postby Massimo Linossi » Sat Jun 13, 2020 6:24 pm

Hi to all.
I'm testing an application for sending messages from mod_harbour to a websocket server.
Antonio made this test on GitHub https://github.com/fivetechsoft/wsserver and it works perfectly on local server.
But I must place webserver on a machine that is on a public pc and I must change the IP address. And also to change
the operation that must make when receive some messages from the clients inside the farm or from the web.
I can't recompile it because is made in harbour and all my applications are made with xharbour.com so I can't make
some changes.
Thanks a lot for any suggestion.
Massimo.
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Websockets

Postby Antonio Linares » Sat Jun 13, 2020 11:25 pm

Massimo,

Please try to build wsserver.prg using xHarbour and let us know what compile or link errors you get
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Websockets

Postby Massimo Linossi » Sun Jun 14, 2020 9:27 am

Hi Antonio.
These are the errors when I compile wsserver with xhb.com.
Thanks a lot for your time.
Massimo

Code: Select all  Expand view

Type: C >>>xlink.exe -NOEXPOBJ -MAP -FORCE:MULTIPLE -NOIMPLIB -subsystem:console -LIBPATH:"C:\xHB\lib" -LIBPATH:"C:\xHB\c_lib" -LIBPATH:"C:\xHB\c_lib\win"  "obj\wsserver.obj" "C:\xHB\c_lib\Win\wsock32.lib" "xhb.lib" "dbf.lib" "ntx.lib" "cdx.lib" "rmdbfcdx.lib"  crt.lib kernel32.lib user32.lib winspool.lib ole32.lib oleaut32.lib odbc32.lib odbccp32.lib uuid.lib wsock32.lib ws2_32.lib wininet.lib advapi32.lib shlwapi.lib msimg32.lib mpr.lib -out:"wsserver.exe"<<<

Creating object: wsserver.EXP
Creating library: wsserver.LIB
xLINK: error: Unresolved external symbol '_HB_FUN_HB_MTVM referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETOPEN referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_NTOS referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETGETERROR referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETBIND referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETLISTEN referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETACCEPT referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_THREADDETACH referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_THREADSTART referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETSHUTDOWN referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETCLOSE referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SHA1 referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETSEND referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_BITTEST referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_BPEEK referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_DEFAULT referenced from (wsserver.obj)'.
xLINK: error: Unresolved external symbol '_HB_FUN_HB_SOCKETRECV referenced from (wsserver.obj)'.
xLINK: fatal error: 17 unresolved external(s).

Type: C >>>Couldn't build: wsserver.exe<<<
Type: C >>>TMAKEPROJECT<<<
Type: C >>>TMAKEPROJECT:REFRESH<<<
Type: N >>>      1322<<<

User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Websockets

Postby Antonio Linares » Sun Jun 14, 2020 12:30 pm

Massimo,

Why can't you use it built with Harbour ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42084
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Websockets

Postby Massimo Linossi » Sun Jun 14, 2020 3:03 pm

I must think about it.
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy

Re: Websockets

Postby Massimo Linossi » Sun Jun 14, 2020 4:50 pm

I solved as I wrote in the other post.
User avatar
Massimo Linossi
 
Posts: 498
Joined: Mon Oct 17, 2005 10:38 am
Location: Italy


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 8 guests

cron