Search found 34 matches: sendfile

Return to advanced search

Re: Help using Sockets

Maurizio, "SendData" works well ( no more GPF or blocks ) good! :-) "SendFile" the file arrive to the server but remain "access denied" I guess that the server is creating the file. How is it created ? Is it available in a shared folder ...
by Antonio Linares
Mon Sep 13, 2010 7:39 am
 
Forum: FiveWin for Pocket PC
Topic: Help using Sockets
Replies: 17
Views: 5105

Re: Help using Sockets

Antonio, "SendData" works well ( no more GPF or blocks ) . "SendFile" the file arrive to the server but remain "access denied" . A question , when I have 2 PDA and send a message or a file from the server the message arrives only ...
by Maurizio
Fri Sep 10, 2010 10:43 am
 
Forum: FiveWin for Pocket PC
Topic: Help using Sockets
Replies: 17
Views: 5105

HELP Error TOleAuto/-1 CO_E_CLASSSTRING: TOLEAUTO:NEW

... TRANSACCION O TRANSEFERENCUA strParam6:= "C:\CPSADUAN\nsigad\archivos" // NOMBRE DE ARCHIVO O RUTA DE BANDEJA objCom:Init_t() objCom:SendFile( strParam5, strParam6, @t1, strXML ) i := t1 objCom:Final_t() objCom := Nil //**************************************************************************** ...
by Vladimir Zorrilla
Wed Nov 18, 2009 6:50 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HELP Error TOleAuto/-1 CO_E_CLASSSTRING: TOLEAUTO:NEW
Replies: 1
Views: 661

CREATEOBJECT ERRORES

... TRANSACCION O TRANSEFERENCUA strParam6:= "C:\CPSADUAN\nsigad\archivos" // NOMBRE DE ARCHIVO O RUTA DE BANDEJA objCom:Init_t() objCom:SendFile( strParam5, strParam6, @t1, strXML ) i := t1 objCom:Final_t() objCom := Nil //**************************************************************************** ...
by Vladimir Zorrilla
Wed Nov 18, 2009 6:47 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: CREATEOBJECT ERRORES
Replies: 3
Views: 1116

Ejemplo Socket asincrono

... end if return function BarixConn(nId,oWnd) local oSocket,b:=.f. oSocket = TSocket():New( 2020 ) oSocket:bConnect = { || iif(SendFile(@oSocket,nId),(oSocket:End(),oWnd:end()),)} oSocket:bClose = { || MsgInfo( "Server has closed!" ) } oSocket:Connect( "192.168.0.200" ...
by softruz
Thu Jan 29, 2009 12:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ejemplo Socket asincrono
Replies: 4
Views: 947

... origem (SOCKSERV) para o destino (SOCKCLI.PRG)! Exemplo: // Socket server connection sample #include "FiveWin.ch" #define ST_COMMAND 1 #define ST_SENDFILE 2 #define FILE_BLOCK 8000 static oWnd, oSocket, oClient //------------------------------------------------------------------------// function ...
by MGA
Mon Sep 22, 2008 8:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Sr. Antonio ajuda com SOCKET´s!
Replies: 14
Views: 2738

SMTP

... ) + CRLF + ; "Content-Disposition: inline; " + ; // LKM was attachment 'filename="' + cFileNoPath( ::aFiles[ nI ] ) + '"' + CRLF + CRLF ) oSocket:SendFile( ::aFiles[ nI ],, ::nDelay ) Else oSocket:SendData( CRLF + "--NextPart" + CRLF + ; "Content-Type: " + DocType( cExt ) + ; 'name="' + ::aFiles[ ...
by TimStone
Fri Aug 01, 2008 11:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsntp ( attachments )
Replies: 14
Views: 3149

Solution

Here is the problem. When you create the temporary file, it is local, but when you use oSocket:SendFile, it uses the default path. Here is the solution. Make this change in your code: Static Function TmpFile() Local cTmpDir := GetEnv( "TEMP" ) + "\" // LK Mar/26/2008 added ...
by TimStone
Fri Aug 01, 2008 3:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsntp ( attachments )
Replies: 14
Views: 3149

