flat assembler
Message board for the users of flat assembler.

Index > MenuetOS > TCP/IP and sockets

Author
Thread Post new topic Reply to topic
kerr



Joined: 24 Feb 2016
Posts: 156
kerr 23 Mar 2016, 11:12
I want use fasm complie socket connect network, do youknow? please. help me!

_________________
I hope we will be good friends.
Post 23 Mar 2016, 11:12
View user's profile Send private message Reply with quote
Ville



Joined: 17 Jun 2003
Posts: 312
Ville 25 Mar 2016, 10:02
System call 53 is for TCP/IP connections. With syscall 53/5 you can open a tcp/ip connection in active mode to a remote computer and then use the returned socket number for all the following system calls. With syscall 53/6 you should wait for the connection to be established (state 4) and then use system calls 53/7,53/17,53/3,53/13 for sending and receiving data. Once the connection is over or closed by the remote computer, you need to close the connection with syscall 53/8. You can also open a listening connection with syscall 53/5 in passive mode for server purposes. See: http://menuetos.net/syscall.txt
Post 25 Mar 2016, 10:02
View user's profile Send private message Reply with quote
kerr



Joined: 24 Feb 2016
Posts: 156
kerr 30 Mar 2016, 15:46
Ville wrote:
System call 53 is for TCP/IP connections. With syscall 53/5 you can open a tcp/ip connection in active mode to a remote computer and then use the returned socket number for all the following system calls. With syscall 53/6 you should wait for the connection to be established (state 4) and then use system calls 53/7,53/17,53/3,53/13 for sending and receiving data. Once the connection is over or closed by the remote computer, you need to close the connection with syscall 53/8. You can also open a listening connection with syscall 53/5 in passive mode for server purposes. See: http://menuetos.net/syscall.txt



oh, i don't use menuetOS system api , i want myself complie use fasm complie sockets! want is very trouble.

_________________
I hope we will be good friends.
Post 30 Mar 2016, 15:46
View user's profile Send private message Reply with quote
antos



Joined: 13 Jul 2016
Posts: 23
Location: Syria
antos 08 Aug 2016, 11:47
What do you mean? If you learn English, maybe we can help you.
Post 08 Aug 2016, 11:47
View user's profile Send private message Reply with quote
antos



Joined: 13 Jul 2016
Posts: 23
Location: Syria
antos 08 Aug 2016, 11:53
Simply, you can't. You can't access Internet Card without use system calls, even you can, you need to implement sockets and other protocols again. This is job of the OS. This is purpose of the OS. Do not try to reinvent the wheel.

_________________
V0.01
Post 08 Aug 2016, 11:53
View user's profile Send private message Reply with quote
kerr



Joined: 24 Feb 2016
Posts: 156
kerr 18 Aug 2016, 09:04
antos wrote:
Simply, you can't. You can't access Internet Card without use system calls, even you can, you need to implement sockets and other protocols again. This is job of the OS. This is purpose of the OS. Do not try to reinvent the wheel.



Yes I need to implement sockets and other protocols again.

_________________
I hope we will be good friends.
Post 18 Aug 2016, 09:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.