etc:users:zps:questions
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| etc:users:zps:questions [2007/12/16 00:17] – создано zps | etc:users:zps:questions [2016/08/08 20:53] (current) – ↷ Page moved from users:zps:questions to etc:users:zps:questions kel | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| unsigned short m_seqNumber; | unsigned short m_seqNumber; | ||
| unsigned short m_size; //!< размер пакета | unsigned short m_size; //!< размер пакета | ||
| - | }; </ | + | }; </ |
| - | |Можно ли перевести сокет из блокирующего в неблокирующий в процессе его работы, | + | |Можно ли перевести сокет из блокирующего в неблокирующий в процессе его работы, |
| + | bool setAsync(int h,bool isAsync) | ||
| + | { | ||
| + | int fl=fcntl(h, | ||
| + | |||
| + | if(isAsync) | ||
| + | fl |= O_NONBLOCK; | ||
| + | else | ||
| + | fl &= ~O_NONBLOCK; | ||
| + | |||
| + | return 0==fcntl(h, | ||
| + | } | ||
| + | </ | ||
| + | | Что будет, если я в конструктор к string дам const char * без нуля в конце? | < | ||
| + | | Как выполнить disconnect? | Всё банальное просто: | ||
| + | | Можно ли закрытый сокет открыть заново, | ||
etc/users/zps/questions.1197753430.txt.gz · Last modified: 2008/01/03 02:32 (external edit)