flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > MenuetOS > TCP/IP and sockets

Author
Thread Post new topic Reply to topic
kerr



Joined: 24 Feb 2016
Posts: 93
TCP/IP and sockets
I want use fasm complie socket connect network, do youknow? please. help me!

_________________
hello world!
Post 23 Mar 2016, 11:12
View user's profile Send private message MSN Messenger Reply with quote
Ville



Joined: 17 Jun 2003
Posts: 197
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: 93

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.

_________________
hello world!
Post 30 Mar 2016, 15:46
View user's profile Send private message MSN Messenger Reply with quote
antos



Joined: 13 Jul 2016
Posts: 23
Location: Syria
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
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: 93

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.

_________________
hello world!
Post 18 Aug 2016, 09:04
View user's profile Send private message MSN Messenger 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.