Changeset 247 in flair-src for trunk/lib/FlairCore
- Timestamp:
- May 28, 2018, 6:23:35 PM (7 years ago)
- Location:
- trunk/lib/FlairCore/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/ui_com.cpp
r243 r247 105 105 if (UDT::setsockopt(socket_fd, 0, UDT_RCVTIMEO, &timeout, sizeof(int)) != 0) 106 106 Err("UDT::setsockopt error (UDT_RCVTIMEO)\n"); 107 107 /* 108 timeout=-1; 109 if (UDT::setsockopt(socket_fd, 0, UDT_SNDTIMEO, &timeout, sizeof(int)) != 0) 110 Err("UDT::setsockopt error (UDT_SNDTIMEO)\n"); 111 */ 108 112 bool blocking = true; 109 113 if (UDT::setsockopt(socket_fd, 0, UDT_SNDSYN, &blocking, sizeof(bool)) != 0) … … 138 142 139 143 Join(); 140 144 145 char buf=CLOSING_CONNECTION; 146 Send(&buf,1); 147 141 148 if (send_buffer != NULL) 142 149 free(send_buffer); … … 196 203 nb_write = UDT::sendmsg(socket_fd, tosend, size, -1, true); 197 204 #endif // COMPRESS_FRAMES 198 //Printf("write %i %i\n",nb_write,size);205 //Printf("write %i %i\n",nb_write,size); 199 206 if (nb_write < 0) { 200 207 Err("UDT::sendmsg error (%s)\n", UDT::getlasterror().getErrorMessage()); -
trunk/lib/FlairCore/src/unexported/communication.h
r234 r247 12 12 #define DATAS_LITTLE_ENDIAN 0x02 13 13 #define DATAS_BIG_ENDIAN 0x03 14 #define CLOSING_CONNECTION 0x04 14 15 16 //messages file socket 15 17 #define START_SENDING_FILES 0x10 16 18 #define FILE_INFO_LITTLE_ENDIAN 0x11
Note:
See TracChangeset
for help on using the changeset viewer.