flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
dacid
i connect to a port using "connect" and then i try to receive the data with "recv" but it fails. I suspect that first i must "send" something after "recv"... is this correct?
|
|||
![]() |
|
dacid
buy when you connect to a port that "returns" something it is neccessary to send something before recv?
|
|||
![]() |
|
asmcoder
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total |
|||
![]() |
|
dacid
It is a console application:
Code: LOCAL recvbuf[4096]:BYTE invoke connect,hSocket,ADDR sockinfo,size sockaddr ... invoke select,hSocket,0,ADDR readfds,0,ADDR timeout invoke recv,hSocket,ADDR recvbuf,4096,NULL GetLastError returns 10035 & 10057 |
|||
![]() |
|
asmcoder
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total |
|||
![]() |
|
dacid
you can change invoke to call and its the same in this particular case... the connect function and select works ok... plz dont tell me in what language should i code
![]() |
|||
![]() |
|
asmcoder
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total |
|||
![]() |
|
LocoDelAssembly
dacid, save some time by searching the forum for already working examples and/or links instead.
|
|||
![]() |
|
dacid
I cant post all source because it is code for my job
![]() ![]() LOCAL defines a LOCAL variable or buffer, in this case it is a BUFFER of 4096 bytes where the data "recv" will be stored. ADDR its offset. Thx you anyway! |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.