Daten aus einem Key herausholen


  1. int send_data(char* data)
  2. {
  3.      int* saved_connp;
  4.      ...
  5.      saved_connp = pthread_getspecific( conn_key );
  6.      write( *saved_connp, ...);
  7.      ...
  8. }
  9. int receive_data(char** data)
  10. {
  11.      int* saved_connp;
  12.      ...
  13.      saved_connp = pthread_getspecific( conn_key );
  14.      read( *saved_connp, ...);
  15.      ...
  16. }

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use <fn>...</fn> to insert automatically numbered footnotes.
  • You can use the <go> tags just like the <a> for nicer urls.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.