SOCKET - HELP - resolvido : )

... the data entered. How to do this using the example below? // Socket server connection sample #include "FiveWin.ch" #define ST_COMMAND 1 #define ST_SENDFILE 2 #define FILE_BLOCK 8000 static oWnd, oSocket, oClient //------------------------------------------------------------------------// function ...
by MGA
Thu Apr 24, 2008 2:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SOCKET - HELP - resolvido : )
Replies: 1
Views: 593

SOCKET - Teclado WILBOR - RESOLVIDO

... na porta ou receber os dados digitados no teclado? // Socket server connection sample #include "FiveWin.ch" #define ST_COMMAND 1 #define ST_SENDFILE 2 #define FILE_BLOCK 8000 static oWnd, oSocket, oClient //------------------------------------------------------------------------// function ...
by MGA
Thu Apr 24, 2008 2:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SOCKET - Teclado WILBOR - RESOLVIDO
Replies: 7
Views: 1797

Antonio,
The received file added some connection msgs at the file bof and eof, so the file gets unuseable.
Bof as: 04/16/08 15:33:44: 17 SENDFILE MY.EXE
04/16/08 15:33:44: 8192 MZP
Eof as :04/16/08 15:33:46: writting...
Best Regrads!
Shuming Wang
by ShumingWang
Wed Apr 16, 2008 7:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to: a app transport a file to another app?
Replies: 8
Views: 1257

TSMTP solucion adjuntar ficheros

Hola:
Resuelto el problema. SendFile de TSOCKET.PRG no veía el fichero temporal que se genera con TmpFile(). Le he puesto una ruta fija y todo funciona bien recibiendo el fichero con tamaño.

Saludos.

Ricardo Patón
by RPATON
Mon Aug 06, 2007 3:25 pm
 
Forum: FiveWin para CA-Clipper
Topic: TSMTP de Luis Krause / Tamaño 0 en ficheros adjuntos
Replies: 2
Views: 1063

FTP

... cFTPDir := cFTPDir+"/" end FtpInit(@oInt,@oFtp,cFTPServer,cFTPUser,cFTPPwd) //hMon := fCreate("info.txt") hmon:="ftp.txt" if oFtp:hFtp > 0 SendFile(cFTPDir,cFile,oFtp,hMon,oInt) else //msginfo("HAY PROBLEMAS EN SU CONEXIÒN A INTERNET, DATOS NO PUDIERON SER ENVIADOS","IMPORTANTE") end oInt:End() ...
by omarelunico
Tue Jul 10, 2007 10:19 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ftp con fivewin
Replies: 10
Views: 4385

... puede cambiar absolutamente nada del contenido, ni siquiera un espacio. Lo que he estado observando es que al parecer las funciones FMIMEENC() y ::SendFile() se estan comiendo parte de mi mensaje. He intentado usar la funcion del maestro Luis Krause, pero tb marca el mismo error, asi es que presumo ...
by dbzap
Tue Jan 02, 2007 1:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problema TSmtp y comillas dobles en archivos atachados
Replies: 11
Views: 4347

AYUDA URGENTE !!!! COMO ENVIAR DATOS CON SOCKTES

... TOOLTIP "Connect" DEFINE BUTTON OF oBar ; ACTION oSocket:SendData( "MSG This is a test" ) ; TOOLTIP "Send data" DEFINE BUTTON OF oBar ; ACTION SendFile() TOOLTIP "Send file" DEFINE BUTTON OF oBar ; ACTION SendDb() TOOLTIP "Send Db" ACTIVATE WINDOW oWnd return nil //***************************************************** ...
by prm_pedro
Mon Oct 16, 2006 2:05 pm
 
Forum: FiveWin para CA-Clipper
Topic: AYUDA URGENTE !!!! COMO ENVIAR DATOS CON SOCKTES
Replies: 1
Views: 866
PreviousNext

Return to advanced search