Rev 7682 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7682 | Rev 9739 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | ;; GNU GENERAL PUBLIC LICENSE ;; |
12 | ;; GNU GENERAL PUBLIC LICENSE ;; |
13 | ;; Version 2, June 1991 ;; |
13 | ;; Version 2, June 1991 ;; |
14 | ;; ;; |
14 | ;; ;; |
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
15 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 16... | Line 16... | ||
16 | 16 | ||
Line 17... | Line 17... | ||
17 | $Revision: 7682 $ |
17 | $Revision: 9739 $ |
Line 18... | Line 18... | ||
18 | 18 | ||
Line 303... | Line 303... | ||
303 | ;-----------------------------------------------------------------; |
303 | ;-----------------------------------------------------------------; |
304 | ; ; |
304 | ; ; |
305 | ; udp_connect ; |
305 | ; udp_connect ; |
306 | ; ; |
306 | ; ; |
307 | ; IN: eax = socket pointer ; |
307 | ; IN: eax = socket pointer ; |
- | 308 | ; edx = pointer to sockaddr struct ; |
|
308 | ; ; |
309 | ; ; |
309 | ; OUT: eax = 0 on success ; |
310 | ; OUT: eax = 0 on success ; |
310 | ; eax = -1 on error ; |
311 | ; eax = -1 on error ; |
311 | ; ebx = error code on error ; |
312 | ; ebx = error code on error ; |
312 | ; ; |
313 | ; ; |
Line 323... | Line 324... | ||
323 | lea ecx, [eax + SOCKET.mutex] |
324 | lea ecx, [eax + SOCKET.mutex] |
324 | call mutex_lock |
325 | call mutex_lock |
325 | pop edx eax |
326 | pop edx eax |
Line 326... | Line 327... | ||
326 | 327 | ||
327 | ; Fill in remote port and IP |
328 | ; Fill in remote port and IP |
328 | pushw [edx + 2] |
329 | pushw [edx + sockaddr.port] |
Line 329... | Line 330... | ||
329 | pop [eax + UDP_SOCKET.RemotePort] |
330 | popw [eax + UDP_SOCKET.RemotePort] |
330 | 331 | ||
Line 331... | Line 332... | ||
331 | pushd [edx + 4] |
332 | pushd [edx + sockaddr.ip] |
332 | pop [eax + UDP_SOCKET.RemoteIP] |
333 | pop [eax + UDP_SOCKET.RemoteIP] |
333 | 334 |