Networking support? #105
-
Hi! I'm poking around at virgil (I find it very intriguing), but I'm wondering about I/O support. It seems to me that there is currently support for file reading/writing, but no support for sockets/networking. Is that correct? How would one go about adding such support (let's say just for Linux)? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 12 replies
-
That's right, there isn't support yet for sockets. To add that for Linux, one could use the kernel system calls directly: https://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/ It's a little tricky to do all of that manually, but is doable and can be wrapped up into a nice library. |
Beta Was this translation helpful? Give feedback.
-
Are you targeting |
Beta Was this translation helpful? Give feedback.
-
Random debugging tip: Pass It's low-level, I know. Debugging support could be improved, for sure. But symbols were a lifesaver for me. |
Beta Was this translation helpful? Give feedback.
-
I just noticed 8520fa8! Very exciting. |
Beta Was this translation helpful? Give feedback.
-
Since @k-sareen is writing network code from scratch, I thought I'd share this here (number 1 on HN right now) https://news.ycombinator.com/item?id=34179426. |
Beta Was this translation helpful? Give feedback.
That's right, there isn't support yet for sockets. To add that for Linux, one could use the kernel system calls directly: https://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/
It's a little tricky to do all of that manually, but is doable and can be wrapped up into a nice library.