| 99 | } |
| 100 | |
| 101 | fs_fd_t* Socket::Open(size_t flags){ |
| 102 | fs_fd_t* fDesc = (fs_fd_t*)kmalloc(sizeof(fs_fd_t)); |
| 103 | |
| 104 | fDesc->pos = 0; |
| 105 | fDesc->mode = flags; |
| 106 | fDesc->node = this; |
| 107 | |
| 108 | return fDesc; |
| 109 | } |
| 110 | |
| 111 | void Socket::Close(){ |
| 112 | if(bound){ |