Changeset 6df9b4eaa028449b79d22fd44cae8e39ca784617
- Timestamp:
- 22/09/05 22:48:59
(3 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1127422139 +0000
- git-parent:
[56f453f7af82b92dbb3ad75d0a3da68070561708]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1127422139 +0000
- Message:
* modules/access/mms/mmstu.c: use net_Write() instead of send().
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r6a1a3a7 |
r6df9b4e |
|
| 927 | 927 | * |
|---|
| 928 | 928 | ****************************************************************************/ |
|---|
| 929 | | static int mms_CommandSend( access_t *p_access, |
|---|
| 930 | | int i_command, |
|---|
| 931 | | uint32_t i_prefix1, uint32_t i_prefix2, |
|---|
| 932 | | uint8_t *p_data, int i_data_old ) |
|---|
| | 929 | static int mms_CommandSend( access_t *p_access, int i_command, |
|---|
| | 930 | uint32_t i_prefix1, uint32_t i_prefix2, |
|---|
| | 931 | uint8_t *p_data, int i_data_old ) |
|---|
| 933 | 932 | { |
|---|
| 934 | 933 | var_buffer_t buffer; |
|---|
| 935 | | |
|---|
| 936 | | access_sys_t *p_sys = p_access->p_sys; |
|---|
| 937 | | int i_data_by8; |
|---|
| | 934 | access_sys_t *p_sys = p_access->p_sys; |
|---|
| | 935 | int i_data_by8, i_ret; |
|---|
| 938 | 936 | int i_data = i_data_old; |
|---|
| 939 | 937 | |
|---|
| … | … | |
| 967 | 965 | |
|---|
| 968 | 966 | /* send it */ |
|---|
| 969 | | if( send( p_sys->i_handle_tcp, |
|---|
| 970 | | buffer.p_data, |
|---|
| 971 | | buffer.i_data - ( 8 - ( i_data - i_data_old ) ), |
|---|
| 972 | | 0 ) == -1 ) |
|---|
| | 967 | i_ret = net_Write( p_access, p_sys->i_handle_tcp, NULL, buffer.p_data, |
|---|
| | 968 | buffer.i_data - ( 8 - ( i_data - i_data_old ) ) ); |
|---|
| | 969 | if( i_ret != buffer.i_data - ( 8 - ( i_data - i_data_old ) ) ) |
|---|
| 973 | 970 | { |
|---|
| 974 | 971 | msg_Err( p_access, "failed to send command" ); |
|---|