[Openmcl-devel] UDP socket problem on 1.11-dev-r16341M-trunk (DarwinX8664)

Park SungMin byulparan_eng at icloud.com
Tue Jan 13 08:22:22 PST 2015


(defparameter *message* (make-array 20 :element-type '(unsigned-byte 8)
				       :initial-contents '(47 103 95 102 114 101 101 65 108 108 0 0 44 105 0 0 0 0 0 0)))

(defparameter *udp-server* (make-socket :type :datagram
					:local-port 42301))

(defparameter *udp-client* (make-socket :type :datagram
					:remote-port 42301))

(send-to *udp-client* *message* (length *message*)) ;; <- error!


and…in Usocket..

(require :usocket)

(defparameter *socket-serv*
  (usocket:socket-connect nil nil :protocol :datagram
				  :local-host "127.0.0.1"
				  :local-port 43874))

(defparameter *socket-client*
  (usocket:socket-connect nil nil :protocol :datagram))

(usocket:socket-send *socket-client* *message* (length *message*) :port 43874 :host "127.0.0.1”)  ;; <- error!




until recently…It works……..plz help me. thank you!







More information about the Openmcl-devel mailing list