Permalink
Browse files

Fixed with new SDK changes. Closes #2

  • Loading branch information...
1 parent 71ceee6 commit bd89ea4953b56fe9e3e19a1c5c3485253d7de87c Amos Wenger committed Sep 21, 2010
Showing with 5 additions and 5 deletions.
  1. +3 −3 samples/client.ooc
  2. +2 −2 zeromq.ooc
View
@@ -7,8 +7,8 @@ main: func (args: ArrayList<String>) {
// One I/O thread in the thread pool will do.
// This client is a requester
// Connect to the server
- addr := args size() < 2 ? "tcp://localhost:5555" : "tcp://%s:5555" format(args[1])
- "Connecting to %s" format(addr) println()
+ addr := args size < 2 ? "tcp://localhost:5555" : "tcp://%s:5555" format(args[1])
+ "Connecting to %s" format(addr toCString()) println()
s := Socket new(Context new(1), SocketType req). connect(addr)
// Send 20 requests and receive 20 replies
@@ -18,7 +18,7 @@ main: func (args: ArrayList<String>) {
// Send the request. No point in filling the content in as server
// is a dummy and won't use it anyway.
- s send(Message new(message, message length(), null, null))
+ s send(Message new(message toCString(), message length(), null, null))
"Sent request %d" format(i) println()
View
@@ -167,11 +167,11 @@ Socket: cover from Pointer {
zmq_getsockopt(this, option as Int, optval, optvalLength)
}
- bind: inline func (addr: const Char*) -> Int {
+ bind: inline func (addr: String) -> Int {
zmq_bind(this, addr)
}
- connect: inline func (addr: const Char*) -> Int {
+ connect: inline func (addr: String) -> Int {
zmq_connect(this, addr)
}

0 comments on commit bd89ea4

Please sign in to comment.