Lines Matching refs:flags
189 int CreateSocket(int flags, const char *server)
192 int type = flags & 0x0000ff00;
193 LE_LOGV("CreateSocket flags %x type %x server %s", flags, type, server);
195 if (LE_TEST_FLAGS(flags, TASK_SERVER)) {
197 } else if (LE_TEST_FLAGS(flags, TASK_CONNECT)) {
201 if (LE_TEST_FLAGS(flags, TASK_SERVER)) {
203 (int)LE_TEST_FLAGS(flags, TASK_PUBLIC));
204 } else if (LE_TEST_FLAGS(flags, TASK_CONNECT)) {
209 LE_LOGE("Invalid flags 0x%08x for server %s", flags, server);
215 int AcceptSocket(int fd, int flags)
218 int type = flags & 0x0000ff00;
224 LE_LOGE("AcceptSocket invalid flags %#8x ", flags);
232 int listenSocket(int fd, int flags, const char *server)
234 unsigned int type = (unsigned int)flags & 0x0000ff00;
235 LE_LOGV("listenSocket flags %x type %x server %s", flags, type, server);
237 if (!LE_TEST_FLAGS((unsigned int)flags, TASK_SERVER)) {