Im sending the contents of a bitmap over TCP functions over my LAN
with this function:
'------------------------------------------------------------------------------------------------------------------------
No errors are reported.
This is the function i use to receive the information in the other side:
It works good with small amounts of information, however, with the bitmaps
which weight around 3MB each, the information is truncated at 80kb. Not even close to the real contents.
My question is, can any characters contained in the BMP raw information
be interpreted as EOF?
In case not... what can i possibly be doing wrong here?
Thanx.
with this function:
'------------------------------------------------------------------------------------------------------------------------
Code:
Function SendInfo(ByVal SDAddress As Long) As Long Local SD As SendData Ptr Local TheString As String SD = SDAddress TheString = Peek$(@SD.StringPointer, @SD.StringLength) ErrClear Tcp Send @SD.hFileOpen, TheString Call PostMessage(HWND_TASKBAR, %TCP_DATASENT, Err, Len(TheString)) End Function
This is the function i use to receive the information in the other side:
Code:
Function ReceiveInfo(ByVal hFileOpen As Long) As Long Local Recibido As String Local Buffer As String Local SD As SendData ErrClear Do Tcp Recv hFileOpen, 18945, Buffer If Buffer = "" Then Exit Do Recibido = (Recibido & Buffer) If (Len(Buffer) < 18945) Then If Eof(hFileOpen) Then Exit Do End If Loop SD.hFileOpen = hFileOpen SD.StringPointer = StrPtr(Recibido) SD.StringLength = Len(Recibido) Call SendMessage(HWND_MAINFORMSERVER, %TCP_DATAREADY, hFileOpen, VarPtr(SD)) End Function
which weight around 3MB each, the information is truncated at 80kb. Not even close to the real contents.
My question is, can any characters contained in the BMP raw information
be interpreted as EOF?
In case not... what can i possibly be doing wrong here?
Thanx.


Comment