Rev 3228 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3228 | Rev 3229 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | ;; GNU GENERAL PUBLIC LICENSE ;; |
13 | ;; GNU GENERAL PUBLIC LICENSE ;; |
14 | ;; Version 2, June 1991 ;; |
14 | ;; Version 2, June 1991 ;; |
15 | ;; ;; |
15 | ;; ;; |
16 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
16 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 17... | Line 17... | ||
17 | 17 | ||
Line 18... | Line 18... | ||
18 | $Revision: 3228 $ |
18 | $Revision: 3229 $ |
Line 19... | Line 19... | ||
19 | 19 | ||
Line 951... | Line 951... | ||
951 | align 4 |
951 | align 4 |
952 | SOCKET_send_unix: |
952 | SOCKET_send_unix: |
Line 953... | Line 953... | ||
953 | 953 | ||
Line -... | Line 954... | ||
- | 954 | DEBUGF 1,"SOCKET_send: UNIX\n" |
|
954 | DEBUGF 1,"SOCKET_send: UNIX\n" |
955 | |
955 | 956 | ; does this socket have a PID yet? |
|
- | 957 | cmp [eax + SOCKET.PID], 0 |
|
- | 958 | jne @f |
|
- | 959 | ||
- | 960 | ; Change PID to that of current process |
|
- | 961 | mov ebx, [TASK_BASE] |
|
- | 962 | mov ebx, [ebx + TASKDATA.pid] |
|
- | 963 | mov [eax + SOCKET.PID], ebx |
|
- | 964 | @@: |
|
956 | call SOCKET_check |
965 | |
957 | jz s_error |
966 | ; get the other side's socket and check if it still exists |
958 | mov eax, [eax + SOCKET.device] |
967 | mov eax, [eax + SOCKET.device] |
Line -... | Line 968... | ||
- | 968 | call SOCKET_check |
|
959 | call SOCKET_check |
969 | jz s_error |
960 | jz s_error |
970 | |
961 | 971 | ; allright, shove in the data! |
|
962 | push eax |
972 | push eax |
Line -... | Line 973... | ||
- | 973 | add eax, STREAM_SOCKET.rcv |
|
963 | add eax, STREAM_SOCKET.rcv |
974 | call SOCKET_ring_write |
Line -... | Line 975... | ||
- | 975 | pop eax |
|
964 | call SOCKET_ring_write |
976 | |
Line 965... | Line 977... | ||
965 | pop eax |
977 | ; return the number of written bytes (or errorcode) to application |