Subversion Repositories Kolibri OS

Rev

Rev 323 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 323 Rev 379
Line 213... Line 213...
213
    mov     ebx, [stack_ip]
213
    mov     ebx, [stack_ip]
214
    mov     [eax + SOCKET.LocalIP], ebx 	
214
    mov     [eax + SOCKET.LocalIP], ebx
215
    mov     [eax + SOCKET.RemoteIP], edx  
215
    mov     [eax + SOCKET.RemoteIP], edx
216
    mov     [eax + SOCKET.rxDataCount], dword 0      ; recieved data count
216
    mov     [eax + SOCKET.rxDataCount], dword 0      ; recieved data count
Line 217... Line 217...
217
 
217
 
218
    mov     esi, [0x3010]
218
    mov     esi, [TASK_BASE]
219
    mov     ebx, [esi+TASKDATA.pid]
219
    mov     ebx, [esi+TASKDATA.pid]
220
    mov     [eax + SOCKET.PID], ebx	    ; save the process ID
220
    mov     [eax + SOCKET.PID], ebx	    ; save the process ID
Line 221... Line 221...
221
    pop     eax      ; Get the socket number back, so we can return it
221
    pop     eax      ; Get the socket number back, so we can return it
Line 277... Line 277...
277
    mov     ebx, TCB_SYN_SENT
277
    mov     ebx, TCB_SYN_SENT
Line 278... Line 278...
278
 
278
 
279
sot_001:
279
sot_001:
Line 280... Line 280...
280
    mov     [eax + SOCKET.TCBState], ebx	    ; Indicate the state of the TCB
280
    mov     [eax + SOCKET.TCBState], ebx	    ; Indicate the state of the TCB
281
 
281
 
282
    mov     esi, [0x3010]
282
    mov     esi, [TASK_BASE]
Line 283... Line 283...
283
    mov     ecx, [esi+TASKDATA.pid]
283
    mov     ecx, [esi+TASKDATA.pid]
284
    mov     [eax + SOCKET.PID], ecx	    ; save the process ID
284
    mov     [eax + SOCKET.PID], ecx	    ; save the process ID
Line 707... Line 707...
707
    pop     ecx 		 ; count of bytes to send
707
    pop     ecx 		 ; count of bytes to send
708
    mov     ebx, ecx		; need the length later
708
    mov     ebx, ecx		; need the length later
709
    pop     eax 		 ; get callers ptr to data to send
709
    pop     eax 		 ; get callers ptr to data to send
Line 710... Line 710...
710
 
710
 
711
    ; Get the address of the callers data
711
    ; Get the address of the callers data
712
    mov     edi, [0x3010]
712
    mov     edi, [TASK_BASE]
713
    add     edi, TASKDATA.mem_start
713
    add     edi, TASKDATA.mem_start
714
    add     eax, [edi]
714
    add     eax, [edi]
Line 715... Line 715...
715
    mov     esi, eax
715
    mov     esi, eax
Line 822... Line 822...
822
    push    eax
822
    push    eax
Line 823... Line 823...
823
 
823
 
Line 824... Line 824...
824
    mov     bl, 0x10	    ; ACK
824
    mov     bl, 0x10	    ; ACK
825
 
825
 
826
    ; Get the address of the callers data
826
    ; Get the address of the callers data
827
    mov     edi, [0x3010]
827
    mov     edi, [TASK_BASE]
828
    add     edi, TASKDATA.mem_start
828
    add     edi, TASKDATA.mem_start
Line 829... Line 829...
829
    add     edx, [edi]
829
    add     edx, [edi]