all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* synchronous network communication?
@ 2011-01-17  3:15 chris
  2011-01-17  7:21 ` Helmut Eller
  0 siblings, 1 reply; 3+ messages in thread
From: chris @ 2011-01-17  3:15 UTC (permalink / raw)
  To: help-gnu-emacs

Hi there,

I am trying to talk to a server over a telnet like protocol, using
open-network-stream like so:
* first open the stream:
(setq redis (open-network-stream "*redis*" buffer host port))

* All works well and I can talk to the process like so:

(process-send-string
 redis
 (format(concat
	 "hgetall "
	 (buffer-substring-no-properties beg end)
	 "\r\n"
	 "\r\n"))))

and find the results in my buffer.  However, this is an asynchronous
communication and if the answer takes a while, my code might try to
deal with the answer before it is ready.  So my question is:  is there
a way to do this communication in an asynchronous manner?  I looked
through the docs but could not find anything.

Any help appreciated,

Chris


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-18  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-17  3:15 synchronous network communication? chris
2011-01-17  7:21 ` Helmut Eller
2011-01-18  7:04   ` chris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.