flat assembler
Message board for the users of flat assembler.
Index
> Windows > connect & recv |
Author |
|
MoXter 04 Dec 2008, 00:28
If no error occurs, recv returns the number of bytes received. If the connection has been gracefully closed, the return value is zero. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling WSAGetLastError. As you didnt send any data,function return error.
|
|||
04 Dec 2008, 00:28 |
|
dacid 04 Dec 2008, 09:20
buy when you connect to a port that "returns" something it is neccessary to send something before recv?
|
|||
04 Dec 2008, 09:20 |
|
asmcoder 04 Dec 2008, 10:59
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total |
|||
04 Dec 2008, 10:59 |
|
dacid 04 Dec 2008, 14:31
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 |
|||
04 Dec 2008, 14:31 |
|
asmcoder 04 Dec 2008, 14:46
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total |
|||
04 Dec 2008, 14:46 |
|
dacid 04 Dec 2008, 19:11
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
|
|||
04 Dec 2008, 19:11 |
|
asmcoder 04 Dec 2008, 20:39
[content deleted]
Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total |
|||
04 Dec 2008, 20:39 |
|
LocoDelAssembly 04 Dec 2008, 21:07
dacid, save some time by searching the forum for already working examples and/or links instead.
|
|||
04 Dec 2008, 21:07 |
|
dacid 06 Dec 2008, 23:05
I cant post all source because it is code for my job i will keep on trying
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! |
|||
06 Dec 2008, 23:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.