Changeset 247 in flair-src for trunk/lib/FlairCore/src/ui_com.cpp
- Timestamp:
- May 28, 2018, 6:23:35 PM (6 years ago)
- File:
-
- 1 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());
Note:
See TracChangeset
for help on using the changeset viewer.