31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ool S.receive string(string& s)<br />

receives string s.<br />

bool<br />

S.receive int(int& x) receives (a text representation of) an integer and<br />

stores its value in x.<br />

bool S.wait(string s) returns true, if s is received, false otherwise.<br />

<strong>The</strong> following template functions can be used to send/receive objects supporting input<br />

and output operators for iostreams.<br />

template <br />

void socket send object(const T & obj , leda socket& sock)<br />

sends obj to the connection partner of sock.<br />

template <br />

void socket receive object(T & obj , leda socket& sock)<br />

receives obj from the connection partner of sock.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!