Search found 44 matches

by msu
Tue Apr 23, 2019 6:16 pm
Forum: General programming
Topic: Problem with ReceiveData
Replies: 24
Views: 1764

Re: Problem with ReceiveData

Hi plouf, then you must first ReceiveData(id, #RECEIVEBYTES, 5) ; receive 5 bytes then ReceiveData(id,#RECEIVEBYTES, your_calculated_amount_of_bytes) I had already tried this solution. Had I programmed correctly, that would have worked. :oops: Here is my new code: Function PG:Receive(ConnectionID) L...
by msu
Mon Apr 22, 2019 9:51 pm
Forum: General programming
Topic: Problem with ReceiveData
Replies: 24
Views: 1764

Re: Problem with ReceiveData

FORGET hollywood if you request "somethink" in SQL server, how do you know the amount of data is going to be send ? That's the problem. The amount of data is variable. how does the "other" languange end communication ? based on what criteria ?! This is not a problem. The first byte is the message t...
by msu
Mon Apr 22, 2019 9:23 pm
Forum: General programming
Topic: Problem with ReceiveData
Replies: 24
Views: 1764

Re: Problem with ReceiveData

Here's an example: Server: CreateServer(1,2900) Function p_ConnectFunc(msg) Switch(msg.action) Case "OnDisconnect": CloseConnection(msg.id) Case "OnConnect": SendData(msg.clientid,"Hallo Klient") EndSwitch EndFunction InstallEventHandler({OnConnect = p_ConnectFunc, OnDisconnect = p_ConnectFunc}) Rep...
by msu
Mon Apr 22, 2019 8:58 pm
Forum: General programming
Topic: Problem with ReceiveData
Replies: 24
Views: 1764

Re: Problem with ReceiveData

Hello plouf!

I did the following:

- I used a different programming language. Everything worked very well.

- To be really sure, I used the software "Wireshark".
There were no more messages. :(
by msu
Mon Apr 22, 2019 12:03 pm
Forum: General programming
Topic: Problem with ReceiveData
Replies: 24
Views: 1764

Problem with ReceiveData

Hello! My Hollywood program receives data from a PostgreSQL server. The network connection will persist during the session. The connection is NOT terminated by the server. Unfortunately, ReceiveData behaves pretty useless in this case. #RECEIVELINE is not working. The server also sends binary data. ...
by msu
Sun Mar 31, 2019 3:44 pm
Forum: Announcements
Topic: hURL 1.0 released
Replies: 15
Views: 1775

Re: hURL 1.0 released

Fantastic :o , thank you!
by msu
Sun Mar 17, 2019 9:09 am
Forum: SDK
Topic: Array and plugin functions
Replies: 3
Views: 988

Re: Array and plugin functions

How do I declare lua_isnil, lua_tonumber, lua_pop in the C++ Header?

They do not seem to belong to LuaBase.

It was easy with lua_rawgeti.
The following entry in the header worked:

Code: Select all

#define lua_rawgeti hwcl->LuaBase->lua_rawgeti
by msu
Sat Mar 16, 2019 2:27 pm
Forum: SDK
Topic: Array and plugin functions
Replies: 3
Views: 988

Array and plugin functions

Hello!
Is it possible to pass an array to a plugin function?
Can a plugin function also return an array to Hollywood?

A simple C ++ example would be nice.

Greetings, Michael
by msu
Tue Apr 04, 2017 9:20 pm
Forum: General programming
Topic: ReceiveData callback and userdata
Replies: 3
Views: 2067

Re: ReceiveData callback and userdata

Quick support here! :(
by msu
Sun Apr 02, 2017 7:55 pm
Forum: General programming
Topic: ReceiveData callback and userdata
Replies: 3
Views: 2067

ReceiveData callback and userdata

Hi,
How can I use callback and userdata with ReceiveData(1, #RECEIVEALL,..)?
An example would be nice.

Greetings, Michael