GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
SocketWrite issue
SocketWrite issue
Iniciado por Eric Strybos, nov., 19 2018 11:45 AM - 1 resposta
Conecte-se…
Eric Strybos
#1
Publicado em novembro, 19 2018 - 11:45 AM
Hi,
I have to transmit some strings to a non windev application (TCP application on a server)
Therefore i use the sockets.
My code steps were the following:
1. SocketConnect("Client_Socket",port,address,10000)--> ok, i can make a connection
2. SocketWrite("Client_Socket","PRAX_[OTPR|0032494161752|99000109]") --> The other application only received the length of the message send ? = 34 !!
ok, because the SocketSizeAtBeginning = Default value of the type of transmission i tought
Correction
So before step2 i use
1b. IF SocketChangeTransmissionMode("Client_Socket",SocketNoEndTag) = True ...
But, ... after step2 = SocketWrite("Client_Socket","PRAX_[OTPR|0032494161752|99000109]") the other application received nothing more ????
What am i doing wrong ?
Thanks for your help,
Eric
Denunciar
0
0
Eric Strybos
#2
Publicado em novembro, 20 2018 - 1:51 PM
I made the following correction and it works now fine
SocketChangeTransmissionMode("Client_Socket",SocketEndTag,CR)
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto