Bluehost.com Web Hosting $6.95

Network programming

This is a discussion on Network programming within the Linux Networking forums, part of the Linux Forums category; Hi NG, I'm trying to develop some application that communicate via the network. One application (say A) basically sends ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-13-2006
Capstar
 
Posts: n/a
Default Network programming

Hi NG,

I'm trying to develop some application that communicate via the network.
One application (say A) basically sends a command to another (say B),
which will reply with OK or NOT-OK. This is easy enough.
The problem is that application B can also send messages on it's on
initiative to application A. These are events based on actual hardware
events.
The requirements I have are that a command-reply sequence is blocking.
So application A will wait until it gets a reply from application B. If
an event is received a function should be called on a seperate thread.

However application A will not continuously monitor the socket to see if
events are received. So I think (pretty sure) that application A should
have another thread that does monitor the socket continuously and
notifies the main thread when a reply occurs.

This seems a bit messy to me so I was wondering if there's a standard
way of dealing with synchronous and asynchronous communication available?

Can anyone give me some tips on how to continue?
Thank
Mark
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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




All times are GMT +1. The time now is 12:33 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0