Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Non-blocking socket listening

Hello,

I have a question, one might be able to aswer.
I am using an the winsock api through VBA in Excel to communicate with
a Haskell server.
The Haskell server allows multiple clients. All incoming data and
computed results are multiplexed to all clients.
Therefore the Excel client has somehow to react an some 'action' on
the channel. Is the a possibility to generate an event, whenever data
is arriving on the channel? Of course, this behavior must be non-
blocking.

In my opinion, polling would be a valid but bad solution for this
problem.

Thanks in advance for your suggestions,

regards,
Markus

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default Non-blocking socket listening

markus,
this is excel. you need to be posting to tech net or similar.

"Markus" wrote:

Hello,

I have a question, one might be able to aswer.
I am using an the winsock api through VBA in Excel to communicate with
a Haskell server.
The Haskell server allows multiple clients. All incoming data and
computed results are multiplexed to all clients.
Therefore the Excel client has somehow to react an some 'action' on
the channel. Is the a possibility to generate an event, whenever data
is arriving on the channel? Of course, this behavior must be non-
blocking.

In my opinion, polling would be a valid but bad solution for this
problem.

Thanks in advance for your suggestions,

regards,
Markus


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Non-blocking socket listening

Markus,
Unless are familiar with API calls, why not use the WinSock control
initially. Here's an example:
http://vbnet.mvps.org/code/network/winsocksynctime.htm

NickHK

"Markus" wrote in message
oups.com...
Hello,

I have a question, one might be able to aswer.
I am using an the winsock api through VBA in Excel to communicate with
a Haskell server.
The Haskell server allows multiple clients. All incoming data and
computed results are multiplexed to all clients.
Therefore the Excel client has somehow to react an some 'action' on
the channel. Is the a possibility to generate an event, whenever data
is arriving on the channel? Of course, this behavior must be non-
blocking.

In my opinion, polling would be a valid but bad solution for this
problem.

Thanks in advance for your suggestions,

regards,
Markus



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Non-blocking socket listening

Sorry about that, I guess I didn't really write what I want to
know :-)
Since the WinSock control is not available in my environment, nor
ScriptUtilities are, I search for a way to listen on a socket via
Excel VBA. This listening should be non-blocking, of course. I am
wondering, whether this is possible without threads or the Winsock
control.

Thanks,
Markus

On Jun 13, 11:15 pm, FSt1 wrote:
markus,
this is excel. you need to be posting to tech net or similar.

"Markus" wrote:
Hello,


I have a question, one might be able to aswer.
I am using an the winsock api through VBA in Excel to communicate with
a Haskell server.
The Haskell server allows multiple clients. All incoming data and
computed results are multiplexed to all clients.
Therefore the Excel client has somehow to react an some 'action' on
the channel. Is the a possibility to generate an event, whenever data
is arriving on the channel? Of course, this behavior must be non-
blocking.


In my opinion, polling would be a valid but bad solution for this
problem.


Thanks in advance for your suggestions,


regards,
Markus



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Non-blocking socket listening

If this is in VBA, then you can use the winsock control.

NickHK

"Markus" wrote in message
ups.com...
Sorry about that, I guess I didn't really write what I want to
know :-)
Since the WinSock control is not available in my environment, nor
ScriptUtilities are, I search for a way to listen on a socket via
Excel VBA. This listening should be non-blocking, of course. I am
wondering, whether this is possible without threads or the Winsock
control.

Thanks,
Markus

On Jun 13, 11:15 pm, FSt1 wrote:
markus,
this is excel. you need to be posting to tech net or similar.

"Markus" wrote:
Hello,


I have a question, one might be able to aswer.
I am using an the winsock api through VBA in Excel to communicate with
a Haskell server.
The Haskell server allows multiple clients. All incoming data and
computed results are multiplexed to all clients.
Therefore the Excel client has somehow to react an some 'action' on
the channel. Is the a possibility to generate an event, whenever data
is arriving on the channel? Of course, this behavior must be non-
blocking.


In my opinion, polling would be a valid but bad solution for this
problem.


Thanks in advance for your suggestions,


regards,
Markus





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo box is not listening to its linked cell Simon W Excel Programming 7 July 8th 11 02:30 PM
Socket Connection via Excel Alexander Weiner Excel Programming 1 June 26th 06 12:35 PM
socket in excel vba [email protected] Excel Programming 0 June 9th 06 06:26 PM
VBA Socket / Winsock control / issues? Demo app provided. Rick Labs[_3_] Excel Programming 0 April 5th 06 07:54 PM
Socket Programming in Excel Fung Excel Programming 0 July 19th 04 03:39 AM


All times are GMT +1. The time now is 03:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"